Fatal error: Allowed memory in Wp-db.php
-
I have been running my personal website since 2008 and recently I come across with this error which I thought was related to the memory limit but it didn’t worked so I am trying to understand what the issue is about and also how to solve.
Issue shown as:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in [path of my website]/wp-includes/wp-db.php on line 1938 and a white screen.When it happens?
There is no a regular replica of the reason why it triggers into this error. For example, sometimes when I create a new post and save as draft, it shows up the above error message. Sometimes happens when clicking to Dashboard , other time when I click on publish.When this issue came up
More or less since a month ago at max.Plugins installed and running
AddThis Social Bookmarking Widget
Askimet
Booking.com affiliate plugin
Easy contact forms
FV Top Level Categories
iThemes Security
Newsletter
nrelate Related Content
Pretty Link Lite
W3 Total Cache
Widget Logic
Wordpress SEOLast plugin I installed was ithemes security probably 6 months ago
PHP info
Currently the server memory Limit max is 128MB (before was 64)What code is in the line 1938?
$new_array[] = array_values( get_object_vars( $row ) );
I am getting the same line associated to this error.
More coding
return $new_array; } elseif ( $output == ARRAY_A || $output == ARRAY_N ) { // Return an integer-keyed array of... if ( $this->last_result ) { 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 ); } } } return $new_array; } elseif ( strtoupper( $output ) === OBJECT ) { // Back compat for OBJECT being previously case insensitive. return $this->last_result; } return null;
I have also added the command Define memory limit of 128MB into wp-config.php, just in case was this the issue.
I have also did some research on this forum but didn’t found the exact error so I opened a new tread.
Thank in advance
Donald
- The topic ‘Fatal error: Allowed memory in Wp-db.php’ is closed to new replies.