Jump to content

Recommended Posts

Hello

 

My search fuction dont work.

I try reindexing - i have 67/67 but in my database i have empty ps_search_word, ps_search_index

 

In backoffice it is ok but in front still : "No results found for your search"

 

Edit:

now i set ‘display_errors’ to ‘on’ in /config/config.inc.php

 

ini_set(‘display_errors’, ‘on’);

 

When i try reindex i have many times this :

Warning: preg_replace() [function.preg-replace]: Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in /home/html/nanakupe.sk/public_html/classes/Search.php on line 103

 

this is on the end:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/html/nanakupe.sk/public_html/classes/Search.php:103) in /home/html/nanakupe.sk/public_html/classes/Tools.php on line 107

 

 

EDIT 2

 

Today i try move it to localhost (same error on localhost), then i update from 1.4.6.2. to 1.4.7. now on localhost everything is OK. But when i upload it to server it is same ... if i try reindex i only empty tables in database: ps_search_word, ps_search_index

 

 

 

Please somebody any ideas? Anybody :(

Edited by qwerty232 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Predpokladam že problem bude vo verzii PHP na serveri. Ja som tento problem mal pri php verzii 5.3.10 ale pri PHP bolo vsetko ok

mám rovnaký problem na php 5.3.10 a už mám kúpený hosting nový, kde je 5.3.3. myslýš. že na tejto staršej verzií to bude blbnúť tiež?

Link to comment
Share on other sites

What is the value for the setting Back Office > Preferences > Search > Search > Minimum word length (in chars)?

I have same problem. Products are indexed (7/7) but database is empty. I tired from 1-3 minimum word length and it is still the same: "No results found for your search".

Link to comment
Share on other sites

Predpokladam že problem bude vo verzii PHP na serveri. Ja som tento problem mal pri php verzii 5.3.10 ale pri PHP bolo vsetko ok

I have to say, that my Slovak colleague was right. The problem was php verion 5.3.10. I moved shop to other server with PHP 5.3.3 (since I just testing shop now) and searching run without problems.

Strange, since it is older version, isn´t it?

Link to comment
Share on other sites

I have to say, that my Slovak colleague was right. The problem was php verion 5.3.10. I moved shop to other server with PHP 5.3.3 (since I just testing shop now) and searching run without problems.

Strange, since it is older version, isn´t it?

 

You could say it's strange, but bugs are present in new versions as well! Sometimes new versions introduces old bugs that had been fixed earlier, just take a look at Microsoft and their ping of death issues throughout the Windows versions haha ;)

Link to comment
Share on other sites

  • 2 years later...

Hello

 

My search fuction dont work.

I try reindexing - i have 67/67 but in my database i have empty ps_search_word, ps_search_index

 

In backoffice it is ok but in front still : "No results found for your search"

 

Edit:

now i set ‘display_errors’ to ‘on’ in /config/config.inc.php

 

ini_set(‘display_errors’, ‘on’);

 

When i try reindex i have many times this :

Warning: preg_replace() [function.preg-replace]: Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1829 in /home/html/nanakupe.sk/public_html/classes/Search.php on line 103

 

this is on the end:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/html/nanakupe.sk/public_html/classes/Search.php:103) in /home/html/nanakupe.sk/public_html/classes/Tools.php on line 107

 

 

EDIT 2

 

Today i try move it to localhost (same error on localhost), then i update from 1.4.6.2. to 1.4.7. now on localhost everything is OK. But when i upload it to server it is same ... if i try reindex i only empty tables in database: ps_search_word, ps_search_index

 

 

 

Please somebody any ideas? Anybody :(

 

On Search.php on /public_html/classes just delete line:

 

'\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.

 

Save and upload it now.

Link to comment
Share on other sites

I have same problem. Products are indexed (7/7) but database is empty. I tired from 1-3 minimum word length and it is still the same: "No results found for your search".

 On Search.php on /public_html/classes just delete line:

 

'\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.

 

Save and upload it now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...