Error message: SyntaxError: Unexpected token P in JSON at position 0

  • pseudo visitor
    Participant
    # 7 months, 2 weeks ago

    Hi,

    I need to index some additional ACF fields and I am trying to test this on our staging server but I am unable to complete this as the attached error is generated.

    An error or timeout occured. 
    
    Error code: parsererror
    
    Error message: SyntaxError: Unexpected token P in JSON at position 0
    wpsolr
    Keymaster
    # 7 months, 2 weeks ago

    Hi,

    Ok.

    Procedure to find and discard the post(s) with an indexing issue:
    – set batch size “1”
    – Set debug mode “on”
    – Synchronize until it stops on error
    – Stop
    – Synchronize again (to see only the post id in error in debug message)
    – edit the post, mark it as “not searchable” in the WPSOLR post metabox
    – do again the whole procedure

    Also check your Solr/Elasticsearch logs.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.