PIMCORE:出现 500 错误,带有 objectbricks 的网格列配置

PIMCORE: getting 500 Error, Grid column configuration with objectbricks

在 PIMCORE 演示站点中低于错误

Senario:产品网格添加新的 objectBricks 列并尝试按 ID 排序

Status: 500 | Internal Server Error
URL: /admin/object/grid-proxy/classId/12/folderId/33?xaction=read&_dc=1491992052100
Params:
-> language: en_GB
-> class: Product



Fatal error:  Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli prepare error: Column 'o_id' in order clause is ambiguous' in /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Mysqli.php:77
Stack trace:
#0 /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT COUNT(*)...')
#1 /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT COUNT(*)...')
#2 /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT COUNT(*)...')
#3 /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array)
#4 [internal function]: Zend_Db_Adapter_Abstract->fetchOne in /home/pimcore_ecommercedemo/www/vendor/zendframework/zendframework1/library/Zend/Db/Statement/Mysqli.php on line 77

github 上的相关问题: https://github.com/pimcore/pimcore/issues/1439

这听起来像是 JOIN 问题。当两个表具有相似的列时,(即 o_id),MySQL 不确定您指的是哪一列。您必须指定 tablename.o_id 才能消除此歧义错误消息。

请检查以下 link 的解决方案。 解决方案:https://github.com/pimcore/pimcore/issues/1439