Jump to content

PS: Critical Error - Declaration of Cart / ContextErrorException


Recommended Posts

We have just migrated our ps installation to another domain, we are now met with this issue consistently, any ideas where this is being sourced from?

Vers 1.7.7.1

CRITICAL
13:54:31
php	Uncaught Warning: Declaration of Cart::getProducts($refresh = false, $id_product = false, $id_country = NULL, $fullInfos = true) should be compatible with CartCore::getProducts($refresh = false, $id_product = false, $id_country = NULL, $fullInfos = true, bool $keepOrderPrices = false)
Hide context    Show trace
[▼
  "exception" => ContextErrorException {#629 ▶}
]
CRITICAL
13:54:31
request	Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Declaration of Cart::getProducts($refresh = false, $id_product = false, $id_country = NULL, $fullInfos = true) should be compatible with CartCore::getProducts($refresh = false, $id_product = false, $id_country = NULL, $fullInfos = true, bool $keepOrderPrices = false)" at /home/gamingco/public_html/override/classes/Cart.php line 1183
Hide context    Show trace
[▼
  "exception" => ContextErrorException {#629 ▶}
]

 

Share this post


Link to post
Share on other sites

There is an override installed thats not compatible with your Prestashop version.

override/classes/Cart.php

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More