Jump to content

Db->executeS() must be used only with select, show, explain or describe queries


Recommended Posts

Hello,

 

I'm developing searching module and I'm overriding find method of Seach.php class, but I'm getting the following message:

 

[PrestaShopDatabaseException]

Db->executeS() must be used only with select, show, explain or describe queries
at line 488 in file classes/db/Db.php

 

I don't understand why this error if I only use SELECT clause.

 

See the complete error in the image attached

I also attached the file of override Search.php class.

 

Anyone have an idea how can I solve this error?

 

Thanks in Advanced!

 

I'm working in localhost.

Prestashop 1.6

 

 

Search.php

post-774053-0-99105300-1459838358_thumb.png

Share this post


Link to post
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...

Important Information

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