Drupal 7 在向default/setting.php添加代码片段后,标题警告轰炸了它

Drupal 7 在向default/setting.php添加代码片段后,标题警告轰炸了它,drupal-7,runtime,duplicates,warnings,heading,Drupal 7,Runtime,Duplicates,Warnings,Heading,我很清楚这个问题以前被问过很多次,但我不知道在我的特殊情况下如何处理这个问题。我所做的只是修改default/settings.php文件,以便drupal中的工具栏抽屉支持更多快捷方式 我在文档底部插入了以下代码: /** * Changing Max Shortcut Slots * * The shortcut module supports a total of seven shortcuts slots. To change * the quantity of suppor

我很清楚这个问题以前被问过很多次,但我不知道在我的特殊情况下如何处理这个问题。我所做的只是修改default/settings.php文件,以便drupal中的工具栏抽屉支持更多快捷方式

我在文档底部插入了以下代码:

 /**
 * Changing Max Shortcut Slots
 *
 * The shortcut module supports a total of seven shortcuts slots. To change 
 * the quantity of supported enabled shortcuts the 'shortcut_max_slots' must be
 * modified accordingly.
 *
 * @see https://www.drupal.org/documentation/modules/shortcut
 */
$conf['shortcut_max_slots'] = 11;
好吧,我成功了,这很好,但我受到了一连串警告的攻击,每个警告都说明了以下几点:

警告:无法修改标题信息-标题已由drupal_send_headers()中的(输出开始于/home/adamdcco/public_html/hadarc.com/cms/sites/default/settings.php:1)(第1221行/home/adamdcco/public_html/hadarc.com/cms/includes/bootstrap.inc)发送

我迷路了,我查看了引导文件并导航到指定的行,不幸的是没有灯泡。对不起,我是新来的:),但我确实四处搜索过,然后完全不知所措
感谢您的任何帮助:P

看起来我们很好:)

我又找了一些,发现了这个问题/答案 简言之,这是相同的问题,惊人的答案,所以是的,以防有人关心我输入的代码:

$conf['shortcut_max_slots'] = 11;
应该在11号左右加引号,并且必须删除文件开头和结尾的任何额外空格。生活和学习:)