Jump to content

500 error 'Invalid category vars'


Recommended Posts

Hey,

 

I bought a theme, and then I started filling my shop. I have removed the standard products and categories and added my own.

 

In the classis theme the shop works fine, but it does not work in my purchased theme. There I get an error 500 internal server page.

 

I have version 1.7.1.2 (because 1 click upgrade does not work and I can not upgrade to 1.7.2) and debug returns this:

  If (is_array ($ category) && isset ($ category ['id_category'])) {
369. $ category = new category ($ category, $ idLang);
370.} elseif ((int) $ category) {
371. $ category = new category ((int) $ category, $ idLang);
372.} else {
373. throw new PrestaShopException ('Invalid category fresh');
374.}
375.}
376. return $ category;

Does anyone know how to fix this?

 

thank you in advance! Manon

Link to comment
Share on other sites

  • 1 year later...

Same problem here. I got Mega Shoppe Sports Template

After deleting demo categories i got err500. So i think theme module TTCategorySlider try to catch default categories. But i dont know how to fix it. Official  support from addons are useless.

Thank you very much for reply.

Screen Shot 10-23-18 at 11.20 AM.PNG

Screen Shot 10-25-18 at 10.01 AM.PNG

Link to comment
Share on other sites

  • 3 months later...

I had same problem, but then I switched to classic theme and then back to custom theme and all got sorted, its basically bug of prestashop and theme and localization. There is no proper garbage control on prestashop. If you delete store it should delete everything related and move all relationships to default store.

Link to comment
Share on other sites

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...