• Resolved alan-j

    (@alan-j)


    With version 1.10.3, I get a 500 error when doing certain actions on the media library (especially ‘delete permanently’).

    The server log says this:

    [Thu Feb 25 23:26:10.473468 2021] [proxy_fcgi:error] [pid 31094:tid 139983050503936] [client 108.162.245.113:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function FooGallery_Thumb_Engine_Default::delete_cache_folder_for_attachment(), 1 passed in /home/REDACTED/REDACTED/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/REDACTED/REDACTED/wp-content/plugins/foogallery/includes/thumbs/default/class-foogallery-thumb-engine-default.php:190\nStack trace:\n#0 /home/REDACTED/REDACTED/wp-includes/class-wp-hook.php(286): FooGallery_Thumb_Engine_Default->delete_cache_folder_for_attachment()\n#1 /home/REDACTED/REDACTED/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters()\n#2 /home/REDACTED/REDACTED/wp-includes/plugin.php(453): WP_Hook->do_action()\n#3 /home/REDACTED/REDACTED/wp-includes/post.php(5106): do_action()\n#4 /home/REDACTED/REDACTED/wp-admin/post.php(266): wp_delete_attachment()\n#5 {main}\n thrown in /home/REDACTED/REDACTED/wp-content/pl…’, referer: https://REDACTED/wp-admin/upload.php`

    Using PHP 7.4, WordPress 4.9

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @alan-j

    thanks for the log and info – we will investigate and get back to you

    Plugin Author bradvin

    (@bradvin)

    hi @alan-j

    Looking at the WP code, it seems that the 2nd parameter which is causing the problem for you was only introduced in WP 5.5.

    This means that in your setup using WP 4.9 the 2nd parameter is not included and is causing the error.

    I only use the first parameter, so I have updated the code to only use 1 parameter. This will now work in WP 4.9 and the latest 5.6. This update will be included in the next release.

    I strongly recommend that you update to 5.6 for obvious reasons

    boulik

    (@boulik)

    Hello @bradvin

    When is planned release new version of plugin?

    I’m using PHP 7.3.6 and WordPress 5.3.6.

    thank you

    Plugin Author bradvin

    (@bradvin)

    @boulik

    Are you also getting an error? If so please create a new ticket with details from the PHP error log.

    Hello @bradvin

    Sorry for my late answer.
    I can say that after applying the patch, I did not get any error( about 3 weeks).
    Thank you for the fast and accurate patch.
    ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Site crashes with 500 error’ is closed to new replies.