• Hello,

    When I visit my website I sometimes get the error message: “PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in …/wp-includes/wp-db.php on line 1539”.

    // snipit starting from row 1539
    foreach( (array) $this->last_result as $row ) {
    	if ( $output == ARRAY_N ) {
    	// ...integer-keyed row arrays
    	$new_array[] = array_values( get_object_vars( $row ) );
    	} else {
    	// ...column name-keyed row arrays
    	$new_array[] = get_object_vars( $row );
    	}
    }

    When I just refresh the error page it brings me back to my website without any problems. Sometimes the day after I go to it again and the same problem.

    I checked my settings and I have the PHP set to 128MB Max, but after checking my usage with a plugin I only use 31% or 39.25MB/128MB.

    So I don’t really see where the problem could be. Any help?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Storage space is not the same as PHP memory. 134217728 bytes = 128M

    Thread Starter Poi5on

    (@poi5on)

    Where is the problem then?

    You do not have enough PHP memory. Try increasing it to 256M.

    Thread Starter Poi5on

    (@poi5on)

    I increased it and now it tell me:

    PHP Version : 5.2.17 / 64Bit OS
    Memory limit : 256 MByte
    Memory usage : 39.25 MByte

    I guess I have to wait to know if it worked.

    Or contact your hosts and discuss it with them.

    Hi Poi5on,

    So, did you solve the problem?

    I have the problem like you.
    What can I do? even though increased the memory to 512M and changed on wp-config.php, wp-setting.php as well.
    But still error on Pages and Menu.
    The error message is as below.

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /home/smartuhak/wp/wp-includes/wp-db.php on line 1559

    Could you guide me?
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allowed memory size of 134217728 bytes exhausted’ is closed to new replies.