- NewsmagRequirements for Newsmag
FYI: A bit late in my response but I figured out the problem and hopefully this could help others with a similar problem:
Change Image Editor Library Used by WordPress
WordPress runs on PHP which uses two modules to handle images. These modules are called GD Library and Imagick. WordPress may use either one of them depending on which one is available.
However, Imagick is known to often run into memory issues causing the HTTP error during image uploads. To fix this, you can make the GD Library your default image editor.
You can do this by simply adding this code to your theme’s functions.php file or a site-specific plugin.
function wpb_image_editor_default_to_gd( $editors ) {
$gd_editor = ‘WP_Image_Editor_GD’;
$editors = array_diff( $editors, array( $gd_editor ) );
array_unshift( $editors, $gd_editor );
return $editors;
}
add_filter( ‘wp_image_editors’, ‘wpb_image_editor_default_to_gd’ );
$editors = array_diff( $editors, array( $gd_editor ) );
array_unshift( $editors, $gd_editor );
return $editors;
}
add_filter( ‘wp_image_editors’, ‘wpb_image_editor_default_to_gd’ );
After adding this code, you can retry uploading files using the media uploader. If this doesn’t solve the issue, then you can remove this code and try other methods described in this article.
Using The .htaccess Method
This method allows you to control how Imagick uses server resources. Many shared hosting providers limit Imagick’s ability to use multiple threads for faster image processing. However, this would result in you seeing the HTTP error when uploading images.
An easy fix is to add the following code in your .htaccess file:
1
SetEnv MAGICK_THREAD_LIMIT 1
This code simply limits Imagick to use a single thread to process images.
We hope this article helped you fix the HTTP error during media upload in WordPress. You may also want to see our WordPress troubleshooting guide as well as the ultimate list of most common WordPress errors and how to fix them.
-
This reply was modified 7 years by
Kristo Noir.
I have created an item in Cloud Templates,
Specifically “Single Post Template 40 – Fast News”, and in the “Used On” column there was a memory problem, then I wanted to modify it by editing it and I could not enter the Cloud templates area anymore.
Then I uninstalled everything and installed again but I could not access “Cloud Templates”
I tried deleting from the database but I do not get it, how can I remove it from the database?
How to increase memory allocated to php
-
This reply was modified 7 years by
Ahmedlam.
Hi
Any help is appreciated
I have tried to increase the memory limit of my website to 256MB by putting this code “define( ‘WP_MEMORY_LIMIT’ , ‘256M’) on wp-config.php, but it didn’t work at all.
I have two questions please:
1-Is Hostgator allows this to work ??
2-What’s your recommendation to solve my problem?
Thanks
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Also please check the php version to be 7/7.1/7.2
Please make sure that this is not a plugin conflict, please deactivate all plugins and let only those two and see if this is still happens.
Thank you!
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Also please check the php version to be 7/7.1/7.2
Thank you for your understanding!
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Thank you for your understanding!
Hi,
That is quite an an old theme version from which you are updating. Here you can find a changelog for each theme update, to see what has been modified, new features etc
– https://themeforest.net/item/newspaper/5489609 (bottom of the page).
Update guide if necessary here – https://forum.tagdiv.com/how-to-update-the-theme-2/
That error you mention is in most cases related to insufficient memory
– https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
The theme requirements guide has been updated as well, please check it carefully and if necessary ask your hosting provider to increase the values of the parameters mentioned in it
– https://forum.tagdiv.com/requirements-for-newspaper/
For the WP memory we recommend a value of 256M.
After the update, deactivate/delete all the old theme plugins and install the new ones from the theme package plugins folder.
As a side note, the tagDiv composer will be automatically installed and activated after you update the theme. This composer could interfere with specific WPBakery elements or layouts. If that is the case, please disable it.
Also update WPBakery to the latest version if you use it (theme package contains version 5.6)
– https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
The option to edit pages with WPBakery should appear same as before
– https://www.screencast.com/t/ag8uBzu2Hzx
– https://www.screencast.com/t/JhLAoUdzm
After you update clear all the website caches, CDN, browser cache. Let us know if you have problems.
Thanks
Since i updated the theme, I’ve been experiencing this error on my site:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /home/financial/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 1585
It doesn’t always happen.
Any ideas why or how to fix?
Thanks
I have this error when open “Editor Content”
Uncaught TypeError: Cannot read property ‘activeEditor’ of undefined
at window.loadIframe (wpeditor.php?)
at onload (wpeditor.php)
In file: wp-config.pho I change this value:
-> define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
Hi,
Could be a matter of exhausted wp-memory, try increasing it to 256M which would be enough. You can increase it in the wp-config file for example
– https://forum.tagdiv.com/requirements-for-newspaper/
Then check if the same happens.
Thanks
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Please add this code in the .htaccess , file at the end of the file:
<IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule>
Also please make sure that you do not have a plugin conflict, please deactivate all non theme plugins, clear all cache and try again.
If there is still a problem, please provide some more details and some screenshots.
Thank you for your understanding!
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Thank you for your understanding!
Hello,
Usually, this is fixed by increasing the WP memory limit:
https://forum.tagdiv.com/requirements-for-newspaper/
Please set the wp memory to 256mb in wp-config.php
Thank you!
Bogdan B
Hi,
In most cases 500 errors are caused by low WP-memory. As plugins are installed the memory will eventually get exhausted, most hosting providers are limiting it to 40M by default.
We recommend a value of 256M which would be decent for most websites. Check what is the value of the WP-memory in the theme system status panel. If needed increase it, or ask the hosting provider to increase it for you if possible
– https://forum.tagdiv.com/requirements-for-newspaper/
Check the other parameters mentioned in the guide as well.
Thank you for your understanding!
Hi,
So this happens only when activating the revolution slider plugin? Try deleting it and reinstall it. Maybe the requirements of the plugin are not met
– https://www.themepunch.com/revslider-se-doc/requirements-and-recommendations/
Try increasing the memory to 256M if possible – https://forum.tagdiv.com/requirements-for-newspaper/
Also try and use this version, the latest version has some issues with Gutenberg
– http://cdn.tagdiv.com/wp-content/uploads/2019/02/revslider-1.zip
Thanks
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Please add this code in the .htaccess , file at the end of the file:
<IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule>
If there is still a problem, please provide some more details and some screenshots.
Thank you for your understanding!
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Please add this code in the .htaccess , file at the end of the file:
<IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule>
If there is still a problem, please provide some more details and some screenshots.
Thank you for your understanding!
Hello,
In my blog the images often do not appear. I have tried to implement several more unsuccessful solutions. An error that crawled is the use of memory by wp-db, however it is set to 256MB and I do not know if it is the cause of the problem.
What could be happening and how to solve it?
Take the test several times on the blog, sometime the images will not appear again.
Images
image not load
image not load 2
My website:
https://techenter.com.br
note:
note above the word “often” which means that it happens frequently, but not always. So please, if I opened the website and the images appear try again until the error happens. I need to resolve on an urgent basis because of the fact that the disclosure starts. Do not respond by saying that it is normal because it is not.
Please, help.
Hi,
Yes the wp memory wasn’t enough for the themes and plugins that you have.
You’ll need to login with FTP and remove the theme from the host or increase the wp memory , after that you can install it again, but note that you need to have the requirements like in our quid if you want to work the theme properly -> https://forum.tagdiv.com/requirements-for-newspaper/
Thank you!
Hi,
Please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
WP_MEMORY_LIMIT try to increase it at least to 256mb.
Please add this code in the .htaccess , file at the end of the file:
<IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule>
If there is still a problem, please provide some more details and some screenshots.
Thank you for your understanding!
This error occured after I tried to install another theme.
My website doesn’t require much memory and the current space is sufficient for me. This problem happened only after change of theme.
Please help me revert to old settings/ theme so I don’t get the error 500.
Hi,
So this just started happening? That error would mean that there is not enough memory, we recommend a value of 256M which would be enough for most websites. Similar cases where the same 500 error was displayed, were solved by increasing the memory.
– https://forum.tagdiv.com/requirements-for-newspaper/
Thank you.
Hi,
This behavior happens due when the system status parameters are not correctly increased according to our documentation from here -> https://forum.tagdiv.com/requirements-for-newspaper/ Probably, your PHP memory has exhausted and that’s why you cannot save or make anything. Try my advice, remove all of the untested plugins, clear all the caches, purge CDN files and check the results. If the problem persists, please let us know.
Thanks for your understanding!
I run system status and 3 yellow alerts showed me the following:
1. max_execution_time = 30 – the execution time should be bigger than 60 if you plan to use the demos.
2. max_input_vars = 1000 – the max_input_vars should be bigger than 2000, otherwise it can cause incomplete saves in the menu panel in WordPress.
3. WP Memory Limit = 40 MB/request – We recommend setting memory to at least 128MB. The theme is well tested with a 40MB/request limit, but if you are using multiple plugins that may not be enough.
My domain is hosted at Site5 and I requested them to change those values for me. They said to me they did it so (please check: http://tonka3d.com/blog/phpinfo.php), but the 3 yellow alerts are still showing.
Is there anything my host still can change to correct it?