• Resolved gloomferret

    (@gloomferret)


    I recently upgraded a site to php8.0 and when trying to upload images (both to media library and into posts) was getting the error:

    The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

    The images were all within limits and of a small filesize.

    As part of troubleshooting I deactivated Imsanity and no longer got this message.

    On reactivating the error resumed. I’ve had no choice but to stop using Imsanity for now on this site. I have a site using the same theme with the same settings on 7.4 with Imsanity (and on the same host, Cloudways with the same php settings) and there are no issues.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi gloomferret,

    We have been using Imsanity with PHP 8.0 for a while now and haven’t come across any issues like this. Could you check your PHP error logs to see what it shows?

    Thread Starter gloomferret

    (@gloomferret)

    This seems to be the error happening when I try to upload via Media Library (some user info X’d out) :

    
    PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + int in /home/xxx.cloudwaysapps.com/xxx/public_html/wp-content/plugins/imsanity/imsanity.php:232\nStack trace:\n#0 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-includes/class-wp-hook.php(310): imsanity_handle_upload()\n#1 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-admin/includes/file.php(1043): apply_filters()\n#3 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-admin/includes/file.php(1075): _wp_handle_upload()\n#4 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-admin/includes/media.php(303): wp_handle_upload()\n#5 /home/xxx.cloudwaysapps.com/xxx/public_html/wp-admin/async-upload.php(114): media_handle_upload()\n#6 {main}\n  thrown in /home/xxx.cloudwaysapps.com/xxx/public_html/wp-content/plugins/imsanity/imsanity.php on line 232', referer: https://xxx.com/wp-admin/media-new.php
    Plugin Support adamewww

    (@adamewww)

    Ahhh, yes, we saw this unsupported operand types one before. Have a look at this topic about this: https://www.ads-software.com/support/topic/got-an-fatal-error/

    In short, it’s not something that has come up in any of our testing, but we will keep testing things to see if we can find out anything for the next update that may address this.

    Plugin Support adamewww

    (@adamewww)

    Oh man, I’m sorry, apparently after that other post, Shane already built a fix for this! Can you download and try our github version and, if it fixes it for you, let us know and we can fully release it: https://github.com/nosilver4u/imsanity

    Thread Starter gloomferret

    (@gloomferret)

    Yes, that solves the error! All good.
    Thanks for all the work on the plugin. Appreciated.

    Plugin Support adamewww

    (@adamewww)

    Fantastic! I’m glad that was it!

    Take care and stay safe out there!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Possible conflict with php 8’ is closed to new replies.