发布于 4年前
magento2出错
Fatal error: Uncaught ArgumentCountError: Too few arguments to function MGS\InstantSearch\Model\BrandFactory::create(), 0 passed in /var/www/html/app/code/MGS/InstantSearch/Model/Search/Brand.php on line 67 and at least 1 expected in /var/www/html/app/code/MGS/InstantSearch/Model/BrandFactory.php:46 Stack trace: #0 /var/www/html/app/code/MGS/InstantSearch/Model/Search/Brand.php(67): MGS\InstantSearch\Model\BrandFactory->create() #1 /var/www/html/app/code/MGS/InstantSearch/Model/Search.php(46): MGS\InstantSearch\Model\Search\Brand->getResponseData() #2 /var/www/html/app/code/MGS/InstantSearch/Controller/Ajax/Result.php(28): MGS\InstantSearch\Model\Search->getData() #3 /var/www/html/generated/code/MGS/InstantSearch/Controller/Ajax/Result/Interceptor.php(24): MGS\InstantSearch\Controller\Ajax\Result->execute() #4 /var/www/html/vendor/magento/framework/App/Action/Action.php(108): MGS\InstantSearch\Controller\Ajax\Result\Interceptor->execute() #5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\ in /var/www/html/app/code/MGS/InstantSearch/Model/BrandFactory.php on line 46