SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK
Couldn't find any solution. It is very frustrating. I would appreciate if someone could guide me to the right direction.
Attachments
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK - 2014-11-03 03.53.17 pm.png (107.45 KiB) Viewed 25288 times
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Read http://forum.opencart.com/viewtopic.php?f=181&t=131683
for more info.
Mark as [SOLVED] in the title if it works for you.
http://forum.opencart.com/viewtopic.php ... 99#p522416
Frank
OK
I am also getting this error and tried all what was posted on google search using SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Has anyone found any luck. It was working fine and just happened?
Just spent the last few hours debugging to find this. Hope it helps someone.
OK
Could you provide your site url, a admin account and a FTP account via PM, so I can take a look at this problem closer?
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
If you do this and you try to edit orders you get error like:
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
If you modify admin/config.php and change this line:
define('HTTPS_CATALOG', 'http://domain.com/');
with:
define('HTTPS_CATALOG', 'http://htaccess-user:htaccess-password@domain.com/');
I don`t get that error anymore and edit order(for ex.) is working fine.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
go to Admin->System->users->Api
Add a new api generate password, and enable it
Then go to Admin->system->settings->Edit->Option(tab)
Select api user under Checkout section as your api user
Then save the changes
Then go to Sales->orders->edit
It will work fine :-)
Exactly the same symptoms as yours
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
So I created a fresh database and a fresh install of opencart 2.0.1
Initially I had no issues with new orders but as more orders where added and history ammended I got the same eror intermittently.
The only way around this was to clear cookies, close browser , reboot the laptop i was using, use an alternative browser. or login to another computer to change the history status.
this message seems to just seem to come up randomly when opencart feels like it
Really I should have just stayed with old version i would have saved 3 days mucking about fixing 'issues' in a version thats obviously not ready for production yet.
Could you provide your site url, a admin account and a FTP account via PM, so I can take a look at the problem closer?smudge wrote:Ive had a lot of issues upgrading from opencart 1.5.1 to 2.0.1
Exactly the same symptoms as yours
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
So I created a fresh database and a fresh install of opencart 2.0.1
Initially I had no issues with new orders but as more orders where added and history ammended I got the same eror intermittently.
The only way around this was to clear cookies, close browser , reboot the laptop i was using, use an alternative browser. or login to another computer to change the history status.
this message seems to just seem to come up randomly when opencart feels like it
Really I should have just stayed with old version i would have saved 3 days mucking about fixing 'issues' in a version thats obviously not ready for production yet.
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Code: Select all
// Set SSL if required
if (substr(HTTPS_CATALOG, 0, 5) == 'https') {
curl_setopt($curl, CURLOPT_PORT, 443);
}
Code: Select all
// HTTPS
define('HTTPS_SERVER', 'https://' . $baseurl . 'admin/');
define('HTTPS_CATALOG', 'https://' . $baseurl );
Code: Select all
// HTTPS
define('HTTPS_SERVER', 'http://' . $baseurl . 'admin/');
define('HTTPS_CATALOG', 'http://' . $baseurl );
So if you don't have https on your server, make sure even HTTPS_SERVER contains the regular http url
I get the same error "opencart 2.0 SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK" when I change Order Status. I also delete .htaccess file, api_id in oc_api table the same value in oc_setting table.
And also get the error: "Warning: No match for Username and/or Password." when I delete order
I hosted the source code on the internet and the function worked last two days and it is not working now. However when I copy the source code and run on my PC then it work.
Anyone can help me? Thanks a lots.
Users browsing this forum: No registered users and 39 guests