-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't edit an order, getting syntax error #2587
Comments
Duplicate #2567 |
For anyone else reading this it appears that if your hosting provider does not support CURL connections then they will not be able to support opencart and you will have the same issue. |
most payments and shipping modules relay in curl, so it will not be functional at all. but the ajax stuff i a different thing |
I did manage to fix the issue in the end though I don't fully understand how this sorted it out. I Opened config.php in the admin folder and found the following lines define('HTTPS_SERVER', 'http://www.mywebsite.uk/admin/'); Then changed the http to https as below: define('HTTPS_SERVER', 'https://www.mywebsite.uk/admin/'); This sorted it out for me. |
I had the same issue and tried all workarround possible and imaginary. In the end gave up and called my Hosting - SiteGround - They found that OpenCart wont run propperlly on any php version above 5.4.33. USE 5.4.33 This might not solve all issue, or might work only in conjunction with other fixes ABOVE but worth a try to check which php version your Hosting is running by default. Regards |
I think I found the solution for this issue, since in OpenCart 2 it uses API so you need to do these steps:
|
Didnt work for me. Only being sure my host was on Php 5.4.33 fixed it. And yes i tried ALL them sugestions. Even editing the SQL itself. None worked |
I am using PHP 5.5.21 and it is working well. Try to double check the steps I mentioned above. |
For me all was working well, and IS, on a sandobox i am using. |
THis worked like charm for me. For it to work for you, ask your host to disable mod_security for urls with "admin", or urls containing your IP Address, or check if your htaccess can overide and disable it from there. You can also exclude per request/method type 'POST' or 'GET'. Please note, Latest mod_sec is mod_security2 |
I have created a fix for this order update page JSON error. Sincerely, Mike |
When i go to edit an order and press continue I get the following pop up message:
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK
The site is not password protected or in maintenance mode.It is a totally clean install. I also tried switching mod_security off
I noticed the same issue as well on Opencarts admin demo if that means anything.
For what it's worth my web hosting provider (one of biggest in UK) told me that the following:
'Opencart 2 will not work on our systems due to loopback connections being blocked'
The text was updated successfully, but these errors were encountered: