Issues After Upgrading to 5.0.10
-
After upgrading to 5.0.10 on a Multi-site network, all downloads on all sites returned an “Access Denied, , go to Home Page” error. Went to edit the download file but got this message, “You’re trying to serve files from your server that are not in the enabled allowed paths. Please contact the network administrator to add or enable the path(s) for your website.” When trying to check the approved download path, I do not see the Download Monitor > Settings > Advanced > Add download paths on the individual site(s); nor at the network level.
After rolling back to 5.0.9, all sites work except for one, which is displaying this error, There has been a critical error on this website. Learn more about troubleshooting WordPress.” on the DLM Download Paths tab under the Sites >> Edit at the network level.
Also received this PHP error in the server log, 2024/09/25 20:07:08 [error] 55665#55665: *433012 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /www/xxx_329/public/wp-content/plugins/download-monitor/src/Admin/DownloadPaths/class-dlm-downloads-path-table.php:300
And this one, which is specific to the site with the critical error, 2024/09/25 22:23:27 [error] 55666#55666: *459416 FastCGI sent in stderr: “PHP message: PHP Warning: foreach() argument must be of type array|object, string given in /www/xxx_329/public/wp-content/plugins/download-monitor/src/Admin/WritePanels.php on line 418” while reading upstream, client: xx.xx.xx.xx, server: xxxwp.org, request: “GET /wp-admin/post.php?post=6983&action=edit HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-xxx.sock:”, host: “xxxwp.org:40739”, referrer: “https://xxxwp.org/wp-admin/edit.php?post_type=dlm_download”
Running WP 6.2.2 on a Nginx web server.
- You must be logged in to reply to this topic.