Fatal Error with WPDM\Admin\Menu\Packages::deleteFiles()

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Apr 10, 2022 at 7:15 pm
#171111
Participant
A B
OP

When trying to delete a post, even one with no attached files, we get an uncaught error:

Uncaught ArgumentCountError: Too few arguments to function WPDM\Admin\Menu\Packages::deleteFiles(), 1 passed in /code/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /code/wp-content/plugins/download-manager/src/Admin/Menu/Packages.php:92

It seems that the second argument in the deleteFiles function needs a default value to avoid this error? Looks like the post ID is being passed by not the post object.

Apr 11, 2022 at 7:52 am
#171119
Spectator
Humayon

Hi @abmg,

Thank you for providing us with the error details.

However, Can you please let us know which version of WPDM and WordPress you are using?

I am looking forward to hearing back from you.

Regards

Apr 11, 2022 at 12:13 pm
#171135
Participant
A B
OP

Thanks. The site is running WP 5.4.2 and WPDM 3.2.39

Apr 11, 2022 at 1:45 pm
#171137
Spectator
Humayon

Hello @abmg,

It seems you are using an older version of WordPress.

Please update your WordPress version which should resolve the issue.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

The topic "Fatal Error with WPDM\Admin\Menu\Packages::deleteFiles()" is closed to new replies.