patukos Posted September 3, 2014 Share Posted September 3, 2014 (edited) Hi all, Nice to meet you. I've just released patukos.net 2 days ago. I don't know why but for any reason today the search box is not working. If you write something in the search box and don't click the lens button, in a second or two you can see your search. But if you click on the button or press enter the result says: "Please write some key to search" in spanish. You can make a prove with "camisa" word for example.. Please, I need help!! Thanks in advance... Update 1: I found the issue, but I don't know how can I fix it: I am not able to create well a rewrite rule for my prestashop website. It is a url to search products with the search box: This is the URL with friendy URL: http://example.com/search?orderby=position&orderway=desc&search_query=whatever And this one is where I need to rewrite: http://example.com/index.php?controller=search&orderby=position&orderway=desc&search_query=whatever I appreciate in advance any help, thanks UPDATE 2: Fixed with this: url.rewrite-if-not-file = ( "^/api/?(.*)$" => "/webservice/dispatcher.php?url=$1", "^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/p/$1-$2$3.jpg", "^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2.jpg", "^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$1$2.jpg", "^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$1$2$3.jpg", "^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$1$2$3$4.jpg", "^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg", "^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$" => "/img/c/$1$2.jpg", "^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/c/$1$2.jpg", "^/(.*)$" => "/index.php/$1") Edited September 4, 2014 by patukos (see edit history) Link to comment Share on other sites More sharing options...
patukos Posted September 3, 2014 Author Share Posted September 3, 2014 Hello AgainIt is the same problem as ajensen27 in http://www.prestasho...ch-not-working/My search box doesn't work when I have the friendly url enabled. When I write something on the box and I don't do anything else, it works, but when I write something on the box and I press enter or click the button, it seems like there is anything on the shop. And the ajax function doesn't work either.My server has lighttpd instead apache.This is my rewrite rules:url.rewrite-once = ("^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2$3.jpg","^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/c/$1$2.jpg","^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2.jpg","^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$1$2.jpg","^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$1$2$3.jpg","^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$1$2$3$4.jpg","^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg","^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg","^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg","^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg","^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg")My Store is www.patukos.net.I will be very grateful with you if anyone can help me, please!!This is a very very important for me and my family. Link to comment Share on other sites More sharing options...
nutxlago Posted September 3, 2014 Share Posted September 3, 2014 (edited) I have the same issue with PS 1.6.0.9 version. Ajax search box on top is not working. I have made the changes someone proposed on other thread for a previous 1.5.5 version: enabling/disabling search in top menu, activating/deactivating ajax search block. But nothing changes. Result is always the same: 0 records found. Could anyone help with this issue or provide a link on this forum to a solution? Edited September 3, 2014 by nutxlago (see edit history) Link to comment Share on other sites More sharing options...
patukos Posted September 4, 2014 Author Share Posted September 4, 2014 My error is for a rewrite rule in lighttpd that I don't know how to make it. If anyone knows, please I need his or her help!! This is the URL with friendy URL: http://example.com/search?orderby=position&orderway=desc&search_query=whatever And this one is where I need to rewrite: http://example.com/index.php?controller=search&orderby=position&orderway=desc&search_query=whatever I appreciate in advance any help, thanks. Link to comment Share on other sites More sharing options...
patukos Posted September 4, 2014 Author Share Posted September 4, 2014 I've fix the problem with this rewrite rules: url.rewrite-if-not-file = ( "^/api/?(.*)$" => "/webservice/dispatcher.php?url=$1", "^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/p/$1-$2$3.jpg", "^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2.jpg", "^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$1$2.jpg", "^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$1$2$3.jpg", "^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$1$2$3$4.jpg", "^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg", "^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$" => "/img/c/$1$2.jpg", "^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/c/$1$2.jpg", "^/(.*)$" => "/index.php/$1") Link to comment Share on other sites More sharing options...
pahnas Posted September 8, 2014 Share Posted September 8, 2014 Hi patukos, please let us know how to solve this issue step by step please Link to comment Share on other sites More sharing options...
nutxlago Posted September 8, 2014 Share Posted September 8, 2014 (edited) I have the same issue with PS 1.6.0.9 version. Ajax search box on top is not working. I have made the changes someone proposed on other thread for a previous 1.5.5 version: enabling/disabling search in top menu, activating/deactivating ajax search block. But nothing changes. Result is always the same: 0 records found. Could anyone help with this issue or provide a link on this forum to a solution? Just for the records, I have resolved my ajax search problem in B.O. regenerating the indexes. If any of you is using the CVS Import to populate the catalog, you must regenerate the indexes in B-O- >Preferences> Search below "Indexing" select "Rebuild the entire index". There you can set automatic indexing everytime a new product is saved. Hope this helps. Edited September 8, 2014 by nutxlago (see edit history) Link to comment Share on other sites More sharing options...
patukos Posted September 9, 2014 Author Share Posted September 9, 2014 Hi patukos, please let us know how to solve this issue step by step please I only added this to my lighttpd.conf file: url.rewrite-if-not-file = ( "^/api/?(.*)$" => "/webservice/dispatcher.php?url=$1", "^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/p/$1-$2$3.jpg", "^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2.jpg", "^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$1$2.jpg", "^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$1$2$3.jpg", "^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$1$2$3$4.jpg", "^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" =>"/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" =>"/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg", "^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$" => "/img/c/$1$2.jpg", "^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/c/$1$2.jpg", "^/(.*)$" => "/index.php/$1" ) Link to comment Share on other sites More sharing options...
JoelWebsites Posted September 10, 2014 Share Posted September 10, 2014 I am unable to find the lighttpd.conf file? Link to comment Share on other sites More sharing options...
pahnas Posted September 10, 2014 Share Posted September 10, 2014 Could you please let us know the full path of the file? Link to comment Share on other sites More sharing options...
patukos Posted September 12, 2014 Author Share Posted September 12, 2014 Hi, The full path, normally, is /etc/lighttpd/lighttpd.conf. But this is only for Lighttpd server users. This is not valid for Apache users. Lightttpd is a php server alternative for Apache. It is faster than Apache, but it has more difficult to configure it and it has less users and support. Link to comment Share on other sites More sharing options...
nutxlago Posted September 12, 2014 Share Posted September 12, 2014 Version 1.6.0.8 How to set automatic indexing for all stores in MultiStore.As always stores complaint about product not searched on there website. Also if some one can help if we can have everything updated automatically.As lot of time changes are seen after 2 or 3 days Can we keep cashe off in multi store to resolve the problem Check if B.O. Preferences > Search > "Indexing" section > Indexing is set to automatic. There is a hint to set search indexing as a cronjob there, too. If any of the stores is adding products using the CVS Importer then the cronjob is a must. Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts