Project

General

Profile

Bug #5876

Statpress generating a large number of Apache errors

Added by Boone Gorges about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2016-08-08
Due date:
% Done:

0%

Estimated time:

Description

They look like this:

[Mon Aug 08 10:37:53.158492 2016] [:error] [pid 31326] [client 172.29.252.76:44430] PHP Warning:  mysql_real_escape_string(): No such file or directory in /var/www/html/commons/www/wp-content/plugins/statpress-visitors/statpress.php on line 312

I believe this is because no MySQL connection yet exists at the time that the line is being called.

The call to mysql_real_escape_string() is unneccessary, because $wpdb->insert() eventually calls $wpdb->prepare(), which handle the escaping.

History

#2 Updated by Boone Gorges about 5 years ago

  • Target version changed from 1.9.22 to 1.9.24

Also available in: Atom PDF