Statpress generating a large number of Apache errors
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.
#1 Updated by Boone Gorges about 5 years ago
- Status changed from New to Resolved