• Resolved fromoz

    (@fromoz)


    I upgraded to 7.8.5 today on up-to-date WordPress installation. Later users reported to me that they could not upload (small, not at all large) media files. I checked file types etc. etc. but image file uploading will not work – it fails with a 500 (internal server error) error.

    In WP Cerber Traffic Inspector (and in Apache logs) I see a 500 error:

    https://xxxxx.xxx/wp-admin/async-upload.php
    POST HTTP 500 Internal Server Error 291 ms
    Referrer
    https://xxxxx.xxx/wp-admin/upload.php

    If I deactivate the WP Cerber plugin media file uploads work fine immediately.

    Nothing else has been changed on the server and given that image file uploads via media manager work fine after deactivating WP Cerber obviously it would point to the upgrade.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author gioni

    (@gioni)

    Please enable a “PHP mbstring” extension on the website. You can do that in your hosting control panel.

    Thread Starter fromoz

    (@fromoz)

    Hi – thanks for follow up. I have enabled the PHP mbstring module on our server and it is OK now. The strange thing is that the server, and WP Cerber, have both been happily running for months without mbstring being enabled. It only caused a problem now with this new version.

    Also, fortuitously, installing mbstring also solved a problem I had running the WP Cerber Site Integrity Security Scanner (that I hadn’t got round to investigating) which always used used to crash running a scan. Obviously it also needs the mbstring module.

    It might be of benefit to put a list of required PHP modules in the WP Cerber installation documents to ensure the server is fully up to spec.

    Glad WP Cerber is running OK again — can’t consider having the WordPress site running without it 🙂

    Plugin Author gioni

    (@gioni)

    Yes, sure there will be a precheck and an admin notification if mbstring is not loaded.

    Thread Starter fromoz

    (@fromoz)

    It may still be the case that mbstring is not actually loaded on the web server. That was the situation on my CentOS server because I am using PHP 7.x and the default PHP on CentOS is still 5.x. When installing PHP 7.x the various modules have to be specially found, installed and loaded. I thought mbstring was active – it had been downloaded and installed – but it wasn’t.

    Iron clad way to check if mbstring is actually active is to write a temp phpinfo page

    https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

    and double-check that mbstring is loaded. Of course don’t leave the info page on your WordPress site as it reveals a lot of things.

    HTH.

    Plugin Author gioni

    (@gioni)

    @satheeshraj Check the server error log.

    Enabling mbstring did the trick, Ubuntu:

    `apt-get install php-mbstring

    Like others have mentioned, this has been running flawlessly w/o this extension and out of the blue have me issues.

    Anyhow, it’s fixed now, thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upgraded to 7.8.5 – now media file uploads fail’ is closed to new replies.