Title: Fatal error: allowed memory
Last modified: August 22, 2016

---

# Fatal error: allowed memory

 *  Resolved [Bianco-](https://wordpress.org/support/users/bianco-/)
 * (@bianco-)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-9/)
 * Hello,
    I’ve been using the jetpack plugin for a short time, and in the last 
   days I’ve noticed this error at the end of my page: Fatal error: Allowed memory
   size of 268435456 bytes exhausted (tried to allocate 18874435 bytes) in /public_html/
   wp-includes/wp-db.php on line 1040 It doesn’t happen in every post of the blog,
   only in the last published, even if they contain only simple text. When I deactivate
   the jetpack plugin it stops giving me this error, I’ve tried to reinstall it,
   also via ftp, and it still gives me that error. When I deactivate the jetpack
   plugin it works fine, once it is activated I get the error, even if no modules
   of the jetpack are activated and if I haven’t even linked it to my wordpress 
   account. I was using the last 3.9 wordpress release, now I’ve updated to wordpress
   4 but nothing changed. The website is [http://www.cursdecatala.com/](http://www.cursdecatala.com),
   if you search on google “site:www.cursdecatala.com 1033” you will see all the
   pages that are giving me that error when I have the jetpack plugin activated.
 * It gives me the error in the wordpress file wp-db.php, line 1033 in wp 3.9.2,
   line 1040 in wp 4.0, the line is the one in bold:
 *  function _real_escape( $string ) {
    if ( $this->dbh ) { if ( $this->use_mysqli){
   return mysqli_real_escape_string( $this->dbh, $string ); } else { **return mysql_real_escape_string(
   $string, $this->dbh );** } }
 *  $class = get_class( $this );
    _doing_it_wrong( $class, “$class must set a database
   connection for use with escaping.”, E_USER_NOTICE ); return addslashes( $string);}
 * If anyone has any suggestion (possibly not to increase php memory, I would prefer
   to avoid to do that, it would be just a workaround), I’d be glad to hear.
 * Thanks a lot,
    Claudio
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-9/#post-5296829)
 * That’s indeed a common WordPress issue, and is not linked to Jetpack itself. 
   It’s the sum of processes (including Jetpack) running on your site that ends 
   up causing the issue.
 * You can find out how to solve the issue here:
    [http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP](http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: allowed memory’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-9/#post-5296829)
 * Status: resolved