Yes. Its the same if it's 3- page or the OPC.. I don't know where to go with this.. I'm on wrong thread for this issue.
I don't know if PHP is purely a linear system, or if you can multitask(so to speak) by running multiple scripts at one time..
I just wanted to let that user know I think it's not OPC.
Thanks for everything you do lat9!
Thanks for the report back that it's not OPC, @brian70809! Out of interest, what payment method and order-totals are "in play" for this order that takes a long time to record?
HI all,
I have just problem.
I installed OPC 2.4.5 on my new instaltion of ZC 1.5.8a.
After I put some products in the cart and will to finish the order on the page "/index.php?main_page=checkout_one"
I receive error
"Your order\'s details have changed. Please review the current values and re-submit."
and the page could not be sent.
I don't understand why is the message generated.
On the page can be changed only shipping method. After change is the total amount of order well recalculated.
But after clicking on the button "Confirm order" will be the page reloded and show this Error Message.
thank yo for your help
Borek
Hi. Have just returned to using Zen after some time with other carts. Got everything all working EXCEPT for one issue with the one page checkout plugin. Works fine with the guest checkout disabled, but when I enable guest checkout through admin the final stage - 'checkout_one_confirmation' just brings up a page not working message? Am running through wampserver so have attached the error log. Can someone point me in the right direction to resolve this, as really want the guest feature... Payment provider setup as PayPal Std which works fine when the guest feature disabled.
Thanks...
[29-Aug-2023 17:55:06 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to zen_get_zone_code() must be of the type int, string given, called in C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php on line 275 and defined in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php:173
Stack trace:
#0 C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php(275): zen_get_zone_code(222, '', '-- Please Selec...')
#1 C:\wamp64\www\zencart158a\includes\classes\payment.php(279): paypal->process_button()
#2 C:\wamp64\www\zencart158a\includes\modules\pages\checkout_one_confirmation\heade r_php.php(407): payment->process_button()
#3 C:\wamp64\www\zencart158a\index.php(35): require('C:\\wamp64\\www\\z...')
#4 {main}
thrown in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php on line 173
[29-Aug-2023 17:55:06 UTC] Request URI: /zencart158a/index.php?main_page=checkout_one_confirmation, IP address: ::1
--> PHP Fatal error: Uncaught TypeError: Argument 2 passed to zen_get_zone_code() must be of the type int, string given, called in C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php on line 275 and defined in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php:173
Stack trace:
#0 C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php(275): zen_get_zone_code(222, '', '-- Please Selec...')
#1 C:\wamp64\www\zencart158a\includes\classes\payment.php(279): paypal->process_button()
#2 C:\wamp64\www\zencart158a\includes\modules\pages\checkout_one_confirmation\heade r_php.php(407): payment->process_button()
#3 C:\wamp64\www\zencart158a\index.php(35): require('C:\\wamp64\\www\\z...')
#4 {main}
thrown in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php on line 173.
Your "quickest path to success" is going to be the editing of /includes/modules/payment/paypal.php, line 275, changing that to read
I'll create an issue on OPC's GitHub repository to ensure that those address-related values are integer values for a future release.Code:'state' => zen_get_zone_code((int)$order->customer['country']['id'], (int)$order->customer['zone_id'], $order->customer['state']),
n.b. Issue created: https://github.com/lat9/one_page_checkout/issues/383
Thanks for the prompt response Lat9.. I have amended line 275 exactly as above, but sadly it has not resolved the issue. It just when guest checkout is selected, there are issues.
OK, so if there are more logs, please post them and we'll get them out of there.
Hi. These are the results from when I added the (int) suggestion at line 275 of payment/paypal.php
[30-Aug-2023 08:01:42 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to zen_get_zone_code() must be of the type int, string given, called in C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php on line 290 and defined in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php:173
Stack trace:
#0 C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php(290): zen_get_zone_code(222, '', 'YO')
#1 C:\wamp64\www\zencart158a\includes\classes\payment.php(279): paypal->process_button()
#2 C:\wamp64\www\zencart158a\includes\modules\pages\checkout_one_confirmation\heade r_php.php(407): payment->process_button()
#3 C:\wamp64\www\zencart158a\index.php(35): require('C:\\wamp64\\www\\z...')
#4 {main}
thrown in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php on line 173
[30-Aug-2023 08:01:42 UTC] Request URI: /zencart158a/index.php?main_page=checkout_one_confirmation, IP address: ::1
--> PHP Fatal error: Uncaught TypeError: Argument 2 passed to zen_get_zone_code() must be of the type int, string given, called in C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php on line 290 and defined in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php:173
Stack trace:
#0 C:\wamp64\www\zencart158a\includes\modules\payment\paypal.php(290): zen_get_zone_code(222, '', 'YO')
#1 C:\wamp64\www\zencart158a\includes\classes\payment.php(279): paypal->process_button()
#2 C:\wamp64\www\zencart158a\includes\modules\pages\checkout_one_confirmation\heade r_php.php(407): payment->process_button()
#3 C:\wamp64\www\zencart158a\index.php(35): require('C:\\wamp64\\www\\z...')
#4 {main}
thrown in C:\wamp64\www\zencart158a\includes\functions\functions_addresses.php on line 173.
The only difference between logs 'appears' to have now moved the error from line 275 to line 290 of paypal.php. Nothing changed with fault though. Guest disabled it all works fine, when guest is enabled, the program still stalls and doesn't load up the PayPal window?
Bookmarks