SyntaxError: Unexpected token { in JSON at position 1314
- aksmParticipant4 years, 7 months ago #16581
Still getting the same error after recreating the index. I think that debug.log might be an old error. I cleared before recreating, and there’s nothing there now.
What’s odd is that if I stop the indexing in the middle of the error, the dashboard shows that all the documents are in the index.
aksmParticipant4 years, 7 months ago #16585Same error with single document.
Hmm, I’m just noticing now an error at the bottom of the dashboard debugging:
{“nb_results”:0,”status”:8,”message”:”Error on line 384 of file \/var\/www\/wordpress\/wp-content\/plugins\/wpsolr-pro\/wpsolr\/core\/ajax_solr_services.php: Trying to access array offset on value of type null”,”indexing_complete”:false}
Could it be a PHP version problem?
wpsolrKeymaster4 years, 7 months ago #16588It looks like the error catching code is itself … in error.
Can you edit file /wp-content/plugins/wpsolr-pro/wpsolr/core/ajax_solr_services.php and replace line 384:
if ( E_ERROR === $last_error['type'] ) {
with:
if ( isset( $last_error ) && isset( $last_error['type'] ) && ( E_ERROR === $last_error['type'] ) ) {
You must be logged in to reply to this topic.