- NewsmagRequirements for Newsmag
Hi, I have discovered the following error in my /mydomain/logs/mydomain.tld.php.error.log file of PHP-FPM’s:
PHP Fatal error: Cannot redeclare tdc_on_remove_core_updates() (previously declared in /mydomain/public_html/wp-content/plugins/td-composer/includes/tdc_main.php:359) in /mydomain/public_html/wp-content/plugins/td-composer/includes/tdc_main.php on line 358
The theme is up to date. (v. 11.5.1)
PHP Version 7.4.30
WP Memory Limit 256 MB
PHP Execution Time 60
PHP Max Input Vars 5000
Would you kindly assist me with this?
Thanks.
Hi,
In some cases there are such issues, but generally that is the case with other themes as well. Newspaper and Newsmag are somewhat similar, it can be said that Newsmag is a Newspaper theme without the cloud library plugin, and with a more limited composer.
I see that you mention in another topic that the server you are using has 1GB of memory, that is insufficient even for a testing/staging website, with no traffic. At least 2GB of memory should be used, as the minimum. That is most likely the cause of all the problems.
I had a similar case recently, and after updating the server with another 1GB of memory, everything stabilized and worked perfectly. In my opinion nothing else that you can do or try will solve the problem, or maybe only very little, except adding more memory to the server, which may mean that you will have to choose a higher hosting plan, it usually does.
The composer is basically the theme, deactivating it is like deactivating the theme. The resources usage will drop when deactivating the composer, but testing this way doesn’t mean much if I may say so. Maybe it will be better with the Newsmag theme, but I suggest investing in better hosting if possible, especially since you already built the website with Newspaper.
Let me know.
Thank you!
I recently had similar issues and found a solution to the problem.
Flex box elements using AJAX to pull in posts were causing major issues with database queries.
I changed to the post loop for the main content area, and removed any blocks using ajax from the footer.
All performance stats on the site dropped by 50% pretty much right away.
Aug 24th – 10am-11am
Response time: 1.36s
CPU Utilization: 97%
Memory Usage: 13GB
Aug 31st – 10am-11am
Response time: .592s
CPU Utilization: 46%
Memory Usage: 7.5GB
Our site has about 100,000 posts and around 500,000 unique visitors per month.
For anyone else having these issues:
Don’t use any blocks / elements with ajax to pull in post data unless you absolutely have to.
Looks like the flex block using ajax was absolutely the problem.
I changed to the post loop for the main content area, and removed any blocks using ajax from the footer.
All performance stats on the site dropped by 50% pretty much right away.
Aug 24th – 10am-11am
Response time: 1.36s
CPU Utilization: 97%
Memory Usage: 13GB
Aug 31st – 10am-11am
Response time: .592s
CPU Utilization: 46%
Memory Usage: 7.5GB
For anyone else having these issues:
Don’t use any blocks / elements with ajax to pull in post data unless you absolutely have to.
Hi,
I would like to check the main website. Something must be wrong if the website goes offline, I will check the error logs and also increase those parameters you mention, maybe the wp-memory as well if needed. Please send us an email at contact@tagdiv.com and there provide access to the main website, also to Bluehost.
Thank you!
admin-ajax.php is loading too much it’s filling up my hosting CPU memory
https://imgur.com/a/aOwuXe0
Hi,
Indeed, by default the define( ‘WP_MEMORY_LIMIT’, ‘256M’ ); is not set in the wp-config.php file, but this can be added like in our guide https://forum.tagdiv.com/requirements-for-newspaper/ and should work without problems.
What is the PHP memory limit in WordPress?
Thank you!
Hello everyone,
I use Godaddly WordPress Hosting service. After install Newspaper 11 theme, saw message to suggest increase PHP memory from 40MB to 256MB.
Can’t find this code to make change: define( ‘WP_MEMORY_LIMIT’, ‘256M’ ). I installed plugin File Manager, found wp-config.php file, but doesn’t have define( ‘WP_MEMORY_LIMIT’, ‘256M’ ) code inside the file.
Here is the guidance from WordPress for changing the amount of memory.
The wp-config.php file is located in the WordPress root directory.
WP Memory Limit:
This parameter sets the amount of memory used by PHP and by default WordPress can go up to 40MB. To avoid Memory Exhausted error this parameter should be set to at least 256MB and this can be done from WordPress wp-config.php file.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
Thank you,
Richard
Hello,
so of the plugins you use, there are those that also require memory of 256M, these are WP Rocket and WMPL -> https://docs.wp-rocket.me/article/128-increase-php-memory-limit-in-wordpress -> https://wpml.org/home/minimum-requirements/#:~:text=In%20order%20to%20run%2C%20WPML,%2C%20theme%2C%20and%20all%20plugins. So there is a possibility that this problem is caused by memory, as you and the host noticed after increasing the memory limit.
Also, to optimize the website with WP Rocket please check this guide https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
Thank you!
Hi,
Normally, if you only use the plugins in the theme, you could only use 256M, maybe you have other plugins that require large memory. Please let me know what plugins you have.
Thank you!
and Kinsta has added: “Your current plan has a hard limit of 256M for the PHP memory limit. We can leave the define( ‘WP_MEMORY_LIMIT’, ‘512M’ ); since it can be added on your config file. Also, As 256M is a high value in most cases, it likely means there is a setting misconfigured within your plugins/theme. and reach out to the theme developers to optimize those ajax request moving forward.”
and they say:
“On your current plan, the hard limit for PHP memory_limit is only 256M. Your site’s theme panel requires higher than that. You may wish to consider upgrading the plan for more resources. Though you still need to reach out to your web developers and review the APM data to optimize those high ajax requests.”
Hi, my host provider did this and that has temporarily solved the problem. Something is consuming too many resources – but I disable all of the plugins except for those needed to run the theme, and the problem continues, so the issue must be in the theme ?
Kinsta says:
As a courtesy, I can temporarily add this value to your wp-config.php file to mitigate the fatal error:
define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
My host provider says this is a memory issue
2022/08/09 22:11:07 [error] 101843#101843: *4214654 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8429568 bytes) in /www/outandaboutpvcom_794/public/wp-includes/functions.php on line 626” while reading upstream, client: 108.18.207.57, server: outandaboutpv.com, request: “POST /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=11.5.1 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-outandaboutpvcom.sock:”, host: “outandaboutpv.com:35502”, referrer: “https://outandaboutpv.com/wp-admin/admin.php?page=td_theme_panel”
I tried bumping up the memory to a higher threshold and it did work, but I couldn’t leave it at that threshold ?
Hi Anamaria,
I have gone through the link which you have shared. We are using nginx as our web server hence the points up to 3 doesn’t apply for us. Regarding 4 our php memory limit is already 512MB. For 5th point we are not using mod_security in our dev server.
We have already configured nginx wordpress rule for SEO part to work and it is already working. This is our dev url https://dev.prasthutha.com/ where SEO link works good. You can use htpassword login as dev / dev
Hi,
I do not use the wordfence or sucuri plugin
I have disabled all plugins and that did not solve the problem
I use cloudflare CDN but through my host Kinsta – I do not have access to the cloudflare
I am using Newspaper 11.5.1 and the prebuilt website “newspaper”
—-
Jerry W. Jones, MPA, AEMT
Dueño, Out & About PV, S. DE R.L. DE C.V.
Constitución 285-A , Colonia Emiliano Zapata , Puerto Vallarta, Jalisco. 48380
RFC: OAA170623BU1
+52 322 274 3500
https://outandaboutpv.com
heme config
Registration key i fcf8e5d4 – **** – **** – **** – e96c5e0be3a3 Reset key
Theme name i Newspaper
Theme version i 11.5.1
Theme database version i 11.5.1
HTTP channel test wordpress
php.ini configuration
Server software i nginx/1.21.3
PHP Version i 8.0.21
post_max_size i 128M – You cannot upload images, themes and plugins that have a size bigger than this value. To see how you can change this please check our guide here.
max_execution_time 300
max_input_vars 10000
SUHOSIN installed false
PHP extensions
mbstring available
GD library available
WordPress and plugins
WP Home URL i https://outandaboutpv.com
WP Site URL i https://outandaboutpv.com
WP version i 6.0.1
WP multisite enabled i No
WP Language i en_US
WP Memory Limit 256 MB/request
Hello,
Please provide the message for that critical error.
Also, please make sure the system status parameters are correctly increased according to our documentation from here -> https://forum.tagdiv.com/requirements-for-newspaper/ in config is WP_MEMORY_LIMIT not PHP Memory Limit (there is a typo, sorry) => https://www.screencast.com/t/88pK5QXpC
Thank you!
http://www.rcrwireless.com
The site is is going down due to 524 errors every 5 hours or so.
New relic is reporting that tdc_footer is causing the longest loading issues.
Theme name Newspaper
Theme version 11.5.1
Theme database version 11.5.1
Server software nginx/1.20.1
PHP Version 7.4.30
post_max_size 128M
max_execution_time 300
max_input_vars 3000
SUHOSIN installed false
WP Home URL https://www.rcrwireless.com
WP Site URL https://www.rcrwireless.com
WP version 6.0.1
WP multisite enabled No
WP Language en_US
WP Memory Limit 756 MB/request
WP_DEBUG False
Caching plugin No caching plugin detected
I will be emailing support with a login for the site, as well as some screen shots.
Server is hosted with WPMUdev
64GB memory
16 vCPU
640GB storage
30TB bandwidth
1M /month estimated visits
Hi Mukesh,
Can you please let me know how did you made the update?
Did you use the theme panel option to update the theme?
If the theme update has been manually made, then, please be sure that the old theme and old plugins were removed and not overwritten.
1. Usually the “Invalid reply from server endpoint error” is caused by insufficient WP_Memory_limit, if you’ll set it to 256M, and is still not working, please double it and check the rest of the settings from our guide -> https://forum.tagdiv.com/requirements-for-newspaper/ also make sure that you are using SSL and you have a good bandwidth
2. This problem with the td_block_3_widget please check to be sure that the tagDiv Standard Pack plugin is enabled (this can be installed and enabled from Newspaper > plugins).
I hope this will help you!
I am trying to update the look of my website but I updated the Newspaper theme today and now the tagdiv composure is giving my website a high CPU Usage
Physical Memory Usage
1 GB / 1 GB (100%)
I/O Usage
8 MB/s / 8 MB/s (100%)
CPU Usage
99 / 100 (99%)
When I disable that plugin, my website returns to normal so I know its that plugin. I have researched your website and followed all information including: https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
My website: http://www.avillafan.com
Please can you help me find a solution to this ASAP so I can get my new look launched.
Hello,
I have looked all over the forums to search for a solution to this. When I edit pages with TagDiv I get a 524 timeout error, my database crashes and I have to restart the server completely. I have tried EVERYTHING iv seen in this forum.
Steps taken..
– Update theme
– Update Plugins
– Removed all non-mu plugins
None of that worked so I did a lot of work on the server side detailed below
– Updated WP_MEMORY_LIMIT’, ‘256M
– Updated upload_max_filesize = 200M
– updated max_input_vars = 3000
– updated max_execution_time = 300
– updated post_max_size = 50M
– Updated upload_max_filesize = 50M
None of that still seemed to work, I did not follow htaccess updates as I am on nginx. My stats are below.
Here are all the details from the system panel https://imgur.com/a/iSbSUiZ
The only thing I think I would be missing here is configuration requirements for Nginx as all the details I see in the forum cover htaccess.
In every text block (like “text with title”), I initially add text and save it. It shows on the website fine.
BUT when I edit it by clicking “Edit content”, the “WP Editor” pops up, although the text field is EMPTY (even though I added text another time). I can’t even paste text into this field.
Anyone had this problem or know how to fix?
NOTES:
* I’m using the latest version.
* Other fields/blocks seem to work fine.
* The browser ad blocker is disabled.
* The same happens in any browser.
* In “system status”, clearly my server meets all recommended specs (things like “WP Memory Limit”)
Basically the WYSIWYG “WP Editor” window is normal in every way, except it is BLANK when I try to edit existing text.
I suddenly started receiving huge log entries for UPDATE db queries. Each line over 16 M Bytes with indication “Got a packet bigger than ‘max_allowed_packet’ bytes”.
Single debug entry here: https://drive.google.com/file/d/16KHTKNpvjFLqD6kgO-sWX9Xj5ZDH58PC/view?usp=sharing
System info:
### wp-core ###
version: 6.0.1
site_language: el
user_language: en_US
timezone: Europe/Athens
permalink: /%year%/%monthnum%/%postname%/
https_status: true
### wp-parent-theme ###
name: Newspaper (Newspaper)
version: 11.5.1
author: tagDiv
### wp-server ###
server_architecture: Linux 4.15.0-167-generic x86_64
httpd_software: Apache/2.4.52 (Debian)
php_version: 7.4.27 64bit
php_sapi: apache2handler
max_input_variables: 10000
time_limit: 300
memory_limit: 512M
max_input_time: -1
upload_max_filesize: 32M
php_post_max_size: 32M
curl_version: 7.74.0 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
### wp-database ###
extension: mysqli
server_version: 10.4.7-MariaDB-1:10.4.7+maria~bionic
client_version: mysqlnd 7.4.27
max_allowed_packet: 16777216
max_connections: 100
Hello,
Please make sure the system status parameters are correctly increased according to our documentation from here -> https://forum.tagdiv.com/requirements-for-newspaper/ in config is WP_MEMORY_LIMIT not PHP Memory Limit (there is a typo, sorry) => https://www.screencast.com/t/88pK5QXpC
Also, please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv ones, also if you are using a child theme or cache plugin, deactivate them, clear all cache and try again.
Also, please check the console when you try to import a template, maybe you have some errors and provide some screenshots.
Thank you!
I want to import Pre-designed Templates but The cloud library isn’t working . It is always showing ‘Loading templates’.My website is new.So,I don’t have any extra plugins.My system status requirements is okay ..Please help me to solve this problem.
Website:
https://rockdalewoman.com/
My system status
Theme version 11.5.1
Theme database version 11.5.1
HTTP channel test wordpress
Installed demo Gossip PRO – demo ID: gossip_pro | install type: full
Server software LiteSpeed
PHP Version 7.4.30
post_max_size 1024M
max_execution_time 1500
max_input_vars 2000
SUHOSIN installed false
PHP extensions mbstring available
GD library available
WP version 6.0
WP Memory Limit 256 MB/request
WP_DEBUG False
Caching plugin No detected