• Fatal error: Out of memory (allocated 33554432) (tried to allocate 4096 bytes) in /homepages/27/d420428939/htdocs/wordpress/wp-includes/wp-db.php on line 1775

    the exception is thrown only in the back end if i go under design -> header (in the customizer)

    Codelines 1770 – 1784 are following now

    // Return number of rows affected
    			$return_val = $this->rows_affected;
    		} else {
    			$num_rows = 0;
    			if ( $this->use_mysqli && $this->result instanceof mysqli_result ) {
    				while ( $row = mysqli_fetch_object( $this->result ) ) {
    					$this->last_result[$num_rows] = $row;
    					$num_rows++;
    				}
    			} elseif ( is_resource( $this->result ) ) {
    				while ( $row = mysql_fetch_object( $this->result ) ) {
    					$this->last_result[$num_rows] = $row;
    					$num_rows++;
    				}
    			}

    ——————————————————–

    Fatal error: Out of memory (allocated 31457280) (tried to allocate 4096 bytes) in /homepages/27/d420428939/htdocs/wordpress/wp-admin/includes/class-wp-upgrader.php on line 2088

    is only thrown when i navigate in the back end in the customizer to Dashboard -> Updates

    to code block is – i start at line 2084

    $converted_data = $this->strip_invalid_text( $data );
    
    		if ( $data !== $converted_data ) {
    			return false;
    		}
    
    		return $data;

    —————————————————————

    i allready manipulated the wp-config php, and inserted “define(‘WP_MEMORY_LIMIT’, ’64M’);”

    do you have an idea?

    Thank you very much yours sincerly holger

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Typically, the quoted line isn’t the problem. It’s the drop that caused the cup to overflow, but it’s not what filled most of the cup to begin with.

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Out of memory (allocated 33554432) (tried to allocate 4096 bytes)’ is closed to new replies.