【发布时间】:2023-03-25 13:37:01
【问题描述】:
我在我的服务器(但不是本地)上的线路上收到 Pimcore 异常:
$entries = new Object\CarouselImage\Listing();
Stacktrace 的异常是:
Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli statement execute error :
Prepared statement needs to be re-prepared' in /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Zend/Db/Statement/Mysqli.php:214
Stack trace:
#0 /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Zend/Db/Statement.php(303): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Zend/Db/Adapter/Abstract.php(737): Zend_Db_Adapter_Abstract->query('SELECT object_6...', Array)
#3 [internal function]: Zend_Db_Adapter_Abstract->fetchAll('SELECT object_6...', Array)
#4 /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Pimcore/Resource/Wrapper.php(263): call_user_func_array(Array, Array)
#5 /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Pimcore/Resource/Wrapper.php(233): Pimcore\Resource\Wrapper->callResourceMethod('fetchAll', Array)
#6 /www/doc/www.eastmeetswest.eu/www/pimcore/ in /www/doc/www.eastmeetswest.eu/www/pimcore/lib/Zend/Db/Statement/Mysqli.php on line 214
完全相同的代码在本地主机上完成了它应该做的所有事情,如果我使用以下方法遍历对象:
$entry = Object_CarouselImage::getById($id);
一切正常。
【问题讨论】:
-
编辑:我知道这可能是“某些 MySQL 服务器的已知问题”。但是除了重新启动服务器之外还有其他解决方法吗?
标签: zend-framework mysqli pimcore