Jump to content

BlockSearch breaking multiple pages


Recommended Posts


I have been experiencing a problem with the search in 2 shops i run using prestashop.


The search works fine when one word is used... however when 2 words are used the search works for page 1 , but then the pagination shows a page not found.


I have found the problem being that the 2 search terms are getting a + between them where the space should be




if i replace this to 




pagination works fine...


So i was wondering what is removing my space in the search and replacing it with a +

I have found this in searchengine.php line 62


$str = urldecode(str_replace('+', ' ', ltrim(substr(rtrim($array[0], '&'), strlen($varname) + 1), '=')));


i thought this could be it? but it doesnt seem to change anything.


please help



Server information: Windows NT build 7600 (Windows Server 2008 R2 Standard Edition) i586

Server software version: Microsoft-IIS/7.5

PHP version: 5.4.32

Memory limit: 256M

Max execution time: 60

Database information

MySQL version: 5.1.56-community

MySQL engine: InnoDB

Tables prefix: prstshp_

Store information

Prestashop version:

Share this post

Link to post
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More