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

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

A B
Participant

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.

#171119

Humayon
Spectator

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

#171135

A B
Participant

Thanks. The site is running WP 5.4.2 and WPDM 3.2.39

#171137

Humayon
Spectator

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.