wallacepos icon indicating copy to clipboard operation
wallacepos copied to clipboard

Uncaught SyntaxError: Unexpected token o in JSON at position 1

Open singhrajender opened this issue 3 years ago • 1 comments

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 avatar Apr 05 '21 02:04 singhrajender

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

singhrajender avatar Apr 05 '21 12:04 singhrajender