• Resolved Simon Blacksmith

    (@simonvinicius)


    Hello there,

    Based on the video you made, your plugin seems to be interesting and perfect for my projetc. So I decided to install it on my blog. The problem is, when I tried to activate it, I could not because of the following error:

    Fatal error:

    Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable (T_VARIABLE) in /home/torre/public_html/wp-content/plugins/search-inside/lib/vendor/eliasis-framework/eliasis/src/App/App.php on line 323

    Could you please check this and help me please? I would be immensely grateful!

    Best,
    Simon Ferreira

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Josantonius

    (@josantonius)

    Hi Simon,

    I suppose you are using a PHP version 5.5 or earlier, this plugin requires version 5.6 or higher. I just added it to the documentation, excuse me.

    I’m enclosing a version with that bug fixed, I don’t know if others will appear… Ideally, for security, you should upgrade PHP to version 5.6 or higher. Preferably to the latest version.

    I look forward to hearing your comments.

    Regards!
    Jose

    Thread Starter Simon Blacksmith

    (@simonvinicius)

    Hello Jose,

    Our PHP version is 5.6.29.
    Anyway, I’ll test the version you shared with me and share the result wit you.

    Tks in advance!

    Plugin Author Josantonius

    (@josantonius)

    It’s strange, that error should only appear in 5.5 or earlier, not in higher versions :/

    Thread Starter Simon Blacksmith

    (@simonvinicius)

    Hello Jose,

    The problem was solved after upgrading the php version to 7.0. The previous version actually was 5.5. The technician at my hosting provider made a mistake about that. Really sorry for the misunderstanding.

    Could you please give me a little help please? I just did not understand what I should do to make the search bar appear on page. It’s a pizzeria website, and I need the search bar working on the menu’s page. I noticed that there is this option in the plugin options page: “HTML ID WHERE TO SEARCH”. I already tried to use “main”, also tried to change to the page ID where I wanted the search field to appear, but does not work. I know that this is a stupid question, but could you please help explaining how do I make the plugin work on this page?

    Really appreciate your support!

    Plugin Author Josantonius

    (@josantonius)

    Hello Simon,

    Great that you solved the problems with the PHP version ??

    If you want to place it on a specific page, you should use shortcode and add the shortcode provided in the options.

    If you still can’t get it, send me by mail the link to the website indicating the page where you want to put it and I’ll detail you the steps to follow: [email protected]

    Greetings!

    Thread Starter Simon Blacksmith

    (@simonvinicius)

    Hello Jose,

    I already placed the shortcode on the page. I think the problem is that your plugin is not compatible with my template. I tried to place using the Twenty Seventeen and it worked. However, I use a template named BeTheme that I bought on ThemeForest that works with a lot of scripts. I had a similar problem with other plugin on this same template, but this plugin has an option to place the script on footer, and after change this, the plugin worked. Unfortunately your plugin don’t have this option. Anyway, if you want to check, the page where the plugin is installed is: https://torrepizza.com.br/cardapio/. The plugin is located on the right side of the sentence: “Se preferir, busque por sabor, ingrediente ou por qualquer outra palavra:”

    ??

    Plugin Author Josantonius

    (@josantonius)

    Hi Simon,

    The problem comes from the ID where to search.

    The ‘search’ ID is duplicated, since it is used by the search engine you have hidden:

    <input type="text" id="search" style="float: left; margin-bottom: 0;"><input type="button" id="submit_form" onclick="checkInput()" value="Buscar">

    And also in the ‘pizzas’ section, although it will ignore it, as there can only be one unique ID per label:

    <div class="section mcb-section" id="pizzas search">

    Remove the ‘search’ ID from the previous tag, and leave only ‘pizzas’ ID, then, add the ‘pizzas’ ID instead of ‘search’ in the plugin configuration:

    <div class="section mcb-section" id="pizzas">

    This should work, but it won’t do it at all well, since the plugin for now only supports searches in English and Spanish, it would have to be adapted to make them also in Portuguese. Something I’m not planning to do at the moment, unless it’s on demand.

    If you leave me your mail, I can let you know if I decide to do so in the future.

    Thread Starter Simon Blacksmith

    (@simonvinicius)

    Hello Jose,

    I did what you said, and works like a charm!
    And about the language, the plugin also find some words in portuguese. The users just don’t need to use accents like “á”, “é”, “í”, “ó”, and “ú” in the words, they just need to enter the word without accents, and even those words who has accent, will be found. In my tests, others accents like cedilla and circumflex accent works too. Anyway, I will ask the users to don’t use accents on they searchs.

    On the other hand, I sugest you to add this compatibility to the plugin, considering that Portuguese is not the only language that uses these accents, they are also present in the French language.

    Your plugin is amazing! Thank you for your support and patience.
    God bless you!

    Kind Regards,

    Simon

    Plugin Author Josantonius

    (@josantonius)

    I’m very grateful for your comments.

    I didn’t think it was acceptable to ask users to misspell, therefore, II’ve been working on it and since the 1.1.9 version the plugin will supports multilingual searches ??

    Hope you enjoy!

    Regards,

    Jose

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Is not possible to activate the plugin’ is closed to new replies.