Error when indexing products

Tagged:
  • 123bladmuziek
    Participant
    4 years, 2 months ago #21622

    Error indexing items http://www.123koormuziek.nl
    An error or timeout occured.
    Error code: parsererror
    Error message: SyntaxError: Unexpected token P in JSON at position 0

    wpsolr
    Keymaster
    4 years, 2 months ago #21623
    wpsolr
    Keymaster
    finalwebsites
    Participant
    4 years, 2 months ago #21868

    Hi,
    (I’m working for 123bladmuziek)
    The issue is not related to PHP versions and it happens only for one of 3 websites.
    What does that error mean?

    An error or timeout occured.
    Error code: parsererror
    Error message: SyntaxError: Unexpected token P in JSON at position 0

    Looks more like some invalid data. Any advice how to debug this? The debug data doesn’t give any useful information.
    I tried also a new index, the index process just stops every time for the last ~13000 products. The first 27000 are okay.

    finalwebsites
    Participant
    4 years, 2 months ago #21869

    ooh, I’ve installed the patch and it doesn’t change the result.

    wpsolr
    Keymaster
    4 years, 2 months ago #21870

    To find the products with the error, you need to index with:
    – Batch size “1”
    – Debug mode “on”

    The indexing will fail once. Stop and restart with the same settings, and you will see the ID of the product.

    From there, you can edit the product, and try to fix the problem, or simply check its metabox “Do no search” to prevent its indexing.

    finalwebsites
    Participant
    4 years, 2 months ago #21872

    Thanks for the information. I think I’ve checked some products before, they looked very basic. For what kind of issues do I need to look with the products?

    wpsolr
    Keymaster
    4 years, 2 months ago #21874

    Often, errors come from a forbidden unicode characters from imports.

    finalwebsites
    Participant
    4 years, 2 months ago #21879

    Thanks for this, makes sense.
    I did this and than I see this lind of errors:
    “message”:”failed to parse field [displaydate_dt_i] of type [integer] in document with id ‘96090’”
    Which post meta field is this?

    finalwebsites
    Participant
    4 years, 2 months ago #21880

    Okay I found the real reason which is from a bad import of the description. Characters likes here:
    „Juwel der Gegenwart“

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

You must be logged in to reply to this topic.