ContextErrorException
Notice: Undefined offset: 0
in ImageRetriever.php line 274
at聽ImageRetriever->getNoPictureImage(object(Language))in聽FrontController.php聽line 1518
at聽FrontControllerCore->getTemplateVarUrls()in聽FrontController.php聽line 490
at聽FrontControllerCore->assignGeneralPurposeVariables()in聽FrontController.php聽line 549
at聽FrontControllerCore->initContent()in聽IndexController.php聽line 37
at聽IndexControllerCore->initContent()in聽Controller.php聽line 292
at聽ControllerCore->run()in聽Dispatcher.php聽line 515
at聽DispatcherCore->dispatch()in聽index.php聽line 28
Screenshots
Additional information
PrestaShop version: latest version
PHP version: 7.3.12
Hi @5-digits,
PrestaShop is not compatible with PHP 7.3, in fact, PrestaShop 1.7.0 to 1.7.3 is compatible with PHP 7.1 and PrestaShop 1.7.4 & 1.7.5 & PS1.7.6 are compatible with PHP 7.2.
For more details, you can follow this link: http://build.prestashop.com/news/prestashop-1-7-is-moving-to-symfony-3-4-and-php-5-6/
Next Major release PS1.7.7 will be compatible with PHP7.3.
You need to downgrade your PHP version.
Thanks to check & feedback.
Hi @5-digits,
Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details.
Thanks!
You must install the stable version with PHP-7.2, after that you can use any php version.
For me i tried {PHP-5.640 , PHP-7.0.33, PHP-7.1.13, PHP-7.2.27, PHP-7.3.12, PHP-7.4.0 } and the website works fine
Running below SQL fixed the issue for me:
INSERT INTO `{PREFIX}_image_type` (`id_image_type`, `name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`, `stores`)
VALUES
(10, 'large_banner', 960, 400, 0, 1, 0, 0, 0),
(9, 'product_listing', 220, 220, 1, 1, 1, 1, 0),
(8, 'category_default', 960, 350, 0, 1, 0, 0, 0),
(7, 'home_default', 250, 250, 1, 0, 0, 0, 0),
(6, 'large_default', 500, 500, 1, 0, 0, 0, 0),
(5, 'medium_default', 300, 300, 1, 1, 1, 1, 0),
(4, 'small_default', 125, 125, 1, 1, 1, 1, 0),
(3, 'cart_default', 80, 80, 1, 0, 0, 0, 0);
Could you solve the problem ?, I have the exact same error
Help me
Running below SQL fixed the issue for me:
INSERT INTO `{PREFIX}_image_type` (`id_image_type`, `name`, `width`, `height`, `products`, `categories`, `manufacturers`, `suppliers`, `stores`) VALUES (10, 'large_banner', 960, 400, 0, 1, 0, 0, 0), (9, 'product_listing', 220, 220, 1, 1, 1, 1, 0), (8, 'category_default', 960, 350, 0, 1, 0, 0, 0), (7, 'home_default', 250, 250, 1, 0, 0, 0, 0), (6, 'large_default', 500, 500, 1, 0, 0, 0, 0), (5, 'medium_default', 300, 300, 1, 1, 1, 1, 0), (4, 'small_default', 125, 125, 1, 1, 1, 1, 0), (3, 'cart_default', 80, 80, 1, 0, 0, 0, 0);
Thank you. This fix the issue.
Thanks @khalidumarr it works for me also
Hi.
this issue is work for me also and is in the 1.7.8.0 again.
Most helpful comment
Running below SQL fixed the issue for me: