2013-08-19 60 views
-1

Drupal 7.23当我打开页面时(作为匿名用户),我会定期收到警告和错误消息。标题徽标的副本出现在页面的最后,位于错误消息的正上方。 我无法理解当出现此警告&错误时的情况,但似乎在我以匿名用户的身份打开页面时出现。然后登录后,注销,不再显示任何错误。Drupal 7.23打开页面时出现警告和错误信息

警告:

Warning: Cannot modify header information - headers already sent by (output started at /home/ztiw7851207/public_html/includes/common.inc:2700) in drupal_send_headers() (line 1220 of /home/ztiw7851207/public_html/includes/bootstrap.inc).

Warning: Cannot modify header information - headers already sent by (output started at /home/ztiw7851207/public_html/includes/common.inc:2700) in drupal_send_headers() (line 1216 of /home/ztiw7851207/public_html/includes/bootstrap.inc).

错误:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'title': INSERT INTO {aggregator_feed} (fid, url, link, description, image, hash, etag, modified) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 9 [:db_insert_placeholder_1] => http://hitech.com/rss/reviews/ [:db_insert_placeholder_2] => http://hitech.com/reviews/ [:db_insert_placeholder_3] => News, reviews and opinion outlet with obsessive coverage of cutting edge gadgets, consumer electronics and the science and technology they're built upon. [:db_insert_placeholder_4] => http://hitech.com/img/rss_cover.png [:db_insert_placeholder_5] => 1d37c01e3b1346cc3ac3dbf1280c3fd236c3f3433e1d44a4902066a9f3d87cbe [:db_insert_placeholder_6] => [:db_insert_placeholder_7] => 0) in aggregator_refresh() (line 640 of /home/ztiw7851207/public_html/modules/aggregator/aggregator.module).

如何解决这个问题?

+0

编写有关站点设置一些意见 - 哪些模块你是否使用,是否是一个活的网站,你之前遇到过这样的问题,你有任何自定义模块等 –

+0

自定义模块启用:Adsense模块,混沌工具,字段幻灯片,字段集合,Colorbox,CSS注入器,实体API,库,视图,视图UI,高级帮助。错误PDOException:SQLSTATE [23000]也在以前的Drupal版本中遇到过。警告'无法修改标题信息'是一个新问题。 Live [网站](http://ow.ly/o3cJc)。 – triwo

回答

1

问题可能是由于aggregator_feed模块尝试卸载并重新安装它,如果你正在使用Drush

drush DIS aggregator_feed & & drush连接aggregator_feed

+0

我删除了所有项目,禁用并已卸载Feed聚合器模块,然后重新安装。我也有Feeds模块,但其禁用。我的猜测是,上述警告和错误必须与Cookie或会话过期有关。尝试运行cron时,我不断收到PDOException。 'PDOException:SQLSTATE [23000]:完整性约束违规:1062重复条目''for key..'这可能是由于我无法删除旧提要的提要项目。如何清理数据库中这些旧的feed项目? – triwo

+0

我自己找到解决方案。在phpMyAdmin中:1)从aggregator_feed表中删除问题提要; 2)从队列表中删除所有聚合器%条目; 3)运行cron来验证问题已经消失。 – triwo

相关问题