Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter bruzona

    (@bruzona)

    This broke attempt to rebuild solr index entirely.

    ] PHP Fatal error: Call to a member function getMessage() on a non-object in /var/www/html/wp-content/plugins/wpsolr-search-engine/class-wp-solr.php on line 846, referer: https://intranet.mohavecountylibrary.us/wp-admin/admin.php?page=solr_settings&tab=solr_operations
    [root@localhost httpd]#

    Can you verify the syntax?
    throw new Exception(‘Attachment error on file ‘ . get_the_guid( $post->ID ) . “:
    ” . $e->getMessage());

    Thread Starter bruzona

    (@bruzona)

    1. disabled selinux
    2. relaxed permissions on wordpress directories

    Problem not fixed.
    web server eror logs say error line 153 of php script – “cannot send session cache limiter”

    Thread Starter bruzona

    (@bruzona)

    I will completely disable selinux and see if this is cause.

    Alternative maybe file permissions on the attachments folders under wordpress, but ownership appears to be correct.

    Thread Starter bruzona

    (@bruzona)

    Sorry for the long brick. I can edit it down after you look.

    Thread Starter bruzona

    (@bruzona)

    <response><lst name=”responseHeader”><int name=”status”>0</int><int name=”QTime”>1</int><lst name=”params”><str name=”amp;fq”>type:attachment</str><str name=”q”>*:*</str><str name=”amp;wt”>json</str><str name=”amp;indent”>true</str></lst></lst><result name=”response” numFound=”17″ start=”0″><doc><str name=”id”>1</str><str name=”PID”>1</str><str name=”title”>Hello world!</str><arr name=”spell”><str>Hello world!</str><str>test documenttest document Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</str><str>Uncategorized</str></arr><arr name=”autocomplete”><str>Hello world!</str><str>test documenttest document Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</str><str>Uncategorized</str></arr><str name=”content”>test documenttest document Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>post</str><str name=”displaydate”>2015-01-30 19:02:41</str><str name=”displaymodified”>2015-02-03 23:39:31</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?p=1</str><int name=”numcomments”>0</int><arr name=”categories”><str>Uncategorized</str></arr><long name=”_version_”>1492189512981282816</long></doc><doc><str name=”id”>2</str><str name=”PID”>2</str><str name=”title”>Sample Page</str><arr name=”spell”><str>Sample Page</str><str>This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

    Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)

    …or something like this:

    The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

    As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!</str></arr><arr name=”autocomplete”><str>Sample Page</str><str>This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

    Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)

    …or something like this:

    The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

    As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!</str></arr><str name=”content”>This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

    Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)

    …or something like this:

    The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

    As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>page</str><str name=”displaydate”>2015-01-30 19:02:41</str><str name=”displaymodified”>2015-01-30 19:02:41</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?page_id=2</str><int name=”numcomments”>0</int><long name=”_version_”>1492189512991768576</long></doc><doc><str name=”id”>4</str><str name=”PID”>4</str><str name=”title”>IP Spreadsheet Test</str><arr name=”spell”><str>IP Spreadsheet Test</str><str>5</str></arr><arr name=”autocomplete”><str>IP Spreadsheet Test</str><str>5</str></arr><str name=”content”>5</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>document</str><str name=”displaydate”>2015-02-02 16:06:18</str><str name=”displaymodified”>2015-02-02 17:55:22</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?post_type=document&p=4</str><int name=”numcomments”>0</int><long name=”_version_”>1492189513024274432</long></doc><doc><str name=”id”>5</str><str name=”PID”>5</str><str name=”title”>IP</str><arr name=”spell”><str>IP</str><str/></arr><arr name=”autocomplete”><str>IP</str><str/></arr><str name=”content”/><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>attachment</str><str name=”displaydate”>2015-02-02 16:06:02</str><str name=”displaymodified”>2015-02-02 16:06:02</str><str name=”permalink”/><int name=”numcomments”>0</int><long name=”_version_”>1492189513026371584</long></doc><doc><str name=”id”>10</str><str name=”PID”>10</str><str name=”title”>test search fulltext one</str><arr name=”spell”><str>test search fulltext one</str><str>11</str></arr><arr name=”autocomplete”><str>test search fulltext one</str><str>11</str></arr><str name=”content”>11</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>document</str><str name=”displaydate”>2015-02-02 19:46:11</str><str name=”displaymodified”>2015-02-02 19:46:11</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?post_type=document&p=10</str><int name=”numcomments”>0</int><long name=”_version_”>1492189513040003072</long></doc><doc><str name=”id”>11</str><str name=”PID”>11</str><str name=”title”>test document</str><arr name=”spell”><str>test document</str><str/></arr><arr name=”autocomplete”><str>test document</str><str/></arr><str name=”content”/><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>attachment</str><str name=”displaydate”>2015-02-02 19:45:52</str><str name=”displaymodified”>2015-02-02 19:45:52</str><str name=”permalink”/><int name=”numcomments”>0</int><long name=”_version_”>1492189513042100224</long></doc><doc><str name=”id”>13</str><str name=”PID”>13</str><str name=”title”>test fulltext search attachment</str><arr name=”spell”><str>test fulltext search attachment</str><str>14</str></arr><arr name=”autocomplete”><str>test fulltext search attachment</str><str>14</str></arr><str name=”content”>14</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>document</str><str name=”displaydate”>2015-02-02 21:57:17</str><str name=”displaymodified”>2015-02-02 21:57:17</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?post_type=document&p=13</str><int name=”numcomments”>0</int><long name=”_version_”>1492189513043148800</long></doc><doc><str name=”id”>14</str><str name=”PID”>14</str><str name=”title”>test document</str><arr name=”spell”><str>test document</str><str/></arr><arr name=”autocomplete”><str>test document</str><str/></arr><str name=”content”/><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>attachment</str><str name=”displaydate”>2015-02-02 21:57:09</str><str name=”displaymodified”>2015-02-02 21:57:09</str><str name=”permalink”/><int name=”numcomments”>0</int><long name=”_version_”>1492189513055731712</long></doc><doc><str name=”id”>16</str><str name=”PID”>16</str><str name=”title”>test document</str><arr name=”spell”><str>test document</str><str/></arr><arr name=”autocomplete”><str>test document</str><str/></arr><str name=”content”/><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>attachment</str><str name=”displaydate”>2015-02-02 21:58:54</str><str name=”displaymodified”>2015-02-02 21:58:54</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?attachment_id=16</str><int name=”numcomments”>0</int><long name=”_version_”>1492189513065168896</long></doc><doc><str name=”id”>21</str><str name=”PID”>21</str><str name=”title”>Search Results</str><arr name=”spell”><str>Search Results</str><str>[solr_search_shortcode]</str></arr><arr name=”autocomplete”><str>Search Results</str><str>[solr_search_shortcode]</str></arr><str name=”content”>[solr_search_shortcode]</str><str name=”author”>admin</str><str name=”author_s”>https://intranet.mohavecountylibrary.us/?author=1</str><str name=”type”>page</str><str name=”displaydate”>2015-02-03 16:52:26</str><str name=”displaymodified”>2015-02-03 16:52:26</str><str name=”permalink”>https://intranet.mohavecountylibrary.us/?page_id=21</str><int name=”numcomments”>0</int><long name=”_version_”>1492189513067266048</long></doc></result></response>

    Thread Starter bruzona

    (@bruzona)

    No.

    But cannot find a corresponding error.

    Should the PDF’s actually be uploading into solr /data to be indexed?

    There was a path error in your replacement solrconfig.xml with respect to v.4.3

    <lib dir=”../../../contrib/ . . .

    seems to now only require ../../

    (However, these libraries seem to only matter for clustering environment so does not seem to be the cause of current problem)

    Thread Starter bruzona

    (@bruzona)

    filesize 5.3 megs.

    php.ini currently set to 20M
    wordpress currently seems to have an 8 meg limit for media.

    Thread Starter bruzona

    (@bruzona)

    Yes,
    The index increased by 2, and the check box was marked.

    Indexing PDF (and other formats!) is a capability of solr, so I am hoping that we can get this working.

    Other workarounds (creating custom field medatdata in wordpress and then smashing all of the fulltext into it) are not scalable, and plugins using this technique tend to be rejected by wordpress.

    I can see the post, and click on the attachment. The attachment (PDF) has copy/paste/search within (actual text).

    Offline I could open up the site for you to take a look if necessary.

    Thread Starter bruzona

    (@bruzona)

    Okay – issue is:
    Centos SELINUX security settings blocking curl under user apache. (Oddly, this was not reflected in any of the usual logs.)

    Temporary workaround is to disable SELINUX

    Thread Starter bruzona

    (@bruzona)

    That doesn’t really make sense. I can curl to query the solr just fine. I can access the solr using a browser just fine.

    Why would a blockage only affect curl from within PHP, but not the command line?

    Thread Starter bruzona

    (@bruzona)

    Solr HTTP error: HTTP request failed, Failed to connect to 192.168.203.153: Permission denied (0)

    Solr Protocol http
    Solr Host 192.168.203.153
    Solr Port 8983
    Solr Path /solr/wordpress

    (or /solr/#/wordpress, or mutliple other path variations, trying two cores, either of which can be queried using curl)

    Thank you for creating with WordPress.

    Version 4.1

    Thread Starter bruzona

    (@bruzona)

    Is there a way to add a screen capture to this board?

    Thread Starter bruzona

    (@bruzona)

    [root@localhost ~]# curl “https://192.168.203.153:8983/solr/collection1/admin/ping”

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <response>
    <lst name=”responseHeader”><int name=”status”>0</int><int name=”QTime”>2</int><lst name=”params”><str name=”spellcheck”>off</str><str name=”df”>text</str><str name=”echoParams”>all</str><str name=”rows”>10</str><str name=”echoParams”>all</str><str name=”q”>solrpingquery</str><str name=”distrib”>false</str></lst></lst><str name=”status”>OK</str>
    </response>
    [root@localhost ~]# curl “https://192.168.203.153:8983/solr/wordpress/admin/ping”

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <response>
    <lst name=”responseHeader”><int name=”status”>0</int><int name=”QTime”>1</int><lst name=”params”><str name=”spellcheck”>off</str><str name=”df”>text</str><str name=”echoParams”>all</str><str name=”rows”>10</str><str name=”echoParams”>all</str><str name=”q”>solrpingquery</str><str name=”distrib”>false</str></lst></lst><str name=”status”>OK</str>
    </response>

Viewing 13 replies - 16 through 28 (of 28 total)