Topic: Fatal error out of memory when updating Arras Theme Options

Today I was editing the Title in the Featured Posts #1 area, on the Home Tab of the Arras Theme Options. I changed it a couple of times with no issue, and then the third time I changed it I got this error:

Fatal error: Out of memory (allocated 30408704) (tried to allocate 664053 bytes) in /homepages/33/d331420110/htdocs/easyautomatedwebsites/wp-includes/wp-db.php on line 774

If I try to update a setting on the Layout Tab, I get this:

Fatal error: Out of memory (allocated 30408704) (tried to allocate 660073 bytes) in /homepages/33/d331420110/htdocs/easyautomatedwebsites/wp-includes/wp-db.php on line 838

The site is running okay, and I can add a new post and change other settings on the site, outside of the Arras them settings.

Thanks for any and all help!
-Ken

Check out my work at EasyAutomatedWebsites.com

Thumbs up

Re: Fatal error out of memory when updating Arras Theme Options

Here is the code that the error messages in the first post refer to, with offending lines in bold:


/**
       * Real escape, using mysql_real_escape_string() or addslashes()
       *
       * @see mysql_real_escape_string()
       * @see addslashes()
       * @since 2.8.0
       * @access private
       *
       * @param  string $string to escape
       * @return string escaped
       */
      function _real_escape( $string ) {
            if ( $this->dbh && $this->real_escape )
                  return mysql_real_escape_string( $string, $this->dbh );
            else
                  return addslashes( $string );
      }

----------------------------------------------------------------------------------


/**
       * Escapes content by reference for insertion into the database, for security
       *
       * @uses wpdb::_real_escape()
       * @since 2.3.0
       * @param string $string to escape
       * @return void
       */
      function escape_by_ref( &$string ) {
            $string = $this->_real_escape( $string );
      }

Check out my work at EasyAutomatedWebsites.com

Thumbs up

Re: Fatal error out of memory when updating Arras Theme Options

Well, problem solved - somehow on the General Settings on the Arras Options page, the HTML code that I had in the footer section mysteriously had been altered. There were at least thousands of /'s added to the code, in between things. I guess it was taking up all of the memory trying to load the page with all that.

I replaced it with a backup copy of the footer code, and everything works fine again. I dunno, maybe I fell asleep at the keyboard one night or something... wouldn't be the first time!

Thanks to all who even thought about this question!

Check out my work at EasyAutomatedWebsites.com

Thumbs up