nawawi / docket-cache

A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.
Other
48 stars 15 forks source link

Uncaught Error: Too few arguments to function nwdcx_throwable(), 1 #10

Closed khromov closed 3 years ago

khromov commented 3 years ago

When used with PHP8, I get the following when trying to change a setting on the Configuration page with plugin version 21.02.02

Fatal error: Uncaught Error: Too few arguments to function nwdcx_throwable(), 1 passed in /var/www/html/wp-content/plugins/docket-cache/includes/src/WpConfig.php on line 220 and exactly 2 expected
in /var/www/html/wp-content/plugins/docket-cache/includes/compat.php on line 208

Anropsstack:

    nwdcx_throwable()
    wp-content/plugins/docket-cache/includes/src/WpConfig.php:220
    Nawawi\D\WpConfig::has()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:273
    Nawawi\D\ReqAction::run_action()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:313
    Nawawi\D\ReqAction::parse_action()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:29
    Nawawi\D\ReqAction::Nawawi\D\{closure}()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-admin/admin.php:237
nawawi commented 3 years ago

Hi,

Thanks for the report. Seems like a missing argument for nwdcx_throwable at WpConfig::has method.

image

Will update the release as soon as possible.

Thanks.

nawawi commented 3 years ago

this issue has been fixed in version 21.02.03. thanks.