我的网站是Magento ver . 2.2.3

早期我的搜索功能正常工作..但从上周突然我不知道我收到以下错误消息...

致命错误:未捕获错误:在/home/website/public_html/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor/Interceptor.php:1465中调用null上的成员函数getNext()堆栈跟踪:# 0 /home/website/public_html/generated/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),Object(Magento \ Framework \ Data \ Helper \ PostHelper),Object(Magento \ Catalog \ Model \ Layer \ Resolver),Object(Magento \ Catalog \ Model \ CategoryRepository \ Interceptor),Object(Magento \ Framework \ Url \ Helper \ Data),Array)#2 /home/website/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66):Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> c reateObject('Magento \ Catalog ...',位于1465行的/home/website/public_html/generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor/Interceptor.php中

下面是路径interceptor.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,'___ callLarent');
    if(!$ pluginInfo){
    return parent :: ___ callParent($ method,$ arguments);
    } else {
    return $ this - > ___ callPlugins('___ callParent',func_get_args(),$ pluginInfo);
    }
    }

i tried :

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的新手 - 不知道出了什么问题......

谢谢