Bug #21950
closedAvatar uploads during registration are not working
0%
Description
This is very likely because of S3 incompatibility:
[30-Jan-2025 22:39:42 UTC] PHP Warning: Error executing "HeadObject" on "https://s3.amazonaws.com/files.commons.gc.cuny.edu/wp-content/blogs.dir/1/files/signup-avatars/1756749463"; AWS HTTP error: Client error: `HEAD https://s3.amazonaws.com/files.commons.gc.cuny.edu/wp-content/blogs.dir/1/files/signup-avatars/1756749463` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: 1BZ2KGYSQMRW4QZH) - in /var/www/webroot/ROOT/wp-content/plugins/s3-uploads/inc/class-stream-wrapper.php on line 980
Updated by Boone Gorges 3 months ago
- Status changed from New to Resolved
Fixed in https://github.com/cuny-academic-commons/cac/commit/f05e839db8a287d42755dae53fc8010f9fa05e68. rename()
doesn't work across streams, and the s3-uploads stream wrapper did not have a drop-in replacement for it. Instead, I switched to the use of copy()
and unlink()
, which s3-uploads handles properly.