Search keyword not working properly
- hsurekarParticipant2 years, 3 months ago #29722
Hi
I have created new index and start indexing but i am getting frequently error while doing indexing.
I have skipped so many posts but still i am getting below error.
An error or timeout occured.
Error code: parsererror
Error message: SyntaxError: Unexpected token P in JSON at position 0wpsolrKeymaster2 years, 3 months ago #29725You can try commenting out line 878 of file wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractindexclient.php:
try { $res_final = $this->send_posts_or_attachments_to_solr_index( $documents ); } catch ( \Exception $e ) { if ( $is_debug_indexing ) { // Echo debug text now, else it will be hidden by the exception echo $debug_text; } // Continue // throw $e; <== THIS LINE COMMENTED !!!! }
- This reply was modified 2 years, 3 months ago by wpsolr.
hsurekarParticipant2 years, 3 months ago #29742It is working now thanks for your help.
But one more question.
while we are creating new post from admin side at that time it’s not indexing automatically. we need to indexing manually instead of cron. So could you please let me know how can i make it automate index instead of manually?Thanks
hsurekarParticipant2 years, 3 months ago #29879Hi
I have getting below error while doing indexing.
An error occured:
Error on line 161 of file /nas/content/live/tabbgroup/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/src/Core/Client/Adapter/Http.php: file_get_contents(https://aws-virginia-solr4-10.opensolr.com:80/solr/tabbforum/update?omitHeader=false&wt=json&json.nl=flat): failed to open stream: HTTP request failed!
could you please let me know how to fix this error?
Thanks
You must be logged in to reply to this topic.