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.
Thanks. The site is running WP 5.4.2 and WPDM 3.2.39
The topic ‘Fatal Error with WPDM\Admin\Menu\Packages::deleteFiles()’ is closed to new replies.