处理异常时抛出的其他未捕获异常

时间:2012-04-14 13:55:25

标签: drupal e-commerce open-atrium

我正面临与此帖相同的问题。 drupal views module mysql error

我在/opt/lampp/etc/my.cnf将max_allowed_pa​​cket从1M增加到60M但是当我尝试在结构中添加所有内容时问题仍然存在。这是屏幕代码。

处理异常时抛出了额外的未捕获异常。

原始

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {uc_product_classes}; Array ( ) in uc_product_class_load() (line 1704 of /opt/lampp/htdocs/advanced-a/sites/all/modules/uc_product/uc_product.module).

其他

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ff.* FROM {filter_format} ff WHERE (status = :db_condition_placeholder_0) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 ) in filter_formats() (line 407 of /opt/lampp/htdocs/advanced-a/modules/filter/filter.module).

会话处理程序中抛出未捕获的异常。

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 206 of /opt/lampp/htdocs/advanced-a/includes/session.inc).

非常感谢任何帮助。

2 个答案:

答案 0 :(得分:0)

对于max_allowed_pa​​cket而言,这是一个非常高的设置(几乎就像有人告诉你将它设置为16但你听说它是“六十”)

尽管如此,您是否也对my.ini进行了必要的更改?

https://drupal.org/files/my.ini_.patch

答案 1 :(得分:0)

max_allowed_packet = 1M

中将max_allowed_packet = 16M更改为my.ini