我在我的服务器上得到了一个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完全相同的代码执行它在localhost上应该执行的所有操作,如果我使用以下方法迭代对象:
$entry = Object_CarouselImage::getById($id);一切都很好。
发布于 2015-11-13 16:09:07
可能最简单的解决方案是切换到Pdo_Mysql。在数据库节点下的/ line /var/config/system.xml中更改该行
<adapter>Pdo_Mysql</adapter>这可能会导致其他一些问题,尽管如此,在切换后进行彻底的测试。
https://stackoverflow.com/questions/33696720
复制相似问题