Drupal7 下出现错误的解决办法
Posted by quentin 在 Monday, 6 August 2012
- 错误:
- Notice: Array to string conversion in menu_link_save()
- Warning: Illegal string offset 'field' in DatabaseCondition->__clone()
解决办法:
http://sunkid.me/blog/2012/04/28/install-drupal7-dot-12-for-php5-dot-4/
- 关于locate_resource表的错误
解决办法:检查mysql的 max_upload_packet值。默认max_upload_packet=1 改为max_upload_packet=16.
- PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {menu_router} WHERE path IN (:ancestors_0, :ancestors_1, :ancestors_2) ORDER BY fit DESC LIMIT 0, 1; Array ( [:ancestors_0] => user/autocomplete [:ancestors_1] => user/% [:ancestors_2] => user ) in menu_get_item() (line 464 of D:\xampp\htdocs\moxingshe\includes\menu.inc).
这个问题可能可以通过修改服务器的配置解决。
1. 修改mysql的配置(my.ini):
[mysqld]
...
max_allowed_packet=16M
这个值可以修改再大一点,如32M, 64M,128M.这个值用来限制server 接受的数据包的大小。
2. 尝试修改wait_timeout这个值,从30改为300.
Refernece:
http://www.000webhost.com/forum/customer-assistance/27554-drupal-7-error-pdoexception-sqlstate-hy000-2013-lost-connection-mysql.html http://drupal.org/node/1107406
博客分类:
添加新评论