Jump to content

Cart update stopped Prestashop Working


Recommended Posts

Hi Folks,

 

I have updated Cart.php under folder classes in Prestashop 1.6 stopped working Prestashop. I have restore old Cart.php as well but no luck.

 

I am getting below PHP error ...

 

PHP Fatal error:  Class 'Cart' not found in C:\xampp\htdocs\shop\classes\controller\FrontController.php on line 243

 

I tried to catch "Cache" as well but still issue persist. Need your help to resolve same ASAP. Thanks.

 

Thanks & Regards

Jaydeep Sapariya

Link to comment
Share on other sites

Good morning,

 

For your information : You should always use Override to change a class, controller or module's views, never write over the core files, it is wrong and is a sith's pratice. Refer to the jedi documentation for override. (RTFM)

 

That being said, I see two problems that might be in the way :

1. Your class_index under "cache/" might be in inconsistent state. Try renaming it or erasing it, your Prestashop should be able to regenerate it in a consistent state.

 

2. You might have an Override (If you tried to create one) in the way, search for a "Cart.php" in "override/class".

 

Martin

Link to comment
Share on other sites

  • 5 weeks 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...