Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
jeking
We had tried that when OPC was 2.3.4 and still got this error. I've updated the site to 3.5.1 and get the same error:
jquery.checkout_one.js?1618668915:54 setFormSubmitButton, payment-module: null
jquery.checkout_one.js?1618668915:54 Showing "confirm"
jquery.checkout_one.js?1618668915:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1618668915:54 jQuery version: 3.5.1
jquery.checkout_one.js?1618668915:54 saveCustomerInfo, starts ...
index.php?main_page=checkout_one:56 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000,##…}
jquery.checkout_one.js?1618668915:998 Uncaught TypeError: Cannot read property 'length' of null
at jquery.checkout_one.js?1618668915:998
at c (jscript_jquery.min.js:2)
at Object.fireWith [as resolveWith] (jscript_jquery.min.js:2)
at Object.s.<computed> [as resolve] (jscript_jquery.min.js:2)
at Object.success (index.php?main_page=checkout_one:64)
at c (jscript_jquery.min.js:2)
at Object.fireWith [as resolveWith] (jscript_jquery.min.js:2)
at l (jscript_jquery.min.js:2)
at XMLHttpRequest.<anonymous> (jscript_jquery.min.js:2)
Just noticed I'm using the minified. Do you need the unminified to get the right line numbers?
Yes, unminified version will pinpoint where the issue is sourced.
Re: One-Page Checkout [Support Thread]
Thank you for the continued help. Here is the entire console log with the unminified 3.5.1
jscript_jquery.js:10353 Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jscript_jquery.js:10353)
at jscript_menu_conf.js:91
jQuery.fn.load @ jscript_jquery.js:10353
(anonymous) @ jscript_menu_conf.js:91
jquery.checkout_one.js?1618668915:54 setFormSubmitButton, payment-module: null
jquery.checkout_one.js?1618668915:54 Showing "confirm"
jquery.checkout_one.js?1618668915:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1618668915:54 jQuery version: 3.5.1
jquery.checkout_one.js?1618668915:54 saveCustomerInfo, starts ...
index.php?main_page=checkout_one:56 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000,##…}
jquery.checkout_one.js?1618668915:998 Uncaught TypeError: Cannot read property 'length' of null
at jquery.checkout_one.js?1618668915:998
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at Object.deferred.<computed> [as resolve] (jscript_jquery.js:3964)
at Object.success (index.php?main_page=checkout_one:64)
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at done (jscript_jquery.js:9786)
at XMLHttpRequest.<anonymous> (jscript_jquery.js:10047)
(anonymous) @ jquery.checkout_one.js?1618668915:998
fire @ jscript_jquery.js:3496
fireWith @ jscript_jquery.js:3626
deferred.<computed> @ jscript_jquery.js:3964
success @ index.php?main_page=checkout_one:64
fire @ jscript_jquery.js:3496
fireWith @ jscript_jquery.js:3626
done @ jscript_jquery.js:9786
(anonymous) @ jscript_jquery.js:10047
load (async)
send @ jscript_jquery.js:10066
ajax @ jscript_jquery.js:9682
(anonymous) @ index.php?main_page=checkout_one:76
Deferred @ jscript_jquery.js:3979
zcJS.ajax @ index.php?main_page=checkout_one:42
saveCustomerInfo @ jquery.checkout_one.js?1618668915:976
saveBilling @ jquery.checkout_one.js?1618668915:734
dispatch @ jscript_jquery.js:5429
elemData.handle @ jscript_jquery.js:5233
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
jeking
Thank you for the continued help. Here is the entire console log with the unminified 3.5.1
jscript_jquery.js:10353 Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jscript_jquery.js:10353)
at jscript_menu_conf.js:91
jQuery.fn.load @ jscript_jquery.js:10353
(anonymous) @ jscript_menu_conf.js:91
jquery.checkout_one.js?1618668915:54 setFormSubmitButton, payment-module: null
jquery.checkout_one.js?1618668915:54 Showing "confirm"
jquery.checkout_one.js?1618668915:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1618668915:54 jQuery version: 3.5.1
jquery.checkout_one.js?1618668915:54 saveCustomerInfo, starts ...
index.php?main_page=checkout_one:56 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000,##…}
jquery.checkout_one.js?1618668915:998 Uncaught TypeError: Cannot read property 'length' of null
at jquery.checkout_one.js?1618668915:998
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at Object.deferred.<computed> [as resolve] (jscript_jquery.js:3964)
at Object.success (index.php?main_page=checkout_one:64)
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at done (jscript_jquery.js:9786)
at XMLHttpRequest.<anonymous> (jscript_jquery.js:10047)
(anonymous) @ jquery.checkout_one.js?1618668915:998
fire @ jscript_jquery.js:3496
fireWith @ jscript_jquery.js:3626
deferred.<computed> @ jscript_jquery.js:3964
success @ index.php?main_page=checkout_one:64
fire @ jscript_jquery.js:3496
fireWith @ jscript_jquery.js:3626
done @ jscript_jquery.js:9786
(anonymous) @ jscript_jquery.js:10047
load (async)
send @ jscript_jquery.js:10066
ajax @ jscript_jquery.js:9682
(anonymous) @ index.php?main_page=checkout_one:76
Deferred @ jscript_jquery.js:3979
zcJS.ajax @ index.php?main_page=checkout_one:42
saveCustomerInfo @ jquery.checkout_one.js?1618668915:976
saveBilling @ jquery.checkout_one.js?1618668915:734
dispatch @ jscript_jquery.js:5429
elemData.handle @ jscript_jquery.js:5233
The highlighted script has polluted the jQuery/javascript pool.
Re: One-Page Checkout [Support Thread]
I've removed that file but still getting the same error:
jquery.checkout_one.js?1618668915:54 setFormSubmitButton, payment-module: null
jquery.checkout_one.js?1618668915:54 Showing "confirm"
jquery.checkout_one.js?1618668915:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1618668915:54 jQuery version: 3.5.1
jquery.checkout_one.js?1618668915:54 saveCustomerInfo, starts ...
index.php?main_page=checkout_one:55 Object
jquery.checkout_one.js?1618668915:998 Uncaught TypeError: Cannot read property 'length' of null
at jquery.checkout_one.js?1618668915:998
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at Object.deferred.<computed> [as resolve] (jscript_jquery.js:3964)
at Object.success (index.php?main_page=checkout_one:63)
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at done (jscript_jquery.js:9786)
at XMLHttpRequest.<anonymous> (jscript_jquery.js:10047)
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
jeking
I've removed that file but still getting the same error:
jquery.checkout_one.js?1618668915:54 setFormSubmitButton, payment-module: null
jquery.checkout_one.js?1618668915:54 Showing "confirm"
jquery.checkout_one.js?1618668915:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1618668915:54 jQuery version: 3.5.1
jquery.checkout_one.js?1618668915:54 saveCustomerInfo, starts ...
index.php?main_page=checkout_one:55 Object
jquery.checkout_one.js?1618668915:998 Uncaught TypeError: Cannot read property 'length' of null
at jquery.checkout_one.js?1618668915:998
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at Object.deferred.<computed> [as resolve] (jscript_jquery.js:3964)
at Object.success (index.php?main_page=checkout_one:63)
at fire (jscript_jquery.js:3496)
at Object.fireWith [as resolveWith] (jscript_jquery.js:3626)
at done (jscript_jquery.js:9786)
at XMLHttpRequest.<anonymous> (jscript_jquery.js:10047)
Jim, send a link to the site to my direct email.
Re: One-Page Checkout [Support Thread]
Zen Cart 1.5.7b
OPC 2.3.7-beta2 (2021-01-17)
PHP Version: 7.1.33
Shipping modules used: Storepickup, Advanced Shipper
Any suggestions as to why this message is frequently displayed when going through checkout?
"It's taking a little longer than normal to update your order's shipping cost. Please close this message and try again. If you continue to receive this message, please contact us."
Sometimes it has to be closed 2 or 3 times before you can actually complete checkout.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
strelitzia
Zen Cart 1.5.7b
OPC 2.3.7-beta2 (2021-01-17)
PHP Version: 7.1.33
Shipping modules used: Storepickup, Advanced Shipper
Any suggestions as to why this message is frequently displayed when going through checkout?
"It's taking a little longer than normal to update your order's shipping cost. Please close this message and try again. If you continue to receive this message, please contact us."
Sometimes it has to be closed 2 or 3 times before you can actually complete checkout.
That's the result of having a 'number of' shipping modules (e.g. USPS, UPS and FedEx) where the quote-generation latency gets long. You can control the timeout via configuration of the Update Shipping AJAX Time-out setting (defaults to 5 seconds, which is a ton of time).
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
That's the result of having a 'number of' shipping modules (e.g. USPS, UPS and FedEx) where the quote-generation latency gets long. You can control the timeout via configuration of the Update Shipping AJAX Time-out setting (defaults to 5 seconds, which is a ton of time).
The shipping isn't using ANY external shipping methods. They are all methods set within Advanced Shipper for specific locations, weights, and order values. I don't really understand why it's doing this as the shipping cost is displayed next to the various checkboxes as soon as you get to checkout. There is no delay in the method cost being displayed on screen.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
strelitzia
The shipping isn't using ANY external shipping methods. They are all methods set within Advanced Shipper for specific locations, weights, and order values. I don't really understand why it's doing this as the shipping cost is displayed next to the various checkboxes as soon as you get to checkout. There is no delay in the method cost being displayed on screen.
That's bizarre. Are there a ton of logs being generated?
Re: One-Page Checkout [Support Thread]
I'm seeing instances of this in the log directory, although I don't yet know if that is being generated at the same time as the Ajax timeout occurs
PHP Notice: Malformed value for session-based shipping module; customer will need to re-select: false in /home/mysite/public_html/includes/classes/order.php on line 323
I recall reading that others have experienced this error log and it may be a ZC bug?
Also seeing a few instances of this:
[26-Apr-2021 16:44:22 Europe/London] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping, IP address: 79.66.5.148
#1 trigger_error() called at [/home/mysite/public_html/includes/classes/OnePageCheckout.php:1361]
#2 OnePageCheckout->inputPreCheck() called at [/home/mysite/public_html/includes/classes/OnePageCheckout.php:903]
#3 OnePageCheckout->validateBilltoSendto() called at [/home/mysite/public_html/includes/classes/ajax/zcAjaxOnePageCheckout.php:61]
#4 zcAjaxOnePageCheckout->updateShipping() called at [/home/mysite/public_html/ajax.php:85]
--> PHP Fatal error: Invalid request, tempAddressValues not set. in /home/mysite/public_html/includes/classes/OnePageCheckout.php on line 1361.
And this:
[31-May-2021 12:14:02 UTC] PHP Fatal error: Uncaught Error: Call to a member function isLoggedIn() on null in /home/mysite/public_html/includes/classes/observers/class.checkout_one_observer.php:341
Stack trace:
#0 /home/mysite/public_html/includes/classes/class.base.php(118): checkout_one_observer->update(Object(notifier), 'NOTIFY_ZEN_IS_L...', '', false, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 /home/mysite/public_html/includes/functions/functions_customers.php(275): base->notify('NOTIFY_ZEN_IS_L...', '', false)
#2 /home/mysite/public_html/includes/templates/jsweb/common/html_header.php(156): zen_is_logged_in()
#3 /home/mysite/public_html/index.php(42): require('/home/balloonm/...')
#4 {main}
thrown in /home/mysite/public_html/includes/classes/observers/class.checkout_one_observer.php on line 341