Shopping Cart Errors
Autor: Derek C.
Visited 1396,
Followers 1,
Udostępniony 0
I am getting several errors on our web site newdayaudiovisual.uk when using the shopping cart.
1) Order Report - Terms and conditions appear twice and in full form. Once is enough and a simple I agree to the terms and conditions with a link to it would be good.
2) After you hit Buy Now the following error comes up newdayaudiovisual.uk says Generic Error. This should go to PayPal at this point.
Help would be appreciated
Posted on the
Hello Derek,
Regarding your first point, this issue is well-known and has been discussed quite a few times on the Help Center. For example:
https://helpcenter.websitex5.com/pl/post/225731
https://helpcenter.websitex5.com/pl/post/228363
You will find further advice and links to workarounds in those threads. Incomedia are aware of this issue.
Your second problem could be related to your server configuaration. WebSite X5 requires PHP 7.1 or newer, and MySQL 5.6 or newer in order to work correctly.
If your server already meets these requirements then the next step would be to look at the error logs on the server, which will give more detailed information as to exactly what the problem is. Your webhost will be able to help you locate these logs if you are unsure where to find them yourself.
However, I have already noticed that your WebSite Address (URL) is set incorrectly, and this alone could cause the error. You will find this field in Step 5 (Export).
It is currently set as follows:
http://newdayaudiovisual.uk/
But you are using an SSL certificate on your website, so the URL must be amended to the following:
https://newdayaudiovisual.uk/
Please keep us updated. We are all here to help if we can.
Kind regards,
Paul
Search the WebSite X5 Help Center
Autor
Hi thanks for looking. Changed the URL. Our web scriting is PHP 7.2 and is active. Still getting the error. Will look at the terms and conditions page now
... with my simple and exclusive EXTRA code in the (cart) | (/ HEAD) section you can achieve this result:
<style>
#agreement-text-sidebar, .btn-proceed-to-order {display:none}
.small-font {overflow-y:scroll; height:150px !important}
</style>
-
-
ciao
.
Autor
thanks for that.
Now getting
The following tests failed
MySQL Database settings (Sales)
Please go to the following URL:
https://newdayaudiovisual.uk/admin/login.php (your login credentials are your Administrator username and password as set in WebSite X5 itself, Data Management)
...and run the tests in the Website Test section.
This will verify your MySQL installation. In all probability your MySQL login credentials are not correct. Your webhost will be able to advise you as to what these should be.
Autor
I get a 500 Internal server error when I try to log in
Unfortunately that suggests that PHP is not correctly installed on your server.
Who do you host with? Is it 1&1/Ionos?
Autor
Hi we use Fasthosts I will contact them this morning to check
Autor
Hi checked with Fasthost PHP is working so on their advise I took down the site and reloaded it. Still getting a 500 error
Autor
OK Mysql settings
Server settings
Database name Sales
Username NewDayAV
W5 setiings
Database Name Sales
Username NewDayAV
Password is the same for both. Question what should the Hostname be?
What do Fasthosts say it should be? Unfortunately only they can supply you with that information, Derek. It's not something that any of us would be privvy to on the forum.
Your Fasthosts control panel might include this detail somewhere, but again Fasthosts themselves will advise.
If the database resides on the same server as your website then it's fairly common to use localhost as the hostname, but we can't say definitively without knowledge of how the server is configured.
Keep us posted.
The following article suggests that your Hostname is a numerical IP address found in your Fasthosts control panel:
https://help.fasthosts.co.uk/app/answers/detail/a_id/2132/
Autor
Hi Paul no longer getting an error message when I upload the site but still the shopping cart is showing a Generic Error. Any ideas?
Do you mean that you now have PASSES showing in all areas of the Website Test section (online control panel)?
https://newdayaudiovisual.uk/admin/login.php
Just to confirm... before moving on...
Autor
I still get an internal error 500 when I try to log on. When you go to upload the W5 tests the PHP and MYSQL that now passes but still no connection on the web site!
At this stage I would ask Fasthosts to check the error log on the server. Each time you get a 500 error there will be a detailed note made somewhere in the logs which will help lead you to the precise source of the trouble.
It is still possible that the PHP configuration is a little amiss. The tests on upload are not exhaustive. Again, the error log holds the key.
I would also temporarily bypass any .htaccess files on your server (assuming you are hosted on Apache), to rule these out as another factor. They can sometimes cause havoc like this. You need to check/bypass any .htaccess files in the root folder of your WebSite X5 project, and any which might be present in the sub-folders of the root folder.
Sadly, your site won't function correctly until (at a minimum) you are able to log on successfully to the online control panel.
... currently it seems to me that you use PHP/7.2.13 ...
... try to select and activate a different and/or higher version on the server ...
.
Autor
I only have the option 7.2
PHP 7.2 should be fine...
WebSite X5 Tech Specs
... maybe it will be a problem with the server where ASP.NET is also active ...!...
... trying to replace doesn't hurt ...
... and maybe even better to use a more reliable and compatible server ...
Hello everybody
.
Autor
Hi still have not been able to resolve the Admin page issue. Just had this back from our server provider.
Dear Derek
Further to your enquiry (201019-000221),
I have taken over this ticket as the previous advisor is currently unavailable. I have uploaded a web.config file in your website so this will show the cause of the 500 error. If you will check this now, it will show you this error message below:
PHP Notice: Undefined index: email in \\HP3-WINC2-SMB1.HOSTINGP3.LOCAL\DOMAINSX\261\268261\user\htdocs\res\x5engine.php on line 7322
It looks to be an issue on this file - x5engine.php - under the line 7322 which is the one below:
"orderscount" => Configuration::getCart()->getOrdersCountByEmail($user['email']),
I would suggests for you to check this one in order to resolve the issue of your site as this is a scripting issue already and it is out of our scope I'm afraid. Should you have any other concerns and clarifications, please reply to this email.
Thanks again for contacting us.
Best regards,
This confirms that it was the PHP configuration which was to blame, Derek.
PHP 'notices' should not be active on a production web server. They can halt script execution, and lead to reduced security.
Ask your webhost to suppress the display of PHP notices (and also warnings and errors), and to log such information silently in the background instead.
WebSite X5 should then run as it should.
Your issue is the same as the one in the following thread:
https://helpcenter.websitex5.com/pl/post/227723
Autor
Hi one of the reasons we changed to using X5 was because it came with a shopping cart. We have not had a shopping cart for awhile. Our old shopping cart which used PHP worked with no problems. We have used Fasthosts for a number of years and will not changing just to get this cart working. Security is important to us and many other providers are either poor or weak. Also the technical support we get is first rate. We have several web sites all working.
If there is a scripting error we need to put it right and its up to you to provide the correct script and how we put it right.
So, so far no admin panel and no shopping cart. All other PHP scripts work well and correctly.
Just had this from Fasthosts as a PHP Notice
\\HP3-WINC2-SMB1.HOSTINGP3.LOCAL\DOMAINSX\261\268261\user\htdocs\res\x5engine.php on line 7322
How do we get this working?
Unfortunately I can't speak for Fasthosts, Derek, but I do know that WebSite X5 works correctly on thousands of websites all over the globe.
I have given you the solution to your issue in my previous post. Implementing my advice does not weaken your site security: on the contrary it strengthens it.
I'll mark your thread for the attention of the Incomedia support team, but I'm not sure they will be able to offer an alternative. This remains a hosting/server/configuration matter.
The following article is from Fasthosts own support site:
WordPress Security - Best Practices
The article recommends disabling PHP error reporting.
The advice is no different for WebSite X5: PHP notices, warnings and/or errors should not be switched on or displayed on a production website. Fasthosts should be able to configure your server accordingly.