Jump to content

search is not working which is above the header


Recommended Posts

Hi ,

 

 

 I am new bee to this ,I have a problem in my application my seach option is not working ,if i put some key words in the box its not showing any product.

 

 

its showing some message "No result found ......."

Link to comment
Share on other sites

 

 Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205

 
PHP Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205
Link to comment
Share on other sites

 

 

 

 

go to preferences > search tab in your back office and rebuild search index.

 
Yes i tried all these things, I am getting some errors it might be related to this ...............
 
30-May-2014 21:50:06 Asia/Kolkata] PHP Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205
 
[30-May-2014 21:50:06 Asia/Kolkata] PHP Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205
Link to comment
Share on other sites

 

 
Yes i tried all these things, I am getting some errors it might be related to this ...............
 
30-May-2014 21:50:06 Asia/Kolkata] PHP Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205
 
[30-May-2014 21:50:06 Asia/Kolkata] PHP Warning:  preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in C:\xampp\htdocs\say\prestashop\classes\Search.php on line 205

 

Search.php

 

 

 

 

 
class SearchCore
 
{
 
public static function sanitize($string, $id_lang, $indexation = false)
 
{
 
$string = Tools::strtolower(strip_tags($string));
 
$string = html_entity_decode($string, ENT_NOQUOTES, 'utf-8');
 
 
 
                      $string = preg_replace('/(['.PREG_CLASS_NUMBERS.']+)['.PREG_CLASS_PUNCTUATION.']+(?=                                                         ['.PREG_CLASS_NUMBERS.'])/u', '\1', $string);
 
Line 205 ..../////$string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string);
 
 
 
if ($indexation)
 
$string = preg_replace('/[._-]+/', '', $string);
 
else
 
{
 
$string = preg_replace('/[._]+/', '', $string);
 
$string = ltrim(preg_replace('/([^ ])-/', '$1', ' '.$string));
 
$string = preg_replace('/[._]+/', '', $string);
 
$string = preg_replace('/[^\s]-+/', '', $string);
 
}
Link to comment
Share on other sites

×
×
  • Create New...