Skip to content
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

Uncaught SyntaxError: Unexpected token o in JSON at position 1 #173

Open
singhrajender opened this issue Apr 5, 2021 · 1 comment
Open

Comments

@singhrajender
Copy link

Hi Guys,

I recently installed WallacePOS.

Once installed I login as "admin" and Under "Settings->Staff&Admins", try to edit default username "staff".

Here when I click "Update" it's showing me following error.
Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at WPOSAdmin.sendJsonData (wpos.js:431)
at saveItem (eval at globalEval (jquery-2.0.3.min.js:4), :249:22)
at HTMLDivElement.click (eval at globalEval (jquery-2.0.3.min.js:4), :82:25)
at HTMLButtonElement.s.click (jquery-ui-1.10.3.full.min.js:7)
at HTMLButtonElement.dispatch (jquery-2.0.3.min.js:5)
at HTMLButtonElement.y.handle (jquery-2.0.3.min.js:5)

After I research, In wpos.php the error is happing at $cleanData = $purifier->purify($_REQUEST['data']);

Any advice or idea please let me know
screen1
screen2

Regards,

Raj

@singhrajender
Copy link
Author

Hi Guys,

I tried editing other data and also try creating new data like new item categories, but it is giving same error.

If any body have any idea please let me know.

Thanks & Regards,

Raj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant