A customer encountered an error creating an account and I would appreciate some assistance in finding the cause. The error is undefined array keys 'customer_country_id' and 'customer_zone_id' in includes/functions/functions_taxes. Apparently those $_SESSION variables were not set during account creation. Logs showed that the page "account_creation_success" was never requested. Instead a request for includes/templates/template_default/images/icons/error.gif was received by the server, assumed to be for a message to the customer through $messageStack. The customer does not recall what the message was or what she did next.
My question is related to the timing of events in the client (customers browser) and in the server. Am I correct to assume when the create account "Submit the information" button was clicked in the client browser, a request was sent to the server with data for the server to process. The server log shows the time the request was received by the server and the number of bytes sent back to the client. In this case the response must have included information that the error.gif was to be displayed. The client, not having the required file, then sent a request back to the server for the error.gif file. That request was received by the server at the time in the log entry mentioned above and the file sent back to the client, when the client displayed the error message to the customer.
Now, when did the server send the response back to the client after the "Submit the information" button data was received? After all account creation processing, including sending emails, was complete, or earlier -- after detecting some error in the received data? In other words, did the server continue to process account creation after notifying the client that it must display the error message? Knowing the answer will help identify whether the error is occurring during the email process or before. There is evidence to suggest that at least some of the account creation emails were sent before the request for the error.gif file request was received by the server. There is no indication that emails bounced.
For what it's worth, I can not reproduce the problem. Whatever the customer did remains a mystery to me, and the errors continued for every page the customer brought up. The address_book, customer, and order tables all appear correct and complete, as are the emails. The order was successfully completed, but only after the customer must have corrected whatever was wrong, as initially, a Square payment failed due to an invalid country. The product ordered did not require shipping. The product was added to the cart before the account was created. The product involved attributes and no downloads are involved.
a sample of the error logs and relevant parts of the server logs are attached.
Dave
zc157c, php 8.0.2, mysql 8.0.28, SBA, USPS Address Validation, Remember Me, discount modules, ZXPOS, other custom code
Bookmarks