Parisian Posted December 26, 2012 Share Posted December 26, 2012 I have PrestaShop™ 1.4.7.3 in my website www.technicapc.com for more than 6 months and working fine so far, except within last few days, suddenly the product search function at the top of the Front Office Homepage not working. Any word product typing in the search box will not show any product result. While the search function in the Back Office is still working fine. Any Senior Presta addict can help me pleaseee? Thank you. Link to comment Share on other sites More sharing options...
mohsart Posted December 26, 2012 Share Posted December 26, 2012 Try rebuilding the search index /Mats Link to comment Share on other sites More sharing options...
Parisian Posted December 27, 2012 Author Share Posted December 27, 2012 I have tried rebuilding the index but still not working. Back Office-Preferences-Search-Re-build entire index Can anyone else help me pleaseee? Link to comment Share on other sites More sharing options...
mohsart Posted December 27, 2012 Share Posted December 27, 2012 Try reseting the search module. Are you sure you didn't change anything? Perhaps a conflicting module? And just to verify, nothing strange in the search page in BO? /Mats Link to comment Share on other sites More sharing options...
Parisian Posted December 27, 2012 Author Share Posted December 27, 2012 Nothing changed. Just upload new products in the product tab section. Nothing else was changed, no modules added or changed. Search function in the BO is working normally. It's really strange. Link to comment Share on other sites More sharing options...
Parisian Posted December 29, 2012 Author Share Posted December 29, 2012 Still waiting..... Anyone Presta Expert please help me.... Link to comment Share on other sites More sharing options...
Popular Post NemoPS Posted December 29, 2012 Popular Post Share Posted December 29, 2012 (edited) Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps Edited December 29, 2012 by Nemo1 (see edit history) 24 Link to comment Share on other sites More sharing options...
Parisian Posted December 29, 2012 Author Share Posted December 29, 2012 @Nemo1 : Yes you are correct. Finally I found someone that understand my case. Within this month, I did nothing except adding new products to the catalog and then suddenly the search function in the Front Office doesn't work. Your solutions seems complicated but I will try to do as your instruction step by step. I will update again if everything's solved. Link to comment Share on other sites More sharing options...
Parisian Posted December 29, 2012 Author Share Posted December 29, 2012 @Nemo1 : Thank you so much, it works. Apparently it is as simple as your tutorial. SOLVED. 1 Link to comment Share on other sites More sharing options...
anves Posted January 7, 2013 Share Posted January 7, 2013 I am having the same problem - in version 1.52 I can not locate x{d800} in the search.php file, it does not exist What might be the fix Vinnie Link to comment Share on other sites More sharing options...
x3n0m0rph Posted January 20, 2013 Share Posted January 20, 2013 Nemo1 solution worked for me! Thx man! Link to comment Share on other sites More sharing options...
CSEpe Posted January 28, 2013 Share Posted January 28, 2013 Good work Nemo!! Thanks Link to comment Share on other sites More sharing options...
medred Posted February 14, 2013 Share Posted February 14, 2013 NEMO1 kudos to you Link to comment Share on other sites More sharing options...
Tomin Posted February 24, 2013 Share Posted February 24, 2013 Ha haaa, same happened to me on 1.4.7. Everything worked fine and then nothing.. may be because of PHP upgrade to 5.4, but solution offered by Nemo1 get job done. Thank you a lot! Link to comment Share on other sites More sharing options...
murcon Posted March 19, 2013 Share Posted March 19, 2013 Thank you Nemo1! Link to comment Share on other sites More sharing options...
Arkadia Posted March 21, 2013 Share Posted March 21, 2013 Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps Hi Nemo1! Thank you sssssooooo much for your fix! Works like a charm! Link to comment Share on other sites More sharing options...
Shop66 Posted March 22, 2013 Share Posted March 22, 2013 I am having the same problem - in version 1.52 I can not locate x{d800} in the search.php file, it does not exist What might be the fix Vinnie Anche io ho lo stesso problema, hai risolto? Link to comment Share on other sites More sharing options...
ninos Posted March 25, 2013 Share Posted March 25, 2013 Nemo1 - you are the best... Greetings from Germany Link to comment Share on other sites More sharing options...
July2010 Posted March 31, 2013 Share Posted March 31, 2013 (edited) Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps it didn't work for me on prestashop 1.4.4.0 search doesn't work what else must i do? I did rebuild index after changing search.php but search doesn't work any way problem already solved Edited March 31, 2013 by July2010 (see edit history) Link to comment Share on other sites More sharing options...
saag1 Posted June 4, 2013 Share Posted June 4, 2013 Worked perfect in 1.4.8.2!! Even not necessary in my case regenerate my index. Just made change in line 56 and voila!!! Thanks Nemo Link to comment Share on other sites More sharing options...
kitune Posted June 23, 2013 Share Posted June 23, 2013 Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps You save my day! Link to comment Share on other sites More sharing options...
Generaal Posted June 24, 2013 Share Posted June 24, 2013 Hello, I run v1.5.4.1, I have installed 1 language, Duch. I think, when I install an another language, I have also to make this on, on every product. When I go to Products, click on the flag, then the product come up by searching, but I can't do that for the whole products! My search.php, have another structure and have no code as above discribled. How can I fix this? Best Regards, Generaal Link to comment Share on other sites More sharing options...
YanK1973 Posted June 28, 2013 Share Posted June 28, 2013 (edited) 1.5.4.1 too.. Search not working, used too but not anymore. I read the solution from Nemo1 but 1) my search_index is not empty and 2)the value on search.php is already x{e000. Edited June 28, 2013 by yanc (see edit history) Link to comment Share on other sites More sharing options...
nrhack Posted July 29, 2013 Share Posted July 29, 2013 Hello i have the same problem =( search suddenly stoped working in front end . I have prestaShop 1.4.8.2 I have tried rebuilding the index but still not working. Back Office-Preferences-Search-Re-build entire index i didnt changed anything in setings......... i have tried reseting the search module. search works correctly in BO i wanted to follow the steps to fix this using help tutorial from NEMO1 anyhow thanx to helping us,,, but i am not sure how to do it only one search.php i found in root where also index.php is located but in this search.php file i dont have line 56 only till line 29 line 28............require(dirname(__FILE__).'/config/config.inc.php'); line.29 .............ControllerFactory::getController('SearchController')->run(); dont know what to do.Please help me someone Thank you Greetings from Maria Link to comment Share on other sites More sharing options...
saag1 Posted August 24, 2013 Share Posted August 24, 2013 Hello i have the same problem =( search suddenly stoped working in front end . I have prestaShop 1.4.8.2 I have tried rebuilding the index but still not working. Back Office-Preferences-Search-Re-build entire index i didnt changed anything in setings......... i have tried reseting the search module. search works correctly in BO i wanted to follow the steps to fix this using help tutorial from NEMO1 anyhow thanx to helping us,,, but i am not sure how to do it only one search.php i found in root where also index.php is located but in this search.php file i dont have line 56 only till line 29 line 28............require(dirname(__FILE__).'/config/config.inc.php'); line.29 .............ControllerFactory::getController('SearchController')->run(); dont know what to do.Please help me someone Thank you Greetings from Maria The search.php you need to change is in Classes folder, not in root. Cheers. 1 Link to comment Share on other sites More sharing options...
Crezco Posted November 4, 2013 Share Posted November 4, 2013 Thanks Nemo1, I didn't know to have the search prblem in www.nauticadecor.com since I read your post. Great!! Link to comment Share on other sites More sharing options...
mtm Posted December 2, 2013 Share Posted December 2, 2013 Many thanks for the solution, Nemo1! Link to comment Share on other sites More sharing options...
taoufiqaitali Posted January 8, 2014 Share Posted January 8, 2014 Good job worked perfect for me in prestashop 1.4.7 please make this post as Solved, because it will help more developers Regards, Taoufiq Link to comment Share on other sites More sharing options...
mandrin Posted January 11, 2014 Share Posted January 11, 2014 Yup worked for me. Great fix thanks. Edited storeroot/classes/search.php Running PS 1.2.5 Link to comment Share on other sites More sharing options...
Testing.testuser Posted May 7, 2014 Share Posted May 7, 2014 @Nemo , working perfectly.Thank you very much Link to comment Share on other sites More sharing options...
HETPE3B Posted July 27, 2014 Share Posted July 27, 2014 Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps That worked for me too, however I do not remember that I was adding anything to the catalog recently. 1 Link to comment Share on other sites More sharing options...
David Eschmeyer Posted August 26, 2014 Share Posted August 26, 2014 Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps excellent!! fixed! Link to comment Share on other sites More sharing options...
markthedoc Posted September 9, 2014 Share Posted September 9, 2014 Hi, This happened with the very same version of prestashop to a customer of mine. I bet you added new products to the catalog, correct? If so, it might be the same thing. Login to your phpMyadmin and look for the *prefix_*search_index table. If it's empty, the search class might be crashing on index rebuild. This is due to a wrong character encoding. Verify these things. If all of the above assumptions are corerct, you have to edit the search.php class file. This happens because Prestashop uses an exact copy of Drupal's search module to manage allowed characters. At about line 56 of that file, locate "x{d800}", and replace it with "x{e000}". Now, rebuild the index, it *should* work. Hope this helps Thanks for your help.... fixed! Link to comment Share on other sites More sharing options...
B@ndit Posted September 16, 2014 Share Posted September 16, 2014 WOW, the exact same problem Ive been having since migrating my site from an old server and an old version of PHP to a new server with 3 different PHP options available to choose from... Ive tried everything suggested here, even switched between different php versions 5.3.28, 5.4.30 and 5.5.14 to no avail... would amybody know if the settings below might have any affect on the search? When I enter a search item on front end and press search it just goes to a blank page. PHP implementation Shared hosting PHP (5.3.28) CGI support On SSI support On Error Documents On Webalizer Web Statistics On WAP support On Consolidated HTTP/HTTPS Folder Off thanks in advance Steven Link to comment Share on other sites More sharing options...
David Eschmeyer Posted September 17, 2014 Share Posted September 17, 2014 WOW, the exact same problem Ive been having since migrating my site from an old server and an old version of PHP to a new server with 3 different PHP options available to choose from... Ive tried everything suggested here, even switched between different php versions 5.3.28, 5.4.30 and 5.5.14 to no avail... would amybody know if the settings below might have any affect on the search? When I enter a search item on front end and press search it just goes to a blank page. PHP implementation Shared hosting PHP (5.3.28) CGI support On SSI support On Error Documents On Webalizer Web Statistics On WAP support On Consolidated HTTP/HTTPS Folder Off thanks in advance Steven turn on debugging then try a search. to turn on debugging: edit config/defines.inc.php find this line: define('_PS_MODE_DEV_', false); change it to define('_PS_MODE_DEV_', true); save and try the search. Then it will give you the error. Link to comment Share on other sites More sharing options...
B@ndit Posted September 25, 2014 Share Posted September 25, 2014 turn on debugging then try a search. to turn on debugging: edit config/defines.inc.php find this line: define('_PS_MODE_DEV_', false); change it to define('_PS_MODE_DEV_', true); save and try the search. Then it will give you the error. I did this as requested however when I tried it and entered something to search and hit enter I just got a blank page... as I was already getting... this really has me baffled, do you think if I did the upgrade to 1.4.11 it might help? Link to comment Share on other sites More sharing options...
Ra Ra Posted September 26, 2014 Share Posted September 26, 2014 (edited) Thanks Nemo1, you are great! It work for me prestashop 1.4.8.2 Thank you! Edited September 26, 2014 by Ra Ra (see edit history) Link to comment Share on other sites More sharing options...
B@ndit Posted October 8, 2014 Share Posted October 8, 2014 Lads, Im a step closer, I have updated PS to ver 1.4.11 changed line 56 as described in previous posts from d800 to e000 rebuilt index cleared cache now when I type in search box I am getting some options (looking good) but when I click a product all im getting is a page with my header etc but no products shown... even if I manually go to a product and click on it to view details all Im getting is the header of the site but nothing else any thoughts? Please, im desperate and the boss is not impressed Steven Link to comment Share on other sites More sharing options...
Sadegh940 Posted October 25, 2014 Share Posted October 25, 2014 Thanks Nemo! your solution worked form Link to comment Share on other sites More sharing options...
agentu007 Posted October 29, 2014 Share Posted October 29, 2014 thanks Nemo , worked! Link to comment Share on other sites More sharing options...
yuyu Posted November 7, 2014 Share Posted November 7, 2014 Thanks A lot Nemo for Your solution, Really help Link to comment Share on other sites More sharing options...
hurray Posted December 1, 2014 Share Posted December 1, 2014 Thanks Nemo, it worked for me as well. In version 1.3.1.1 the code is in line 43. Link to comment Share on other sites More sharing options...
christillis Posted January 9, 2015 Share Posted January 9, 2015 (edited) Nemo1 - You are an excellent human being and a Prestashop [spam-filter]. Thank you so much for finding and publishing this resolution. My hosting company moved servers recently and I think this search issue was the result. Thanks again and have a beer...or coffee, whatever you prefer Edited January 9, 2015 by christillis (see edit history) Link to comment Share on other sites More sharing options...
fabian.idrobo Posted January 20, 2015 Share Posted January 20, 2015 Nemo 1, you are the man, Greetings from Chile! Link to comment Share on other sites More sharing options...
Devendra Posted April 7, 2015 Share Posted April 7, 2015 @Nemo1 :- Thank u very much..... Great Help. Link to comment Share on other sites More sharing options...
sondiva Posted November 21, 2015 Share Posted November 21, 2015 This doesn't work in PS 1.6.0.13, any solution for it nemo??? Link to comment Share on other sites More sharing options...
zenmusic Posted November 24, 2015 Share Posted November 24, 2015 hello, i have the same problem with 1.6.1.2 proposals? thank you Greetings Link to comment Share on other sites More sharing options...
webtintin Posted December 18, 2015 Share Posted December 18, 2015 Hi Nemo1,fantastic, I found the solution thanks to you!! Link to comment Share on other sites More sharing options...
sondiva Posted December 19, 2015 Share Posted December 19, 2015 Hi Nemo1, fantastic, I found the solution thanks to you!! Hi can you share the solution Link to comment Share on other sites More sharing options...
razvy Posted February 15, 2016 Share Posted February 15, 2016 Hi, Did anyone solve it in 1.6.1.1? I have indeed been adding a lot of products in the shop lately. The search was running very well a few day ago The product search is not working well neither in the back-office. I have re-build the index. I have searched in the search.php class file, there is no X800 string. I have searched into the php tables, there is no *prefix*_search_index table. In fact there is no *search* table. Please help! Thanks. Link to comment Share on other sites More sharing options...
Fernandoidim Posted March 6, 2016 Share Posted March 6, 2016 Worked perfect in 1.4.8.2!! Even not necessary in my case regenerate my index. Just made change in line 56 and voila!!! Thanks Nemo from Brasil!! Você é o cara! Link to comment Share on other sites More sharing options...
AndenAnd79 Posted April 13, 2016 Share Posted April 13, 2016 Hi - did any of you who have problems in 1.6 fix it? If yes, can you help with the solution? Link to comment Share on other sites More sharing options...
AndenAnd79 Posted April 13, 2016 Share Posted April 13, 2016 For 1.6 I found this solution which works for me: (replace search-file as mentioned also here - just in another tree) https://www.prestashop.com/forums/topic/509403-problem-in-indexing-rebuilding-search/?p=2269424 Link to comment Share on other sites More sharing options...
steven_ho Posted April 18, 2016 Share Posted April 18, 2016 Where to find this 'search.php'? Link to comment Share on other sites More sharing options...
heyho Posted November 7, 2016 Share Posted November 7, 2016 In PS 1.6.1.1 a PHP Downgrade to 5.3 solved my problem. Link to comment Share on other sites More sharing options...
poukamisas Posted April 7, 2017 Share Posted April 7, 2017 Hello, I have the same problem, I have presta 1.5.6.1 the "search_index table" isn't empty, and the file "search.php" in folder public_html/classes has the "x{e000}" at line 55, in preferences->search (menu) I saw that have Indexed 2611 / 2611 products and I have make reindex, with no results, what can I do? Link to comment Share on other sites More sharing options...
etelefonro Posted April 20, 2017 Share Posted April 20, 2017 Hello, I have the same problem, I have presta 1.5.6.1 the "search_index table" isn't empty, and the file "search.php" in folder public_html/classes has the "x{e000}" at line 55, in preferences->search (menu) I saw that have Indexed 2611 / 2611 products and I have make reindex, with no results, what can I do? Same like him , anyone for a solution ? Link to comment Share on other sites More sharing options...
poukamisas Posted April 21, 2017 Share Posted April 21, 2017 I have bought this module https://codecanyon.net/item/prestashop-search-module-instant-search-with-ajax-search/11783353?_ga=1.146151924.1332158038.1481282570 and I have a moderate solve, they have very good support, if you want you can take a look at my site "https://www.loly.gr/" and if you like the search, you can buy the same module. I have search a lot for a differed solve but nothing. Link to comment Share on other sites More sharing options...
Recommended Posts