– Make sure everything is updated, including your theme
– Make sure your PHP version is 5.6 and up
Once above is verified and the issue continues, can you tell us at least one plugin that’s causing this error? We can test it on our end and see if it’s causing this error in our WordPress.
Everything is updated. A couple of the plugins are:
tagDiv Composer
Wordfence Security
UpdraftPlus – Backup/Restore
Thank you.
Which theme and version do you have?
We’ve used Newspaper theme by tagDiv without any image issues. And also use UpdraftPlus plugin on many sites without image issues.
So something specific to your site/hosting is causing this.
It would be a good idea to enable debugging to see if any relevant errors show up. You can add the following code to your wp-config.php file, you’ll see this in your file:
define( 'WP_DEBUG', false );
Delete that, and paste this:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
After this is saved. Try uploading/editing images, you want to get that error to show up. After that, check wp-content folder for debug.log. If there are any errors, they will be logged there.
Activate only 1 plugin that causes errors. Keep other plugins disabled for this test. It’ll be easier to narrow it down to a specific issue.
Thank you for the message. I changed that bit you sent and disabled some plugins and now the whole site crashed. https://sasquatters.com/
https://pastebin.com/2JUzrC2m
-
This reply was modified 6 years, 12 months ago by
blahblah.
-
This reply was modified 6 years, 12 months ago by
blahblah.
So strange!
So when I added that code you gave me I mistakenly deleted
//Increase memory allocated to PHP
define('WP_MEMORY_LIMIT', '512M');
and that botched the whole site and I am unsure why. With anything other than 512 it wouldn’t load.
Then I tried disabling all of the plugins that were causing the issue and went to edit a photo and everything is working now.
If your site is crashing without 512M limit, that means it’s running out of memory. By default WP use 40M, but plugins and traffic can increase memory usage until it begins crashing.
Is image rotation working?
Image rotation is working now for some reason.
OK great. It could have been cache, or some settings that got changed activating/deactivating plugins.
Make sure to turn off debugging, so your debug.log doesn’t get big.