我的网站位于Magento版本。 2.2.3
早期我的搜索功能正常工作..但是从上周突然不知道我收到了以下错误消息...
致命错误:未捕获错误:调用成员函数getNext() 空入 /home/website/public_html/produced/code/Magento/Catalog/Block/Product/ListProduct/Interceptor/Interceptor.php:1465 堆栈跟踪:#0 /home/website/public_html/produced/code/Magento/Catalog/Block/Product/ListProduct/Interceptor/Interceptor.php(13): Magento \ Catalog \ Block \ Product \ ListProduct \ Interceptor \ Interceptor-> ___ init() #1 /home/website/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento \ Catalog \ Block \ Product \ ListProduct \ Interceptor \ Interceptor-> __ construct(Object(Magento \ Catalog \ Block \ Product \ Context), 对象(Magento \ Framework \ Data \ Helper \ PostHelper), 对象(Magento \ Catalog \ Model \ Layer \ Resolver), 对象(Magento \ Catalog \ Model \ CategoryRepository \ Interceptor), 对象(Magento \ Framework \ Url \ Helper \ Data),数组)#2 /home/website/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> createObject('Magento \ Catalog ...', 在 /home/website/public_html/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor/Interceptor.php 在1465行
下面是路径拦截器.php代码行1465的上方:
/** * {@inheritdoc} */ public function ___init() { $pluginInfo = $this->pluginList->getNext($this->subjectType, '___init'); if (!$pluginInfo) { return parent::___init(); } else { return $this->___callPlugins('___init', func_get_args(), $pluginInfo); } } /** * {@inheritdoc} */ public function ___callParent($method, array $arguments) { $pluginInfo = $this->pluginList->getNext($this->subjectType, '___callParent'); if (!$pluginInfo) { return parent::___callParent($method, $arguments); } else { return $this->___callPlugins('___callParent', func_get_args(), $pluginInfo); } }
我尝试过:
rm -rf generated
rm -rf var/cache
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush
and then
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
但是仍然克服了错误消息....作为magento2的新功能-不知道出了什么问题...
谢谢