RodG:
I don't know how you came to this conclusion based on the error message provided.
Yes, it may appear the the problem has something more to do with "query_factory.php", but this is only the messenger. The real problem is within the code that calls the query_factory.
THere is nothing in the error message that suggests the the tables are broken. However, if in doubt, phpMyAdmin (and pretty much any other MySQL administration tool) has options to check and/or repair the DB tables. There is no harm in using these tools, and depending on the cause of the problem, it can indeed solve some issues. Alas, I don't think you'll be as lucky.
I think you were closer to the mark with your dynamic filter diagnosis.
Cheers
Rod
Thanks for the info. I will look at my PHPMyadmin to see what tools are available to me. And will let you know if it works.
But as you said I don't think I would be that lucky! :yuck: :censored:
Following is what I have done after a site without any errors:
- Installed sitemapXML
- Updated/revised the manufacturer's name for some products, and uploaded them using EP4 (through Full-EP_04_10_2013.csv)
After looking at it in detail:
The error only occurs when New Products, /index.php?main_page=products_new and All Products, /index.php?main_page=products_all are selected; and not all categories results in the error, only selecting certain categories causes the error. I am now trying narrow down the category ID numbers. I am guessing the might be numbered (24,4,7,8,13,10,23,18,15,16,21,17,20,19,22,12,14).
Following are a serires of error I am getting as testing:
[18-Apr-2013 07:40:48] PHP Fatal error: 1064: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 '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,7,8,' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,7,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
[18-Apr-2013 07:40:25] PHP Fatal error: 1064: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 '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
[18-Apr-2013 07:40:19] PHP Fatal error: 1064: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 '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
[18-Apr-2013 07:37:23] PHP Fatal error: 1064: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 '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120