Not 100% what it was but
1) I have installed the update for WPDM which did not help immediately, but
2) I spotted a misconfiguration at my site, namely — site could not issue a HTTP request to itself via the canonical name because of wrong entry in /etc/hosts.
3) Resolving p.2 did not immediately help either, but once I have reinstalled both WPDM Pro and S3 plugin — things got back working somehow.
So I’m assuming the key problem was the issue with WP calling back to itself. If this is the case — perhaps more verbose diagnostics could be beneficial for both users and the support team. I guess this ticket can be marked as resolved now. Thank you for your help.
Hello Nayeem
I have just tried deactivating all the plugins except WPDM and WPDM S3 plugin.
The problem still persists with such setup.
Also tried switching to theme “Twenty five” while all the plugins were deactivated — and the error persists.
You can conduct the same experiment, just don’t take too long while the site is in invalid state.
Hi Webmaster Cioindex, Hi Tahasin,
could you share what was the solution once you find one? I’m having the same problem, I’m not sure which component was upgraded, was it WPDM or WP itself, but things got broken after some upgrade.
Hi Nayeem
Is there any common recipe to share with the public on how to fix this?
I’m having this issue too. I tried reinstalling WPDM and S3 plugin, with no luck. Very disappointing.
The web server log has the following when I attempt to click the “Select from Amazon S3” button in the admin console:
`
[Wed Jan 29 15:36:30.672916 2025] [php:warn] [pid 3605] [client 192.168.49.100:34896] PHP Warning: foreach() argument must be of type array|object, null given in /var/www/——–web-wp/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 214, referer: https://——-.com/wp-admin/index.php?s3browser=1
[Wed Jan 29 15:36:30.673001 2025] [php:warn] [pid 3605] [client 192.168.49.100:34896] PHP Warning: Undefined array key “Owner” in /var/www/——–web-wp/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 241, referer: https://——-.com/wp-admin/index.php?s3browser=1
[Wed Jan 29 15:36:30.673013 2025] [php:warn] [pid 3605] [client 192.168.49.100:34896] PHP Warning: Trying to access array offset on null in /var/www/——–web-wp/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 241, referer: https://——-.com/wp-admin/index.php?s3browser=1
[Wed Jan 29 15:36:30.673597 2025] [php:warn] [pid 3605] [client 192.168.49.100:34896] PHP Warning: Undefined array key “Owner” in /var/www/——–web-wp/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 241, referer: https://——-.com/wp-admin/index.php?s3browser=1
[Wed Jan 29 15:36:30.673622 2025] [php:warn] [pid 3605] [client 192.168.49.100:34896] PHP Warning: Trying to access array offset on null in /var/www/——–web-wp/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 241, referer: https://——-.com/wp-admin/index.php?s3browser=1
`
Something went off, I don’t know what exactly. It was working okay for me for month and a half. Maybe something was upgraded. (WPDM itself?)
(deleted)