Actions
Bug #5876
closedStatpress generating a large number of Apache errors
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.
Updated by Boone Gorges over 8 years ago
- Status changed from New to Resolved
Updated by Boone Gorges over 8 years ago
- Target version changed from 1.9.22 to 1.9.24
Actions