wordpress can not upload images

Started by gailclark80, February 05, 2021, 06:38:28 AM

Previous topic - Next topic

gailclark80

my WordPress running on CWP7, PHP 7.027

Today, my wordpress can't upload images suddenly, the error is as follows:

"Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels."


I open the apache error_log, the following error is prompted
AH00052: child pid 4822 exit signal Segmentation fault (11)

I have searched many methods and tried all of them, but none of them can solve the problem. I tried the following methods

1. Change these data in php.ini
post_max_size = 128M
upload_max_filesize = 128M
max_execution_time = 360
memory_limit = 1024M


2. Add this to functions.php of my theme
add_filter('wp_image_editors', function() {return array('WP_Image_Editor_GD' );} );

3. Add this to wp-includes/functions.php
function use_gd_editor($array) {
return array('WP_Image_Editor_GD', );
}
add_filter('wp_image_editors','use_gd_editor' );

4. install imagick module for PHP

How to solve this problem?

The strange thing is that in addition to this wordpress, I can't upload pictures on another wordpress on another VPS, and the same error occurs. This VPS is also running on CWP7

Thank you very much!

Sandeep

remove mod security and reinstall it again and test.

fabwebbr

Yesterday we went through this problem with many servers that use CWP. The solution was to do apache rebuild and use version 2.4.46

stichh

similar problem here.
I can upload images, but I can't save changes in the wordpress pages...

It started from one day to another, two or three days ago.

I have another wordpress installations in another servers and are working ok.

I pay for a one time solution, because the problem is very weird... Nitin is helping me.

jonatandirocca

Quote from: fabwebbr on February 05, 2021, 12:17:53 PM
Yesterday we went through this problem with many servers that use CWP. The solution was to do apache rebuild and use version 2.4.46

Hello! I have the same problem.
Does this solution of recompiling Apache to 2.4.46 work?

fabwebbr

Quote from: jonatandirocca on February 05, 2021, 05:29:00 PM
Quote from: fabwebbr on February 05, 2021, 12:17:53 PM
Yesterday we went through this problem with many servers that use CWP. The solution was to do apache rebuild and use version 2.4.46

Hello! I have the same problem.
Does this solution of recompiling Apache to 2.4.46 work?

Hello,
it sure did for me. There are already more than 8 servers with similar problems and that was the solution for everyone.

stichh

WOWWWWWW

THANK YOU SO MUCH!!  Just for curiosity... você é Br? Obrigado mesmo!!

My problem was a bit different but moving to apache 2.4.46 resolve my problem.

jonatandirocca

Thanks man!

I haven't slept for two days !


Thanks a lot.

stichh

Quote from: jonatandirocca on February 05, 2021, 06:38:01 PM
Thanks man!

I haven't slept for two days !


Thanks a lot.

you are not alone Jonatan... you are not alone... I believe that a lot people do not sleep in the last days with this problem. 

fabwebbr

Quote from: stichh on February 05, 2021, 06:37:02 PM
WOWWWWWW

THANK YOU SO MUCH!!  Just for curiosity... você é Br? Obrigado mesmo!!

My problem was a bit different but moving to apache 2.4.46 resolve my problem.

Sou BR sim.. ;)

Que bom que deu certo.

Quote from: jonatandirocca on February 05, 2021, 06:38:01 PM
Thanks man!

I haven't slept for two days !


Thanks a lot.

Glad I was able to collaborate so that we can sleep in peace all weekend.

dhwalin

Thank you so much. Updated to Apache version worked like a charm. God bless you.

ring_c

Updating Apache didn't work for me... :(
any other solution?

zainhosting

Update or rebuild the apache will resolve this issue.
Cheapest Web Hosting $4.99 Yearly - FREE SSL, Daily Backups, Wordpress Auto Installation, Cpanel and all other premium features.