Project

General

Profile

Actions

Bug #21950

closed

Avatar uploads during registration are not working

Added by Boone Gorges 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
S3 Uploads
Target version:
Start date:
2025-01-30
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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

Actions #1

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.

Actions

Also available in: Atom PDF