• Resolved sabdullah98

    (@sabdullah98)


    I have installed WPSOLR installed and configured it, the connection part is done, but on send the data part, it shows the following error.

    An error or timeout occured. 
    
    Error code: parsererror
    
    Error message: SyntaxError: Unexpected token P in JSON at position 0
    
    Posts excluded from the index:<br><b></b><br><br>******** DEBUG ACTIVATED - Beginning of new loop (batch size) *******<br><br>******** DEBUG ACTIVATED - Query documents from last post date *******<br><br>Query:<br><b>SELECT ID, post_modified, post_parent, post_type FROM wp_posts AS posts WHERE ((post_modified = %s AND ID > %d) OR (post_modified > %s)) AND ( post_status IN ('publish') AND ( post_type in ('product') ) ) ORDER BY post_modified ASC, ID ASC LIMIT 1</b><br><br>Last post date:<br><b>1000-01-01 00:00:00</b><br><br>Last post ID:<br><b>0</b><br><br>Post to be sent:<br><b>{ "id": "2131", "PID": "2131", "title": "The illustration of Qura'an", "post_status_s": "publish", "content": " The illustration of Qura'an by Abdullah Yusuf Ali available at [[OUR WEBSITE NAME] simple. Discounted Books. English. Tafseer. Farid Book Depot", "author": "Farid Book Depot", "author_s": "http:\/\/OUR WEBSITE NAME\/author\/faridbookdepot\/", "type": "product", "date": "2016-05-07T02:59:52Z", "modified": "2016-08-20T04:59:55Z", "displaydate": "2016-05-07T08:29:52Z", "displaydate_dt": "2016-05-07T08:29:52Z", "displaymodified": "2016-08-20T10:29:55Z", "displaymodified_dt": "2016-08-20T10:29:55Z", "permalink": "http:\/\/[[OUR WEBSITE NAME]\/product\/the-illustration-of-quraan\/", "comments": [ ], "numcomments": 0, "categories_str": [ ], "flat_hierarchy_categories_str": [ ], "non_flat_hierarchy_categories_str": [ ], "tags": [ ], "product_type_str": [ "simple" ], "flat_hierarchy_product_type_str": [ "simple" ], "non_flat_hierarchy_product_type_str": [ "simple" ], "product_cat_str": [ "Discounted Books", "English", "Tafseer" ], "flat_hierarchy_product_cat_str": [ "Discounted Books", "Language->English", "Tafseer" ], "non_flat_hierarchy_product_cat_str": [ "Discounted Books", "Language", "English", "Tafseer" ], "product_tag_str": [ "Farid Book Depot" ], "flat_hierarchy_product_tag_str": [ "Farid Book Depot" ], "non_flat_hierarchy_product_tag_str": [ "Farid Book Depot" ], "categories": [ "simple", "Discounted Books", "English", "Tafseer", "Farid Book Depot" ] }</b><br><br>{"nb_results":0,"status":405,"message":"Solr HTTP error: OK (405)\n<html>\n<head>\n<meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html;charset=utf-8&quot;\/>\n<title>Error 405 HTTP method POST is not supported by this URL<\/title>\n<\/head>\n<body><h2>HTTP ERROR 405<\/h2>\n<p>Problem accessing \/solr\/index.html. Reason:\n<pre> HTTP method POST is not supported by this URL<\/pre><\/p>\n<\/body>\n<\/html>\n","indexing_complete":false}
    

    It shows Error 405, HTTP method POST is not supported by this URL, please suggest what shall i do.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Was it with Solr 7 ?

    Thread Starter sabdullah98

    (@sabdullah98)

    Yes, initally i tested it with solr 7, then i thought it could have been the version issue, so i installed solr 6.6.0 , but still getting the same issue.

    here is the instance: Link

    Plugin Author WPSolr free

    (@wpsolr)

    Did you create the indexes from within the plugin ? There are instructions to copy/paste.

    • This reply was modified 7 years, 5 months ago by WPSolr free.
    Thread Starter sabdullah98

    (@sabdullah98)

    i have downloaded the config files from here and then copied in a newly created core replacing the older files.

    Is that the correct way?

    i have ticked what are the things to be indexed from the plugin backend?

    Plugin Author WPSolr free

    (@wpsolr)

    I have just tested Solr 7: it’s fine.

    Much simpler for you:
    – in wpsolr, create a new index configuration
    – wpsolr will show you a series of shell commands to execute on your Solr server
    (which also includes the download of wpsolr conf files)

    That’s it !

    Thread Starter sabdullah98

    (@sabdullah98)

    In my panel, after creating new index, no shell commands appears,

    here is an error on sed data page, it appears even before i click indexing button, Here

    could it be my server config error?

    Plugin Author WPSolr free

    (@wpsolr)

    What’s your wpsolr version ?

    Did you select ‘Solr’, or ‘Solr Cloud’ in the dropdown list ?

    Thread Starter sabdullah98

    (@sabdullah98)

    Wpsolr version : WPSOLR 19.4
    I have selected Solr, as i have my own instance, Here

    ON creating index, the button at botton becomes Green and check sign appears means my connection is correct.

    Thread Starter sabdullah98

    (@sabdullah98)

    I tried on Solrclound, and there it is working,

    It means its my server issue, how to get rid of this Error 405 issue. any suggestions

    Plugin Author WPSolr free

    (@wpsolr)

    Do not reuse existing indexes names (remove them, or use names not used as existing indexes). Else wpsolr will try to use them, with their current bad config.

    Thread Starter sabdullah98

    (@sabdullah98)

    I have installed Elastic search instance and configured it, now everything is working.
    I still don’t know why Solr was giving that error, but my search is now working.

    Thanks for the help and prompt support.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error 405, HTTP method POST is not supported by this URL’ is closed to new replies.