HugeB Posted March 6, 2017 Share Posted March 6, 2017 Hi, if i change main language i recivie error: ContextErrorException in ProductAssembler.php line 88: Notice: Undefined offset: 0 Full error can be seen here on site: http://hugebuy.eu/de/2507-perfumes-cosmetics On default language it's OK. How can i solve that? I don't know where to start resolving, because error page don't tell me anything, or? Thank you! Regards. Link to comment Share on other sites More sharing options...
HugeB Posted March 6, 2017 Author Share Posted March 6, 2017 UPDATE: I disabled DEBUG mode in backoffice, and now languages loads without error. It's that normal for PrestaShop? 1 Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted March 6, 2017 Share Posted March 6, 2017 UPDATE: I disabled DEBUG mode in backoffice, and now languages loads without error. It's that normal for PrestaShop? debug mode should only be enabled when actively debugging but if left on can result in unpredictable results. this is not an uncommon issue across more complex (cart based) cms's. really anything that uses .js can fall over pretty easy...lol 2 1 Link to comment Share on other sites More sharing options...
HugeB Posted March 6, 2017 Author Share Posted March 6, 2017 Thank you! Link to comment Share on other sites More sharing options...
choclove Posted May 17, 2017 Share Posted May 17, 2017 I also have this problem Any other fix than disabling debugging? Because with this error add to cart doesnt work for my shop 1 Link to comment Share on other sites More sharing options...
cwms Posted July 29, 2017 Share Posted July 29, 2017 Hi, Did you find a solution ? CWMS Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted July 29, 2017 Share Posted July 29, 2017 I highly recommend upgrading 1.7.0.5 to latest stable as this was a very early release. Link to comment Share on other sites More sharing options...
nbexiga Posted August 1, 2017 Share Posted August 1, 2017 HI i also have the same issue... tried to disable again the debug mode but no sucess? does someone can help me? thanks Link to comment Share on other sites More sharing options...
telefoneria Posted November 30, 2017 Share Posted November 30, 2017 i have the same problem what ever i did to disable the debug mode but any how nothing happen just blank page aht i got any how habe solution. it happen d for me just when i want to see the product i got this message : Whoops, looks like something went wrong. 1/1 ContextErrorException in ProductAssembler.php line 88: Notice: Undefined offset: 0 Link to comment Share on other sites More sharing options...
forges82 Posted March 27, 2018 Share Posted March 27, 2018 Hello! In my case, the problem is not in code, it is in database. Error apears when the user has in his favourite list a deleted product. Then, PrestaShop tries to load this product, but it cannot find it. Solution is search all references of deleted product IDs in table st_loved_product, in the id_source field. You must delete these rows, and error should disappear. Good luck! 1 Link to comment Share on other sites More sharing options...
wfpaisa Posted April 17, 2018 Share Posted April 17, 2018 My solution was remplace for latest changes: https://github.com/PrestaShop/PrestaShop/blob/develop/classes/ProductAssembler.php 1 Link to comment Share on other sites More sharing options...
farzzin Posted December 25, 2019 Share Posted December 25, 2019 i have the same error in my prestashop 1.7.5 and its for my different types of photo print products. Link to comment Share on other sites More sharing options...
Faisal Latif Posted January 28, 2020 Share Posted January 28, 2020 I am also in this error anyone please help me Link to comment Share on other sites More sharing options...
zod Posted June 18, 2020 Share Posted June 18, 2020 This can happen also with modules saving the product IDs to use in some arrays, and then using ProductAssembler. It happened with ETS Mega Menu, adding products in the product list widget. After deleting a product the module still asks for that ID and Prestashop gives this error. The solution is to update the module configuration, deleting the missing product. Link to comment Share on other sites More sharing options...
royns Posted August 26, 2021 Share Posted August 26, 2021 On 6/18/2020 at 3:50 PM, zod said: This can happen also with modules saving the product IDs to use in some arrays, and then using ProductAssembler. It happened with ETS Mega Menu, adding products in the product list widget. After deleting a product the module still asks for that ID and Prestashop gives this error. The solution is to update the module configuration, deleting the missing product. thank you very much the problem was resolved directly after i reset the ETS Mega Menu 😊 Link to comment Share on other sites More sharing options...
Dev237 Posted February 3 Share Posted February 3 On 3/6/2017 at 5:55 PM, HugeB said: UPDATE: I disabled DEBUG mode in backoffice, and now languages loads without error. It's that normal for PrestaShop? Yes i think it's normal since the debug mode is not made for normal use, except you need to read error details or get other dev stuff 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