• All websites with Statpress installed are producing the same error today – example:

    Warning: mysql_real_escape_string(): Access denied for user ‘lednyaks’@’localhost’ (using password: NO) in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1191

    Warning: mysql_real_escape_string(): A link to the server could not be established in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1191

    Warning: mysql_real_escape_string(): Access denied for user ‘lednyaks’@’localhost’ (using password: NO) in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1194

    Warning: mysql_real_escape_string(): A link to the server could not be established in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1194

    Warning: mysql_real_escape_string(): Access denied for user ‘lednyaks’@’localhost’ (using password: NO) in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1197

    Warning: mysql_real_escape_string(): A link to the server could not be established in /home/lednyaks/public_html/wp-content/plugins/statpress/statpress.php on line 1197

    Please urgently advise.

    Thanks,

    Victoria

    https://www.ads-software.com/plugins/statpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • i got the same problem,
    i just updated the

    mysql_real_escape_string()
    to
    esc_sql()

    See this post

    This problem can be fix quick by using sed
    find /wordpress/wp-content/plugins/statpress-reloaded/ -type f -exec sed -i -e 's/mysql_real_escape_string/esc_sql/g' {} \;

    But i have a problem with this 4 lines, line 376, 449, 520 and 590 in statpress.php, all the line have the same text
    $qry_tmonth->target = round($qry_tmonth->visitors / (time() - mktime(0,0,0,date('m'),date('1'),date('Y'))) * (86400 * date('t')));
    And the error that i get is Warning: Creating default object from empty value in /wordpress/wp-content/plugins/statpress-reloaded/statpress.php

    I forgot to tell what os and program i’m using, i use FreeBSD 10, PHP 5.6.5 (cli) (built: Feb 1 2015 12:32:25), Apache/2.4.12 Server built: Feb 1 2015 11:47:37 and MySQL Version 5.5.41

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mysql errors on all websites using statpress’ is closed to new replies.