Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Search not working
Status | Resolved |
Add-on / Version | Publisher 2.4.1 |
Severity | |
EE Version | 3.5.6 |
Jérôme Canon
May 16, 2017Hello,
I try to make my search system working but i have a php error : Undefined index: result_page
Could you help me to make this working please ?
Thanks.
Regards.
Jérôme
BoldMinded (Brian)
Hi Jerome. Can you provide the full stack trace please? Thanks.
Jérôme Canon
Comment has been marked private.
BoldMinded (Brian)
That helps. Can you share your search form tag please.
Jérôme Canon
There you are :
{exp:search:simple_form channel=”products” search_in=”entries” name=”product-search” form_id=”product-search” form_class=”search-form” result_page=”search/native-results” no_result_page=”search/native-noresults” results=”9”} <div class=”input-group”> <input type=”text” name=”keywords” id=”keywords” placeholder=”{phrase:recherche_titre}”><button type=”submit”><i class=”fa fa-search”></i></button> </div> {/exp:search:simple_form}
Thanks
BoldMinded (Brian)
The error does not come from a Publisher file. Was this search form working before Publisher was installed? Have you tried disabling Publisher from its setting page, then testing the form on the front-end?
Jérôme Canon
Hi,
before i install publisher the search worked.
J.
Jérôme Canon
Hello,
I disabled Publisher in the settings et now the search working. Si i think it’s seems to be related to publisher install.
Regards.
J.
BoldMinded (Brian)
I modified your template code just enough so it works on my demo site and it searches fine. http://demo.boldminded.com/en/search (second search form). You can login and check it out, or edit it to see if you can get it to break.
What other add-ons do you have installed?
Jérôme Canon
Hi,
I tried again to make my search system work but it’s not working. When i disabled Publisher it’s work fine.
Here the list of other add-ons installed :
Thanks for your help.
Regards.
BoldMinded (Brian)
Do you have Publisher 2.5?
BoldMinded (Brian)
It looks like your site does not have a search form on it at the moment. Could you cause the error and copy/paste the full error message and stack trace into the ticket? Thanks.
BoldMinded (Brian)
Is this happening for every search result? Have you tried a search term that you have not used before?
Jérôme Canon
Comment has been marked private.
BoldMinded (Brian)
Can you do me a favor and on line 75 of that file add
then perform another search to cause the error, then paste the output of that var dump into the ticket.
https://www.dropbox.com/s/h9mxhd1aw5wyx9d/Screenshot 2017-06-07 08.00.13.png?dl=0
Jérôme Canon
i get an error 😊
Parse error: syntax error, unexpected ‘$this’ (T_VARIABLE) in D:\Websites\PROD-Cineshop\system\ee\EllisLab\Addons\search\mod.search.php on line 77
J.
Jérôme Canon
oops my mistake i forgot “;”
here the error message now :
array(1) { [“where”]=> string(3) “all” } Notice
Undefined index: result_page
D:/Websites/PROD-Cineshop/system/ee/EllisLab/Addons/search/mod.search.php, line 77 show details
Severity: E_NOTICE The following errors were encountered
The search path contains an error. Please contact the system administrator. Return to Previous Page
BoldMinded (Brian)
Make sure you put a ; at the end of that line.
BoldMinded (Brian)
I’m still unable to replicate this locally. Since this is the case, I’ll have to ask you to use a development server and either un-install all your other add-ons one by one and leave only Publisher installed, or create a brand new clean EE install with only Publisher installed and just enough content and templates to recreate the issue. We need to be sure that another add-on is not causing a conflict here. Its very very strange that the var_dump contained only “where” => “all”. It should look more like this (which is what I see locally)
<pre><code>array(10) { ‘status’ => string(0) “” ‘channel’ => string(5) “cards” ‘category’ => string(0) “” ‘search_in’ => string(0) “” ‘where’ => string(3) “all” ‘show_expired’ => string(0) “” ‘show_future_entries’ => bool(false) ‘result_page’ => string(14) “search/results” ‘no_results_page’ => string(17) “search/no-results” ‘site_ids’ => array(1) { [0] => int(1) } }]/code]
Jérôme Canon
Hi,
I found the add-on who create the issue : Low Seg2Cat 😊
When i uninstall this plugin the search working ! Unfortunately i need the plugin Low Seg2Cat. Do you think we could find a solution ?
Thanks for the great support.
J.
BoldMinded (Brian)
The easiest thing I can suggest is to try my URL Helper add-on and uninstall Low Seg2Cat. https://github.com/litzinger/url-helper
URL Helper has most of the same functionality as Seg2Cat, plus it works better with Publisher.
Jérôme Canon
Hi,
I installed Url Helper but it’s not working, i have the same error 😊
BoldMinded (Brian)
I just tried it with URL Helper installed locally and did not experience an error. Have you un-installed other add-ons to see if the conflict is elsewhere?
Jérôme Canon
Hi,
I uninstalled all the add-ons and i still have the issue. But i think i found where is the problem. When i disabled de url prefix et url prefix on homepage in publisher options, the search works ! Maybe is that the problem no ?
Thanks.
J.
BoldMinded (Brian)
I’m still unable to replicate. This is what my settings are set to:
https://www.dropbox.com/s/qxafqo3j7r9zy1v/Screenshot 2017-06-09 08.04.17.png?dl=0
Have you logged into the demo.boldminded.com site and tried to replicate it there? Feel free to adjust any settings you need to to re-create the issue. It already has a simple search form: http://demo.boldminded.com/en/search
Jérôme Canon
Hi,
This is my settings:
https://www.dropbox.com/s/nye6duzzs6yyhwe/Capture d’écran 2017-06-09 à 15.33.41.png?dl=0
And i have un error when i test your search form :
https://www.dropbox.com/s/uhywd7zwsgcehm2/Capture d’écran 2017-06-09 à 15.33.52.png?dl=0
Thanks.
J.
BoldMinded (Brian)
Ok, you’re not seeing the full error message but I am. It seems the “Add URL Prefix” setting is what is causing the problem. Now I have something to go off of to fix the issue. Thanks for helping me narrow it down. I’ll try to have a fix sometime next week.
BoldMinded (Brian)
This seems to be an issue created sometime between version 3.5.4 and 3.5.7 of EE. I can’t replicate the issue in 3.5.4, which is what I was running locally.
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Make sure you have the $config[‘session_crypt_key’] set in your config.php file.