Opencart version: 1.5.5.1
Shoppica 2 version: 2.2.2
I have recently noticed a problem with the search function, resulting in the following error:
Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LEFT JOIN product_field pf ON (p.product_id = pf.product_id) FROM product p LEFT’ at line 1
Error No: 1064
SELECT COUNT(DISTINCT p.product_id) AS total LEFT JOIN product_field pf ON (p.product_id = pf.product_id) FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = ’1′ AND p.status = ’1′ AND p.date_available <= NOW() AND p2s.store_id = '0' AND ( pd.name LIKE '%bmw%'OR LCASE(pf.text) LIKE '%bmw%' AND pf.language_id = '1' OR pd.tag LIKE '%bmw%' OR LCASE(p.model) = 'bmw' OR LCASE(p.sku) = 'bmw' OR LCASE(p.upc) = 'bmw' OR LCASE(p.ean) = 'bmw' OR LCASE(p.jan) = 'bmw' OR LCASE(p.isbn) = 'bmw' OR LCASE(p.mpn) = 'bmw') in /var/www/vhosts/website.co.uk/httpdocs/system/database/mysql.php on line 50
Please can you help?
|
|
Could you please activate the default theme and try the search again. Does it work, or it throws the same error ?
Regards ,
ThemeBurn team
|
|
Hi,
Having tried the default theme, it doesn’t throw an error and works just fine.
I seem to remember having an issue after upgrading to latest version of Shoppica 2; more specifically after replacing either ‘controller.php’ or ‘extension.php’ the problem occurred.
It’s strange, because I have another site with the same setup running just fine. Is there anything you could suggest?
Best Regards,
|
|
Can you give us a link to your site ?
|
|
Of course, the site is: http://www.dgdiecast.co.uk
|
|
We need to investigate this issue further as we are not 100% sure where the problem is and if it is connected to Shoppica or not. Could you provide admin and ftp access ?
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
Your search issue is caused by one of the vqmod extensions you have installed. Try to disable them one by one (just delete the extension’s xml file) to see which one is problematic. Don’t forget to delete all of the files in vqcache folder, after disabling the extension.
Regards,
ThemeBurn team
|
|
Thanks very much, it turns out it was caused by a plugin – “Custom Fields 1.5.x v3.0.4 [vQmod]”
I’m still waiting for a fix unfortunately, appreciate you looking into this one for me though.
|
|