我在我的服务器(但不是本地)上收到 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);
一切正常。