我得到一个Pimcore例外,我的服务器上(而不是局部)在该行:何时上市Pimcore异常对象
$entries = new Object\CarouselImage\Listing();
与堆栈跟踪的例外是:
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);
一切工作fi东北。
编辑:我知道这可能是“一些MySQL服务器的已知问题”。但是有没有比重新启动服务器更好的解决方法。 – user1167192