Hello,
I am getting following error from protector.
Warning: mysql_query(): 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 'EXPLAIN conf_name,conf_value FROM ty_config WHERE conf_title li in /home/vmc/public_html/x/modules/protector/class/protector.php on line 44
When I add EXPLAIN after SELECT the error becomes like this:
Warning: mysql_query(): 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 'EXPLAIN conf_name,conf_value FROM ty_config WHERE conf_title li in /home/vmc/public_html/x/modules/protector/class/protector.php on line 44
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vmc/public_html/x/modules/protector/class/protector.php on line 45
When I run the QUERY in phpmyadmin I get no errors and it works fine.
SELECT * FROM `ty_config` WHERE `conf_title` LIKE '_MI_PROTECTOR%'
You can check the error at
http://www.vmclinks.com/Thank you
Gruessle
you shouldn't have done that....
This is just an informative message generated by MySQL and meant to tell developers that their DB structure could be more optimized, nothing really serious.
If disabling the debug_mode doesn't make the message disappear, you can remove it by setting the PHP config value
mysql.trace_mode to Off.
If you don't have access to
php.ini do it by adding the folliwing line to .htaccess in the root of your site:
php_flag mysql.trace_mode off
hi skalpa.
It is also a useful information to optimize SQL for module developpers.
Thank you!
Quote:
hi skalpa.
It is also a useful information to optimize SQL for module developpers.
Yes, in fact I didn't know about this option before I read this post... so I searched the internet to see how I could
enable it on my own work installs
No need to thank