Error when indexing products
- 123bladmuziekParticipant4 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 0wpsolrKeymaster4 years, 2 months ago #21623If you use PHP 7.4, a fix is available at: https://www.wpsolr.com/forums/topic/woocommerce-archive-pages-not-showing-products/page/3/
finalwebsitesParticipant4 years, 2 months ago #21868Hi,
(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 0Looks 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.finalwebsitesParticipant4 years, 2 months ago #21869ooh, I’ve installed the patch and it doesn’t change the result.
wpsolrKeymaster4 years, 2 months ago #21870To 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.
finalwebsitesParticipant4 years, 2 months ago #21872Thanks 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?
finalwebsitesParticipant4 years, 2 months ago #21879Thanks 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?finalwebsitesParticipant4 years, 2 months ago #21880Okay I found the real reason which is from a bad import of the description. Characters likes here:
„Juwel der Gegenwart“
You must be logged in to reply to this topic.