Error: "mysql_real_escape_string" in WordPress Admin while Sorting Stores
-
Hello,
As I think was reported earlier, there is an issue while clicking on the various field headers for the Store listing in the WordPress Admin section of WP Store Locator. When doing so, it would show the following errors:
Warning: mysql_real_escape_string(): Access denied for user ‘user’@’localhost’ (using password: NO) in/home/user/public_html/site.com/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 311
Warning: mysql_real_escape_string(): A link to the server could not be established in /home/user/public_html/site.com/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 311
Warning: mysql_real_escape_string(): Access denied for user ‘user’@’localhost’ (using password: NO) in /home/user/public_html/site.com/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 312
Warning: mysql_real_escape_string(): A link to the server could not be established in /home/user/public_html/site.com/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 312
These can be resolved by replacing the function “mysql_real_escape_string” with esc_sql (the drop-in replacement). This issue apparently only comes up if you are using WordPress version 3.9+ and PHP 5.5+ (both of which I am).
Hopefully this can be changed in the next release of the plugin, thanks!
-Adam
The topic ‘Error: "mysql_real_escape_string" in WordPress Admin while Sorting Stores’ is closed to new replies.