Jump to content

ContextErrorException in ProductSearchResult.php


soltx

Recommended Posts

Hi! How fix it error:

(the error only on main page)

ContextErrorException in ProductSearchResult.php line 39:
Catchable Fatal Error: Argument 1 passed to PrestaShop\PrestaShop\Core\Product\Search\ProductSearchResult::setProducts() must be of the type array, boolean given, called in /home/users/9/9172654094/domains/istore-77.ru/src/Adapter/Category/CategoryProductSearchProvider.php on line 91 and defined 

 stack:

in ProductSearchResult.php line 39
at ErrorHandler->handleError('4096', 'Argument 1 passed to PrestaShop\PrestaShop\Core\Product\Search\ProductSearchResult::setProducts() must be of the type array, boolean given, called in /home/users/9/9172654094/domains/istore-77.ru/src/Adapter/Category/CategoryProductSearchProvider.php on line 91 and defined', '/home/users/9/9172654094/domains/istore-77.ru/src/Core/Product/Search/ProductSearchResult.php', '39', array('this' => object(ProductSearchResult))) in ProductSearchResult.php line 39
at ProductSearchResult->setProducts(false) in CategoryProductSearchProvider.php line 91
at CategoryProductSearchProvider->runQuery(object(ProductSearchContext), object(ProductSearchQuery)) in ps_featuredproducts.php line 300
at Ps_FeaturedProducts->getProducts() in ps_featuredproducts.php line 257
at Ps_FeaturedProducts->getWidgetVariables('displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart))) in ps_featuredproducts.php line 243
at Ps_FeaturedProducts->renderWidget('displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 763
at HookCore::coreRenderWidget(object(Ps_FeaturedProducts), 'displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 737
at HookCore::exec('displayHome') in IndexController.php line 39
at IndexControllerCore->initContent() in Controller.php line 201
at ControllerCore->run() in Dispatcher.php line 366
at DispatcherCore->dispatch() in index.php line 28
Edited by soltx (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 3 years later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...