Page 1 of 1
syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Wed Jul 17, 2019 10:37 pm
by sansou
Dears, I got SyntaxError:Unexpected token : < in JSON at position 0
OK
<!DOCTYPE html>
....
<title>Permission Denied!</title>
when I clicked Edit Order, I use 3.0.2, any idea please? thanks!
no server log or OC admin log related to that
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Thu Jul 18, 2019 5:49 pm
by paulfeakins
sansou wrote: ↑Wed Jul 17, 2019 10:37 pm
<title>Permission Denied!</title>
Are you using an htaccess password to protect the whole site?
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Sat Jul 20, 2019 4:43 pm
by sansou
paulfeakins wrote: ↑Thu Jul 18, 2019 5:49 pm
sansou wrote: ↑Wed Jul 17, 2019 10:37 pm
<title>Permission Denied!</title>
Are you using an htaccess password to protect the whole site?
My htaccess1 file is .htaccess1 , and I use web.config for URL rewrite; also I use IP2LOCATION-LITE extension to block China IP visiting. any problem with them please?
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Sat Jul 20, 2019 5:05 pm
by sansou
paulfeakins wrote: ↑Thu Jul 18, 2019 5:49 pm
sansou wrote: ↑Wed Jul 17, 2019 10:37 pm
<title>Permission Denied!</title>
Are you using an htaccess password to protect the whole site?
Chrome console:
2/404.php:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
jquery-2.1.1.min.js:4 GET
https://ch-power.com/404.php 500 (Internal Server Error)
send @ jquery-2.1.1.min.js:4
ajax @ jquery-2.1.1.min.js:4
(anonymous) @
https://ch-power.com/xxxxxxxx/index.php ... rder_id=18
dispatch @ jquery-2.1.1.min.js:3
r.handle @ jquery-2.1.1.min.js:3
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Sun Jul 21, 2019 5:36 pm
by paulfeakins
I think the problem is some AJAX is trying to access a URL that is password protected.
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Sat Aug 10, 2019 6:38 pm
by sansou
paulfeakins wrote: ↑Sun Jul 21, 2019 5:36 pm
I think the problem is some AJAX is trying to access a URL that is password protected.
thanks! my site has no URL needs password, seems have to check with programmer
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Mon Aug 12, 2019 5:46 pm
by paulfeakins
sansou wrote: ↑Sat Aug 10, 2019 6:38 pm
thanks! my site has no URL needs password, seems have to check with programmer
You could ask in Commercial Support or we could have a look:
info@antropy.co.uk
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Mon Aug 12, 2019 6:21 pm
by letxobnav
it is your 404.php page which produces a 500 error.
so open your web developer tools and first see why it is going to your 404.php page in the first place.
After solving that you can see why your 404.php produces a 500 error.
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Sat Sep 14, 2019 9:54 am
by lilpantherpaw
I am not sure if this is the correct thread, so please forgive me if it is not. Suddenly, after a module support technician fixed an age verification issue on my OC site, my <Sales> section disappeared and I get the following error: "Permission Denied! You do not have permission to access this page, please refer to your system administrator." I checked all boxes for access for my top tier user group, it made no difference. <Sales> seems to be the only section affected. The module developers say it has nothing to do with their work on their module on my site. I have contacted OC on ZenDesk twice over the past 3 weeks with no response. I do not see any online resolves to this specific issue. I have attached screenshots so you can see my issue.
Re: syntax error unexpected token in json at position 0, permission denied! when Edit Order
Posted: Mon Sep 16, 2019 5:14 pm
by paulfeakins
lilpantherpaw wrote: ↑Sat Sep 14, 2019 9:54 am
I am not sure if this is the correct thread, so please forgive me if it is not.
I think start a new topic.