thee_rook Posted October 12, 2021 Share Posted October 12, 2021 This is what presents when we click on the "Orders" page in the Back Office area. I am unsure exactly when it broke as I am not the everyday user on the site. Any help or direction would be appreciated. Link to comment Share on other sites More sharing options...
JulienPct Posted October 12, 2021 Share Posted October 12, 2021 Can you activate the debug mode? Link to comment Share on other sites More sharing options...
thee_rook Posted October 13, 2021 Author Share Posted October 13, 2021 (edited) See attached text file for stack trace. CRITICAL20:08:44phpUncaught 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) CRITICAL20:08:44requestUncaught 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 /homepages/43/d293957501/htdocs/MTSACo/override/classes/Cart.php line 211 website-error.txt Edited October 13, 2021 by thee_rook (see edit history) Link to comment Share on other sites More sharing options...
jetx Posted October 13, 2021 Share Posted October 13, 2021 Probably a module that needs an update. Disable all overrides in Advanced/ Performance to see if that fixes it, then you'll know where to look. Link to comment Share on other sites More sharing options...
thee_rook Posted October 13, 2021 Author Share Posted October 13, 2021 Here is what I still see: ContextErrorException HTTP 500 Internal Server Error 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) website-error2.txt website-error2_stacktrace.txt Link to comment Share on other sites More sharing options...
BlackCrow Posted October 13, 2021 Share Posted October 13, 2021 Find differences betwen override/classes/Cart.php and classes/Cart.php. There is an error in override/classes/Cart.php on Line 211. 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 /homepages/43/d293957501/htdocs/MTSACo/override/classes/Cart.php line 211 Which php version are you running? Link to comment Share on other sites More sharing options...
thee_rook Posted October 13, 2021 Author Share Posted October 13, 2021 (edited) I will look at those files. Thanks I am running 7.3.XXX when this error was made. I was running 7.4 prior to starting testing. I just went to 7.3 to rule out that. It happened on both. **Edit** - Appears to be a closed curly bracket? Edited October 13, 2021 by thee_rook (see edit history) Link to comment Share on other sites More sharing options...
thee_rook Posted October 13, 2021 Author Share Posted October 13, 2021 This was the faulting module. I looked at what the closed curly was linked to and it referenced this module. I disabled it and now the orders page is working again. Thanks for the help on this issue. Link to comment Share on other sites More sharing options...
BlackCrow Posted October 13, 2021 Share Posted October 13, 2021 (edited) 2 hours ago, jetx said: Probably a module that needs an update. Disable all overrides in Advanced/ Performance to see if that fixes it, then you'll know where to look. have you tried this? [Edit] Oh, i didn't see your answer. Edited October 13, 2021 by BlackCrow (see edit history) 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