Out Of Memory issue in Newspaper theme td-composer plugin.

Hi All,

Im facing an Out Of Memory issue frequently in td-composer plugin. we have Nginx - PHP-FPM setup. We have set memory limt to 512 MB in wp-config file.

define(‘WP_MEMORY_LIMIT’, ‘512M’);
define(‘WP_MAX_MEMORY_LIMIT’, ‘512M’);

example log:

2020/05/12 07:24:11 [error] 2848#0: *1331022 FastCGI sent in stderr: “PHP message: PHP Fatal error: Out of memory (allocated 20971520) (tried to allocate 36864 bytes) in /home/myuser/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2070” while reading response header from upstream, client:, server: _, request: “GET /blog/ayurveda-for-beginners-whats-your-dosha/5189 HTTP/1.1”, upstream: “fastcgi://unix:/run/php-fpm/www.sock:”,

Can anybody help me on this? If anyone fixed this in your project, help me to resolve this.


if your website running on shared hosting this thing can be happened.
you can try to increase PHP’s max memory both wp-config.php and php.ini
If you don’t have access php.ini then contact hosting support.


Thanks Mgscoder,

This is my dedicated server and php.ini updated already. Still I’m getting this error in a while.

Have you restarted fpm and nginx? php.ini is only loaded on startup.

Restarted both Nginx and fpm. few days no issue. after that Out of memory coming again.


Thank you for using our theme and also, we are sorry if you are facing some problems with our product. First of all, please make sure that you are using the latest version of the theme and then, make sure that all of your system status parameters are correctly increased according to our guide from here -> https://forum.tagdiv.com/system-status-parameters-guide/
Also, if you have a huge amount of plugins please double the wp_memory_limit and it should fix the problem with memory.

The code below is for users that have problems with tagDiv Composer, this will help for better compatibility. Try to add this snippet of the code into your .htaccess and check how it goes.

SubstituteMaxLineLength 10M

-> https://www.screencast.com/t/nuycDKKVuSGa

Please check with your hosting provider if your dedicated server is meet the following minimum theme requirements from here -> https://forum.tagdiv.com/requirements-for-newspaper/

After you have followed all of these steps and also, if the problem is still there, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) and full Cpanel access so we can take a closer look at your setup page. Do not forget to include there your item purchase code so we can identify you.

Best regards!
Catalin L.

1 Like