Using WordPress 4.4 and Download Manager Free 2.8.3
After upgrading a completely different plugin, the following warnings were displayed immediately after the completion of the upgrade:
Warning: array_shift() expects parameter 1 to be array, string given in /home/www/blahbalh/web/blog/wp-content/plugins/download-manager/wpdm-core.php on line 528
Warning: Invalid argument supplied for foreach() in /home/www/blahbalh/web/blog/wp-content/plugins/download-manager/wpdm-core.php on line 531
Here were the steps taken:
1. Go to Plugins ¦ Installed Plugins
2. Click on the link for displaying the plugins that can be upgraded (I forget the exact text), following: All (47) | Active (33) | Inactive (14)
(in this case, there was only one plugin to upgrade – it was NOT the download manager plugin)
3. Click on View details
4. Click on the link to upgrade that plugin
5. Give the wrong password to login
6. Return to the list of plugins to be upgraded
7. Check the box next to the plugin, then click on the link to upgrade the plugin
8. Provide the correct password to connect and execute the upgrade
9. After the upgrade is correctly performed, the above warning messages are displayed
I have idea why there should even be any calls to Download Manager code at this point, but that was evidently the case.