Project

General

Profile

Actions

Bug #5876

closed

Statpress generating a large number of Apache errors

Added by Boone Gorges over 8 years ago. Updated over 8 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:
Deployment actions:

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.

Actions

Also available in: Atom PDF