Generic error when submitting order
Author: Arild G.
Visited 2368,
Followers 1,
Shared 0
I've updated to latest X5 Evo 2019.3.11 from previous version. Unfortunately, it now pops up "generic errror" message whenever an order has been finshed in the basket and the user clicks "Submit order". The same error applies both to online version and to local Website copy. I think previous version gave message like "Your order has beeen sent" rather than "generic error", and the basket was emptied. Now, the old product lines remain when trying to add a new order. However, email receipts for the first order arrive correctly both to customer and to admin.
Posted on the
Hello.I just checked WebSite X5 Evo 2019.3.11. Everything works fine for me.
Regarding the local version. Try to hold down the CTRL key and without releasing it press the preview button.
Regarding the version on the hosting.Check that you have a PHP 7.2. Also delete all site files from the hosting and upload the site again completely. Look in the server logs for any errors there. Perhaps some requests are blocked on the hosting.
Author
Yes, in Preview the system woks fine. However, online - or when opening a local copy (from the Chrome browser) the "Generic error" persists, like on the online version. Also, the old cart contents and the customer's data (name, address etc) are not erased when starting a new order.
The server has PHP 7.2.5. The site's files were erased and uploaded again.
By the way, I attach a file from the online root folder. This file was added when the site has been accessed. New version every time in an accumulating manner (new file name). Another file, versions.xml, also get an update according to its time stamp.
Please provide a link to the product page.
I sent a request to the technical support of the company.Expect an answer from them here in the comments.
Author
Thanks for following up. Here is a product page example (in Norwegian) to start from:
http://ulsteinminilager.no/leie-pr.-maned---1.-etasje.html
The error appears at check-out when submitting order in the last step.
Author
...under "Betaling" (payment) choose "Betaling via faktura (10 dagers forfall)" (invoice) rather than paypal checkout, so that you are not charged immediately when sending the order ;-)
Hello Arild
I can see that your server is showing an ERROR 500 when the order is created:
This is a generic error which is generated by the server when something just isn't working out right, but it does not explain what the actual error is.
You need to contact your hosting provider and ask them to verify the ERROR LOG of your server for you.
Then, report the real error here to me so that I might help you sort this out
Keep me posted on this here
Thank you
Stefano
Author
Sorry - I don't know why you got this error. Perhaps it is a difference when using the link I provided directly to the final page of the shopping cart (data cached locally, that's probably why I don't see this error), rather than starting a new order from scratch from the home page:
www.ulsteinminilager.no
Please see attached screenshot from my side today, where I have marked (1) Generic error appearing when order has been submitted, (2) the message box saying that the order has ben sent, and (3) an inset showing that this message changes to non-active button "Bestill" (order) when the generic error box at top has ben closed.
When I re-start a new order from the home pg, the provious order's data appears together with the new product line.
Hope you are patient and give this issue a new test, starting from www.ulsteinminilager.no...
Hello Arild
I apologize, I believe my answer might have caused some confusion. The error I get is the same you're getting. I was simply able to analyze it more in-depth in order to find a specific error code to report to the hosting. My previous message still stands.
"This is a generic error which is generated by the server when something just isn't working out right, but it does not explain what the actual error is.
You need to contact your hosting provider and ask them to verify the ERROR LOG of your server for you.
Then, report the real error here to me so that I might help you sort this out"
Keep me posted on this here
Thank you
Stefano
Author
I et the same "Generic error" pop-up when I run a local Webite copy starting with index.html in the browser (generated from system export), as when I do when running it from the server... The error disappers when I run the site locally from Preview rather than from the exported set of files. So I can't see that it is a matter of a server issue. You can download the zipped file for the entire site from http://ulsteinminilager.no/ulstein.zip (1.5MB).
Hi, Even from me it comes out the one written now, on a site I'm working on.Yet before the last update everything was working fine.
Hello Arild
I've tested your project and it definitely seems to be a hosting issue. In fact, I could get it to work just fine. This can happen on a local webserver as well, this is absolutely normal.
You need to ask your hosting provider to turn the display of errors OFF on your hosting. This will fix the error.
You can contact them and ask them to turn the parameter display_errors to off and the issue should go away
Try this out and let me know if the problem is solved
Thank you
Stefano
Author
This is strange indeed. I've now turned on detailed error under IIS settings for this site. Still, I don't see the IIS error message you refer to, only the "generic error" pop-up, as described in my jpg file already submitted above. I attach the entire IIS log file for www.ulsteinminilager.no from today, including my most recent test of the shopping cart. Can you spot the error from this log file's content?
Author
If we don't resolve this issue, can you please provide a link to the previous version of X5 Evolution, so I can roll-back (I have previous versions of my website project in back-up)? My current version is X5 Evo 2019.3.11.
Author
PS: by the way, the server's php.ini is already set to "display_errors = Off"
Author
I just noted another discrepancy betwen Preview from X5 and running a Website copy from browser (whether using local on PC or online on server, which both produce the Generic error issue). Under X5 Preview, after clicking submit order it comes some lines with order information (in Norwegian, on my site it reads "Vennligst noter deg ditt bestillingsnummer: 191211-EL07"). When runnig the site outside X5, this info is lacking, and instead we get the Generic error pop-up, and the cart data is not emptied when leaving the cart (re-appering in next order).
Author
A final note: in my project I've activated email communication of orders only (working well), not any PHP-linked database setup for order handling. That has worked well in previous 2-3 versions of X5. However, since you are stressing the PHP issue - perhaps not in this latest X5? At this point during testing of my site there is no Mysql setup for the project in X5; i.e., no database on my local PC nor at my server.
Hello Arild
Please do not consider the internal preview of the software as the final online website. The internal preview of the software simulates the final website as if it was running with PHP, but it isn't. It is but a simple simulation and no real PHP is involved. It would be impossible to encounter PHP errors in the preview since it is not being used.
I can't stress enough the fact that I would still suggest you contact your hosting about this. I can see from your online website that the PHP warnings are indeed still on as shown by my screenshot here. This is from the analysis console on your website when the error appears:
These errors are appearing here and they shouldn't. The software has no control over this though and it is up to the server to disable the display of these when the website is live.
Technically, disabling this should already fix this and I ask you to contact them to make this possible. Should the error still appear after, ask them to analyze the ERROR LOG for you. What you posted above is the ACCESS LOG which is slightly different. It doesn't display the real reason behind an ERROR 500
Please proceed like I mention here and keep me posted on the result
Thank you
Stefano
Author
Hello Stefano,
Thanks for your help and patience. The "Generic error" issue seems to have been partly solved now. First, I found an extra copy of php.ini under c:\windows. That is now deleted. Further, I set the path for error_log in php.ini. The log file after running a test order is attached. As you see, there seems to be isues still, but the pages seem to behave normally now, in addition to receiving the order by email - as it should. Can you please comment on the errors in the log file?
Hello Arild
I'm glad to hear that the issue is solved and the checkout process is now working correctly.
The developers are already aware of these warnings that can possibly hinder the functionality of the cart and are currently working on this
For the moment, I have no news about the issue but the solution I provided about the warnings should be working fine for you now
Thank you
Stefano