Title: Daily error &#8211; SQL &#8211; Causes server overload
Last modified: July 22, 2020

---

# Daily error – SQL – Causes server overload

 *  [Law](https://wordpress.org/support/users/laucoste/)
 * (@laucoste)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/daily-error-sql-causes-server-overload/)
 * Hi,
 * I get a daily error on my server which is overloaded.
 * The error detail is :
 * `Backend log: PHP Warning: mysqli_real_escape_string() expects parameter 1 to
   be mysqli, null given in /home/XXXXXXXX/public_html/wp-content/plugins/wp-cerber/
   common.php on line 2010\n, referer: https://YYYYY.ZZ`
 * Would you see what could be the reason ?
 * It looks related to the function ‘cerber_real_escape’.
 * It is very annoying…
 * In the code, the comment for this line is :
 *     ```
       /**
        * Natively escape a string for use in an SQL statement
        * The reason: https://make.wordpress.org/core/2017/10/31/changed-behaviour-of-esc_sql-in-wordpress-4-8-3/
        *
        * @param string $str
        *
        * @return string
        * @since 6.0
        */
       ```
   
 * How to resolve it please ?
 * Thank you,
    Regards, Law

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/daily-error-sql-causes-server-overload/#post-13159393)
 * Please install the latest version and tell me how it goes.
 *  Thread Starter [Law](https://wordpress.org/support/users/laucoste/)
 * (@laucoste)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/daily-error-sql-causes-server-overload/#post-13159427)
 * Hi,
 * Installed. Briefly, could you explain me what has be done ?
 * I’ll check if it’s better during the next 2 days.
 * Thank you,
    regards, Law

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Daily error – SQL – Causes server overload’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cerber_77a9bf.svg)
 * [WP Cerber Security, Anti-spam & Malware Scan](https://wordpress.org/plugins/wp-cerber/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cerber/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cerber/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cerber/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cerber/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cerber/reviews/)

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 2 replies
 * 2 participants
 * Last reply from: [Law](https://wordpress.org/support/users/laucoste/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/daily-error-sql-causes-server-overload/#post-13159427)
 * Status: not resolved