Support » Plugin: Highlight Search Terms » Activation failure

  • Resolved margmacd

    (@margmacd)


    Hello

    I am currently using WordPress version 5.9.1. On trying to activate the plugin Highlight Search Terms, I am receiving the following error message:

    “Plugin could not be activated because it triggered a fatal error.

    “Parse error: syntax error, unexpected ‘try’ (T_TRY) in /home/medstats/public_html/wp-content/plugins/highlight-search-terms/hlst.php on line 100”.

    This experience has been repeated after deleting the plugin and reinstalling it.

    I would be grateful for advice on potential ways of addressing this problem in order that I can use the plugin.

    Many thanks in advance!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi, please try the new version 1.8.2 and let me know 🙂

    Thread Starter margmacd

    (@margmacd)

    Hello, Rolf. In reinstalling the plugin, I had already tried this latest version and received the error message reported in my previous message.

    I released version 1.8.2 right after your post specifically to fix the “try” error… Are you seeing the exact same error message now or is it different?

    Thread Starter margmacd

    (@margmacd)

    Thank you, Rolf, for seeking to address the issue. I think that any misunderstanding about versions installed may have arisen from the fact that I have automated updates enabled for the plugin. I have clicked ‘Activate’ again and can confirm that the problem is not recurring, thank you.

    I checked that the plugin was working through using a search for the term ‘variable view’ on my site. As “view” is a very popular term on my site, can you advise, please, on advice I could offer users on ensuring that the term ‘variable view’ is searched for rather than its component terms?

    Excellent news! And thanks for reporting 🙂

    When searching for a phrase rather than separate terms, a user can use quotes. So searching for "variable view" (with the quotation marks) should return only posts with that exact phrase, not all posts where either ‘variable’ or ‘view’ are found.

    Please note: this plugin does not change the search results or behaviour of WordPress internal search mechanism, it only highlights the terms. If you need more advanced search features, there are other plugins available that can do that but those might not be compatible with this highlight plugin…

    Thread Starter margmacd

    (@margmacd)

    Many thanks for the above tip, Rolf. Do you know of any steps that would allow me to place the above tip close to the search box once and for all (so that it is on every page of my site where the search box appears)? Perhaps a widget would work. You may have an alternative or more precise suggestion, however.

    Hi, it depends entirely on your theme… You might be able to disable the integrated search form and replace it with your own search widget? Otherwise yes, adding a widget close to the search field with instructions might be the best approach.

    Thread Starter margmacd

    (@margmacd)

    Many thanks for sharing your expertise, Rolf. I shall try to find some time in due course to focus on designing a widget.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Activation failure’ is closed to new replies.