Skip to content

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

@singhrajender

Description

@singhrajender

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions