Out of memory – nothing I tries works and wp-config doesn’t work well either
-
Hello. I’ve been having this error for days, in fact I previously wrote in the forum, and I marked as solved because I thought I had found the problem for a moment, but I have tried more things and I have found more errors, therefore I have decided to make a new topic.
I will explain step by step the errors and what I have tried to do.
On Thursday 08/31 I get up and the web doesn’t work. No plugin or PHP has been updated, nor have any substantial modifications been made to justify it.
In this forum someone tell me to modify the line define (‘WP_DEBUG’, false); by define(‘WP_DEBUG’, true) and that’s what I did. Then I saw this error message:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/wp-includes/class-wpdb.php on line 1793
Ok, so I changed all the values in the lines I’m showing now, first to 256, then to 512, and currently they’re at 1024:
wp-config:
define( 'WP_MEMORY_LIMIT', '1024M' );
php.ini:
memory_limit = 1024M
(also my max execution time is 3000).
.htaccess:
php_value memory_limit 1024M
I try again, and the error becomes the following:
Fatal error: Out of memory (allocated 367001600) (tried to allocate 262144 bytes) in /var/www/html/wp-content/plugins/w3-total-cache/ObjectCache_WpObjectCache.php on line 36 Fatal error: Out of memory (allocated 367001600) (tried to allocate 262144 bytes) in /var/www/html/wp-includes/class-wp-fatal-error-handler.php on line 35
Reading the plugin name, I deactivate the plugin by renaming the folder.
And for about two minutes, the page worked before crashing again. That’s why I thought that was the problem and marked my issue as solved.
However, after those two minutes, it crashed again and the error hasn’t changed (nor the path it shows; the folder is now called w3-total-cache_old). So, I rename the whole plugins folder to plugins_old, which should disable them all, thinking that maybe another plugin is causing the problem. That’s still the error message. Currently the folder is still called plugins_old.
The number it shows catches my attention, since the set limit is 1024M and it seems that it can’t accommodate more than 367M. I check the wp-config file, and I think that, since I can’t find the problem, I should take advantage so that the error messages do not appear on the screen, but in the debug file. So I modify these lines:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Errors keep showing up on the screen and the file was not created. I created it and nothing writes there. That makes me think that maybe for some reason the wp-config file is not being read correctly either.
At this moment, I don’t know what to do. I never faced something of this type and I need guidance and help. The support of my Cloud Server is a disaster and they only repeat that WordPress is a third party application and I must communicate here, so I have no other help. But being a Cloud Server, I have SSH access to any configuration that needs to be reviewed and edited.
The WordPress version listed in version.php is$wp_version = '6.3.1';
Please, any help you can give me I thank you from the bottom of my heart.
The page I need help with: [log in to see the link]
- The topic ‘Out of memory – nothing I tries works and wp-config doesn’t work well either’ is closed to new replies.