Out of memory with td composer (but not only)

Posted in: Newspaper
Post count: 8

Good morning,

Our customer experienced a problem related (according to WP) to td composer.

Un errore di E_ERROR è stato causato nella linea 22862 del file /var/www/chrooted/kedoswebdev/www.cgfmanet.org/wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php. Messaggio di errore: Out of memory (allocated 2097152) (tried to allocate 32768 bytes)

Reading the server’s log we didn’t find anything about this out of memory problem, and the server didn’t fall, but our customer cannot enter in the dashboard for about 20 mins.

In several other occasions we saw the server falling down for out of memory, and we cannot understand why. We saw a lot of calls to the database.

These are some of our WP and server configurations for this website:

Dedicated Server with 8GB of RAM plus 4GB of swipe
### wp-core ###

version: 5.4
site_language: it_IT
user_language: it_IT
timezone: Europe/Rome

https_status: true
user_registration: 0
default_comment_status: open
multisite: false

dotorg_communication: true

### wp-active-theme ###

name: Newspaper 7 Child theme (Newspaper-child)
version: 9.0c
author: tagDiv
author_website: http://themeforest.net/user/tagDiv/portfolio
parent_theme: Newspaper (Newspaper)

### wp-parent-theme ###

name: Newspaper (Newspaper)
version: 10.3.2
author: tagDiv
author_website: http://themeforest.net/user/tagDiv/portfolio

### wp-server ###

server_architecture: Linux 3.10.0-1127.el7.x86_64 x86_64
httpd_software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33
php_version: 7.0.33 64bit
php_sapi: apache2handler
max_input_variables: 5000
time_limit: 300
memory_limit: 5800M
max_input_time: 230
upload_max_size: 256M
php_post_max_size: 264M
curl_version: 7.29.0 NSS/3.44
suhosin: false
imagick_availability: false
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 5.7.17
client_version: mysqlnd 5.0.12-dev – 20150407 – $Id: b5c5906d452ec590732a93b051f3827e02749b83 $

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined

WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

We have, for sure, a huge amount of plugin (but we cannot do differently, as our customer needs them all).

This is my first question: do you have any ideas for this problem? It’s something that happens often!

Plus, my second question, is related to the last problem our customer experienced (the one I was talking): even if it has been and out of memory the fact that the server didn’t go down, I tried to add this string, according to you guide https://forum.tagdiv.com/requirements-for-newspaper/#td-mod-substitute, to the .htaccess.
But when I try to add
<IfModule mod_substitute.c>
SubstituteMaxLineLength 10M
</IfModule>
The server falls down immediately, and restarts when I delete it.

Our IT manager told that SubstituteMaxLineLength 10M
Is not supported in our Apache version (the last): CentOS Linux release 7.8.2003 httpd-2.4.6-93.el7.centos.x86_64
Looking in the logs, they return this: /.htaccess: Invalid command ‘SubstituteMaxLineLength’

How can we fix this according to our Apache version?
We temporary are disactivating mod_substitute, is it correct?

Hope I explained fair the issues, I’m sorry but English is not my mother tongue.
If you need further information let me know.

Thanks for helping

`

Post count: 35449

Hi,

If you have huge amount of plugin please double the wp_memory_limit and it should fix the problem with memory.

This code
<IfModule mod_substitute.c>
SubstituteMaxLineLength 10M
</IfModule>
is for users that have problems with tagDiv Composer, this will help for a better compatibility.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.