soltx Posted February 7, 2017 Share Posted February 7, 2017 (edited) 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 February 7, 2017 by soltx (see edit history) Link to comment Share on other sites More sharing options...
soltx Posted February 10, 2017 Author Share Posted February 10, 2017 the pull https://github.com/PrestaShop/PrestaShop/pull/7519 fix my problem Link to comment Share on other sites More sharing options...
laurentm44 Posted April 10, 2017 Share Posted April 10, 2017 Thanks, same problem here after a Migration from 1.4 to 1.7 ! Link to comment Share on other sites More sharing options...
Sebastien MAS Posted July 28, 2020 Share Posted July 28, 2020 Et tu as trouvé quelle solution, car j'ai bien la correction du bug dans ma version 1.7.6.7 mais toujours ce message d'erreur... il doit y avoir un probleme de clés non ou de liens entre les tables ??? Link to comment Share on other sites More sharing options...
daserseed Posted October 28, 2020 Share Posted October 28, 2020 (edited) i have the same problem but that link don't work for mee I have the same error that him. the error comes the I change the categories include the root... any help please? Edited October 28, 2020 by daserseed (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now