• Hooks::addFilter('upload_size_limit', self::class, 'filterUploadSizeLimit', 999, 1);

    at

    wp-rollback/vendor/wp-rollback/shared-core/src/Rollbacks/ServiceProvider.php:156

    Crashes with a silent critical error when the upload quota is low
    WP is 6.9.4 multisite

    • This topic was modified 14 hours, 16 minutes ago by tyaty1.
    • This topic was modified 14 hours, 15 minutes ago by tyaty1.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hey @tyaty1

    Thanks for reporting this. I’ll investigate, and have a fix out in the next release if warrented.

    Thread Starter tyaty1

    (@tyaty1)

    I temporarily fixed it with this:

    add_filter( 'upload_size_limit', fn( $size ) => is_numeric( $size ) ? (int) $size : $size, 998 );


    It was apparently a silent TypeError when the $size argument

    public static function filterUploadSizeLimit($size): int

    is not an integer.

    • This reply was modified 1 hour, 44 minutes ago by tyaty1.
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.