• Resolved aarseth

    (@aarseth)


    Hi, I’m getting “Plugin could not be activated because it triggered a fatal error.”:

    Parse error: syntax error, unexpected T_STRING in /home/vitakemc/public_html/wp-content/plugins/wpsolr-search-engine/ajax_solr_services.php on line 254

    I am running WP version 4.1.1, version 2.5 of the plugin, and PHP version 5.2.17.

    Thank you for your help!

    https://www.ads-software.com/plugins/wpsolr-search-engine/

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

    (@wpsolr)

    Hi,

    WPSOLR uses a Solr client library, Solarium, which requires namespaces.

    Namespaces are supported by PHP >= 5.3.0

    Thread Starter aarseth

    (@aarseth)

    Thank you for the very fast response! I will investigate about upgrading the PHP.

    Since I have you “on the line”, maybe you can even tell me if this plugin can handle the implementation I am hoping for.

    I’m hoping first that it can deliver suggestions exclusively for Category Type = Products, and second that I can use it as part of a custom form (for the field “What products are you interested in?”) rather than as a site search.

    Is this even possible?

    Thanks again.

    Plugin Author WPSolr free

    (@wpsolr)

    For the suggestions, it’s controlled by the schema.xml.

    Comment out the fields you don’t need in autocomplete:

    <copyField source="title" dest="autocomplete"/>
         <copyField source="tags" dest="autocomplete"/>
         <copyField source="categories" dest="autocomplete"/>
         <copyField source="content" dest="autocomplete"/>

    For your custom form, you can look at wpsolr_search_engine.php how the filter ‘get_search_form’ is used to override WP standard form with wpsolr search form.

    Thread Starter aarseth

    (@aarseth)

    Okay, I’ve finally got the site running on the updated version of PHP.

    I installed the plugin and was greeted by the error: “The plugin generated 793 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    I don’t think it is causing any problems so far, but I am writing mainly to ask: Where is the file schema.xml located?

    Also, are you able to provide more details about what to do with the wpsolr_search_engine.php and how to add autocomplete functionality to a non-search form field? There is no search being used anywhere else in the site, so I can label the field as a search field, if that will help.

    Thanks for your help.

    Thread Starter aarseth

    (@aarseth)

    Hi Author,

    Any guidance you can provide will be very helpful. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error when trying to activate’ is closed to new replies.