Jump to content

[SOLVED] error message when searching


Recommended Posts

Hi,

When I make a search in the on line shop, I am getting the following message :
Warning: Invalid argument supplied for foreach() in /var/www/vhost/myshop.com/home/html/classes/Search.php on line 190

On the admin - Preferences - Search - Indexation, I have the following message :
Indexed products: 0 / 8.

-> Add missing products to index.
-> Re-build entire index.

If I press either on Add missing products to index or Re-build entire index. I get the here after error message :
Can't find file: 'ps_search_word' (errno: 2)

Thank you in advance for any help in this matter.

Patrick

Link to comment
Share on other sites

Hi,

Thank you for your reply.

I downloaded the last Prestashop available version last July.

Since July, I had no time to start to build my shop. So, I started the building two days ago. I only added one item to the demo shop.

Is there a way to check that ps_search_word table is missing from my database ?

Besides this error, I have another one on the admin home page :
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhost/myshop.com/home/html/modules/statshome/statshome.php on line 139

Is there any link between the two problems ?

Thank you again in advance.

Patrick

Link to comment
Share on other sites

Thank you for your reply.

In Prestasho admin :
in Back Office - Preferences - Database :
There is only one database having the following prefux : ps_

I also logged on the database on my server.
Thera are tens of ps_ sub directories
Among them, are :
ps_search_index and ps_search_word

When I press on the ps_search_index link, I get the following error message :
Erreur
requête SQL:
SHOW INDEX FROM `ps_search_index` ;
MySQL a répondu:
#1017 - Can't find file: 'ps_search_index' (errno: 2)


When I press on the ps_search_word link, I get the following error message :
Erreur
requête SQL:
SHOW INDEX FROM `ps_search_word` ;
MySQL a répondu:
#1017 - Can't find file: 'ps_search_word' (errno: 2)

When I press on the other directory links, they work (no error message).

Thank you again in advance,

Patrick

Link to comment
Share on other sites

I am adding here below some other pieces of information

I checked the other ps_ sub directories. most are working but some have error or alert messages

ps_connections
Erreur
MySQL a répondu:
#1194 - Table 'ps_connections' is marked as crashed and should be repaired

ps_connections_page link
Erreur
MySQL a répondu:
#1194 - Table 'ps_connections_page' is marked as crashed and should be repaired

When I press on the ps_customer_group link, I get the following alert message :
La colonne `id_customer` ne devrait pas faire partie à la fois d'une clé primaire et d'une clé index

ps_guest link,
Erreur
requête SQL:
SHOW INDEX FROM `ps_guest` ;
MySQL a répondu:
#1194 - Table 'ps_guest' is marked as crashed and should be repaired

ps_hook_module
La colonne `id_module` ne devrait pas faire partie à la fois d'une clé primaire et d'une clé index

ps_image_lang
La colonne `id_image` ne devrait pas faire partie à la fois d'une clé unique et d'une clé index

ps_module_currency
La colonne `id_module` ne devrait pas faire partie à la fois d'une clé primaire et d'une clé index

ps_pagenotfound
requête SQL:
SHOW INDEX FROM `ps_pagenotfound` ;
MySQL a répondu:
#1194 - Table 'ps_pagenotfound' is marked as crashed and should be repaired

ps_page_viewed
requête SQL:
SHOW INDEX FROM `ps_page_viewed` ;
MySQL a répondu:
#1194 - Table 'ps_page_viewed' is marked as crashed and should be repaired

ps_search_index
requête SQL:
SHOW INDEX FROM `ps_search_index` ;
MySQL a répondu:
#1017 - Can't find file: 'ps_search_index' (errno: 2)

ps_search_word
Erreur
requête SQL:
SHOW INDEX FROM `ps_search_word` ;
MySQL a répondu:
#1017 - Can't find file: 'ps_search_word' (errno: 2)


Thank you again in advance,

Patrick

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

tried re-building but get error:

Array
(
[0] => Incorrect information in file: './limeligh_psdb/ps_search_index.frm'
[1] => Array
(
[0] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'ipod' AND id_lang = 1 LIMIT 1),10)
[1] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'nano' AND id_lang = 1 LIMIT 1),10)
[2] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'new' AND id_lang = 1 LIMIT 1),3)
[3] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'design' AND id_lang = 1 LIMIT 1),2)
[4] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'features' AND id_lang = 1 LIMIT 1),1)
[5] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'now' AND id_lang = 1 LIMIT 1),1)
[6] => (1,(SELECT id_word FROM ps_search_word WHERE word = '8gb' AND id_lang = 1 LIMIT 1),1)
[7] => (1,(SELECT id_word FROM ps_search_word WHERE word = '16gb' AND id_lang = 1 LIMIT 1),1)
[8] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'rocks' AND id_lang = 1 LIMIT 1),1)
[9] => (1,(SELECT id_word FROM ps_search_word WHERE word = 'like' AND id_lang = 1 LIMIT 1),1)
)

)


END

Link to comment
Share on other sites

×
×
  • Create New...