• Resolved alistek

    (@alistek)


    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

    https://ww.wp.xz.cn/plugins/store-locator/

Viewing 1 replies (of 1 total)
  • Plugin Author Viadat

    (@viadat)

    (To WP Forum Moderators: can these posts for other plugins be re-directed or placed in the proper forum? This is not for our plugin)

Viewing 1 replies (of 1 total)

The topic ‘Error: "mysql_real_escape_string" in WordPress Admin while Sorting Stores’ is closed to new replies.