Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I as seeing the same thing. Here’s the relevant part from the javascript console:

    editor.js:336 error: SyntaxError: Unexpected token < in JSON at position 0

    Thread Starter screame1

    (@screame1)

    I’m afraid I tried both. I’ve checked permissions to make sure they are set to ‘edit events’ for the user I created for anonymous postings. Anything else you can suggest?

    Thanks!
    Scott

    iScot & Tom,

    Sorry to jump in on your discussion here but I think you are facing the same issue I am and it sounds like you got it solved but I’m having trouble putting together the pieces. I’m hoping one of you can help step me through what you wound up doing to make it work.

    We will be trying to create posts from another server to our wordpress server. It will be done via php command line without ever having ‘logged in’ to our wordpress server. The cookie creation and validation would need to be done entirely by command line.

    I’m able to generate the values needed for the nonce and I can get the long authorization code but when I try to create the post I get the same error you do. The dreaded “You need to login with a user that has ‘edit_posts’ capacity.”

    Can one of you possibly step me through each of the calls that need to be made in order to be able to post? We will be using php and curl to make the calls but if you can step me through even with just urls that would be great!

    Thanks!
    Scott

Viewing 3 replies - 1 through 3 (of 3 total)