RoCoART Posted August 14, 2024 Share Posted August 14, 2024 Hi there, I have a freshly installed Presta 8.1.7. running on PHP 8.2 I have products added, configured language, currency, carriers and so on. Apart from the long list from the PHP with the deprecated messages everything works as it should. I have set up 3 payment methods. COD Card payment Wire Transfer No problems with the first 2 methods. However when I'm trying to use the Wire payment method it just throws an 500 Error message and after enabling the Debug mode this is what I got: Warning: Undefined property: OrderHistory::$context in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 489 Warning: Attempt to read property "currency" on null in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 489 Warning: Undefined property: OrderHistory::$context in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 490 Warning: Attempt to read property "currency" on null in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 490 Warning: Undefined variable $cart_rules_list in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 514 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php:514 Stack trace: #0 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php(456): OrderHistoryCore->sendEmail() #1 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/classes/PaymentModule.php(575): OrderHistoryCore->addWithemail() #2 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/modules/ps_wirepayment/controllers/front/validation.php(63): PaymentModuleCore->validateOrder() #3 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/classes/controller/Controller.php(308): Ps_WirepaymentValidationModuleFrontController->postProcess() #4 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/classes/Dispatcher.php(510): ControllerCore->run() #5 /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/index.php(28): DispatcherCore->dispatch() #6 {main} thrown in /home/u901069680/domains/XXXXXXXXXXXXX/public_html/shop/override/classes/order/OrderHistory.php on line 514 Deleted the module, cleared the cache, reinstalled the module and still getting the same error. Has anyone faced this problem? Can anyone help? Thanks. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 14, 2024 Share Posted August 14, 2024 PS 8.1.x supports only PHP 8.1 see requirements, downgrade to php 8.1 Link to comment Share on other sites More sharing options...
RoCoART Posted August 14, 2024 Author Share Posted August 14, 2024 8 minutes ago, Prestashop Addict said: PS 8.1.x supports only PHP 8.1 see requirements, downgrade to php 8.1 Thx for the quick reply. I have downgraded back to php 8.1 but the result is the same, no change. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 14, 2024 Share Posted August 14, 2024 (edited) You have an override of OrderHistory.php class that is buggy. Find the module did it and try to disable it. Edited August 14, 2024 by Prestashop Addict (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