johannes-witram Posted December 11, 2023 Share Posted December 11, 2023 Hello, i get the following error in some (not all) paypal payments: Order validation error : Cannot use a scalar value as an array; File: /homepages/4/d808779059/htdocs/clickandbuilds/PrestaShop/MyeCommerce/classes/Tools.php; Line: 4005; There is also a bank wirement with a similar error message. The problem is that no invoice is created, and if i want to do this manually, in debug mode, the message appears: : [ErrorException Code 0]: Warning: Trying to access array offset on value of type float Have you any ideas to fix that? And why is it just in some cases? Thank you Link to comment Share on other sites More sharing options...
musicmaster Posted December 11, 2023 Share Posted December 11, 2023 1 hour ago, johannes-witram said: Hello, i get the following error in some (not all) paypal payments: Order validation error : Cannot use a scalar value as an array; File: /homepages/4/d808779059/htdocs/clickandbuilds/PrestaShop/MyeCommerce/classes/Tools.php; Line: 4005; There is also a bank wirement with a similar error message. The problem is that no invoice is created, and if i want to do this manually, in debug mode, the message appears: : [ErrorException Code 0]: Warning: Trying to access array offset on value of type float Have you any ideas to fix that? And why is it just in some cases? Thank you As a bug report, this is almost useless. - what is your Prestashop version? - can you provide screendumps of those errors so that we see the context? - you talk about "a bank wirement with a similar error message". Similar is not the same. Thus different. Thus another screendump and error report are needed. - "if i want to do this manually, in debug mode, the message appears: : [ErrorException Code 0]". This sounds like an Ajax error. See here how to debug that. Link to comment Share on other sites More sharing options...
johannes-witram Posted December 11, 2023 Author Share Posted December 11, 2023 (edited) the bug came after the upgrade of 1.7.6 to 8.1.2. looking at the paypal payment process, you see screenshot 1 (at the bottom). when i try to create an invoice or to change the status of the order, the message is seen in screenshot 2 (in the middle). on trying to create an invoice for the order with bank wirement, you see screenshot 3 (the upper one). Edited December 11, 2023 by johannes-witram (see edit history) Link to comment Share on other sites More sharing options...
sfsr Posted January 7, 2024 Share Posted January 7, 2024 @johannes-witram: Hi! Do you found any solutions or hints?! I´ve stumbled over the same problem after Updaten to 8.1 and had now clue right now... Thanks! Link to comment Share on other sites More sharing options...
johannes-witram Posted January 7, 2024 Author Share Posted January 7, 2024 There was an issue with the legalcompliance module for europe. When disactivated, there was no problem. But the module is necessary for me, and i made the whole shop new. data was migrated into the new shop, so it was not too much to do. maybe there was an update failure. Link to comment Share on other sites More sharing options...
sfsr Posted January 8, 2024 Share Posted January 8, 2024 Thanks for your reply! That helped a lot: in my case legalcompliance was just deactivated, after activation, everything works fine. In 8.1 it´s not so easy to spot, if a module is active or not.... 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