Magento 2.3.5-p1:您不能多次定义关联名称“链接”

问题描述

{"0":"You cannot define a correlation name 'links' more than once","1":"#1 Magento\Framework\DB\Select->_join() called at [vendor/magento/zendframework1/library/Zend/Db/Select.PHP:357]\n#2 Zend_Db_Select->joinInner() called at [vendor/magento/zendframework1/library/Zend/Db/Select.PHP:336]\n#3 Zend_Db_Select->join() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Link/Product/Collection.PHP:343]\n#4 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection->_joinLinks() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Link/Product/Collection.PHP:298]\n#5 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection->_beforeLoad() called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.PHP:920]\n#6 Magento\Eav\Model\Entity\Collection\AbstractCollection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.PHP:832]\n#7 Magento\Catalog\Model\ResourceModel\Product\Collection->load() called at [vendor/magento/framework/Interception/Interceptor.PHP:58]\n#8 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.PHP:138]\n#9 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.PHP:153]\n#10 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Model/ResourceModel/Product/Link/Product/Collection/Interceptor.PHP:26]\n#11 Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection\Interceptor->load() called at [vendor/magento/framework/Data/Collection.PHP:839]\n#12 Magento\Framework\Data\Collection->getIterator() called at [vendor/magento/module-catalog/Block/Product/ProductList/Related.PHP:147]\n#13 Magento\Catalog\Block\Product\ProductList\Related->getIdentities() called at [vendor/magento/module-page-cache/Model/Layout/LayoutPlugin.PHP:84]\n#14 Magento\PageCache\Model\Layout\LayoutPlugin->afterGetoutput() called at [vendor/magento/framework/Interception/Interceptor.PHP:146]\n#15 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.PHP:153]\n#16 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.PHP:494]\n#17 Magento\Framework\View\Layout\Interceptor->getoutput() called at [vendor/magento/framework/View/Result/Page.PHP:258]\n#18 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.PHP:171]\n#19 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.PHP:58]\n#20 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.PHP:138]\n#21 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/mirasvit/module-optimize/src/Optimize/Plugin/Framework/Controller/Result/OutputProcessorPlugin.PHP:54]\n#22 Mirasvit\Optimize\Plugin\Framework\Controller\Result\OutputProcessorPlugin->aroundRenderResult() called at [vendor/magento/framework/Interception/Interceptor.PHP:135]\n#23 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/Amasty/GdprCookie/Plugin/ProcesspageResult.PHP:57]\n#24 Amasty\GdprCookie\Plugin\ProcesspageResult->aroundRenderResult() called at [vendor/magento/framework/Interception/Interceptor.PHP:135]\n#25 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/Magezon/Core/Plugin/View/Result/Layout.PHP:24]\n#26 Magezon\Core\Plugin\View\Result\Layout->aroundRenderResult() called at [vendor/magento/framework/Interception/Interceptor.PHP:135]\n#27 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.PHP:153]\n#28 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.PHP:26]\n#29 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.PHP:120]\n#30 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.PHP:24]\n#31 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.PHP:263]\n#32 Magento\Framework\App\Bootstrap->run() called at [index.PHP:39]\n","url":"/hu/sample-pdoduct-5639","script_name":"/index.PHP","report_id":"1b28656871f3122903affb2500a40ca7d8d638f3116edb65538e3750ede7895f"}

嗨!

如果我尝试获取PDP页面,则会得到例外。我将尝试使用此You cannot define a correlation name 'links' more than once解决该问题,但是视图已在数据库生成并找到。

我们从lantextension的magento 1站点进口了所有产品。

有人可以解决吗?

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)