Closed mauricioarangoosorio closed 2 years ago
If you open your browser’s Network tab and reload the page, do you see any failed image requests?
As soon as I open the 'entries' page, I see this errors (I have a column for thumbs):
GEThttps://slayed.local/office/actions/assets/generate-transform?transformId=311&v=1648075727
[HTTP/2 500 Internal Server Error 1069ms]
Image Transform Error – craft\errors\ImageTransformException
Failed to generate transform with id of 311.
And then inside an entry page I see a similar error.
When I try to add a new image, this is what I get (not sure why PRIMARY_SITE_URL) is there in the middle of the URL:
GET https://slayed.local/office/PRIMARY_SITE_URL/assets/uploads/Default/test-textile-2-4/_171x240_crop_center-center_none/13.jpg
[HTTP/2 404 Not Found 867ms]
And yes, I do see a failed image request:
GET | https://slayed.local/office/actions/assets/generate-transform?transformId=313&v=1648075727
Status 500
Thank for looking into this!!
Those could be related. Sounds like your filesystem’s base URL begins with PRIMARY_SITE_URL
.
If you want to set it to an environment variable, it must begin with $
, and cannot contain a trailing path afterward (e.g. $PRIMARY_SITE_URL/assets/uploads
would not be allowed).
Otherwise you can set it to an alias, which can contain a subpath.
What is strange is that I have the $
in the filesystem base URL.
As I said,
If you want to set it to an environment variable, it must begin with
$
, and cannot contain a trailing path afterward (e.g.$PRIMARY_SITE_URL/assets/uploads
would not be allowed).
Sorry, need to find my glasses at this time of the day. Ok, thanks for the patience explaining this to me. I'll work on it.
Going to close this for now, but let me know if you continue experiencing this issue after fixing the base filesystem URL.
Brandon, your input solved my issue. Thank you so much!
Glad to hear that!
What happened?
Description
When adding an image to en entry, it looks like it has uploaded. But then the preview thumb is empty. And in the Assets manager, there's a record of the entry but when I clicking on the image it shows a black rectangle only.
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
Craft Solo 4.0.0-beta.4
PHP version
8.1.3
Operating system and version
Linux 5.10.76-linuxkit
Database type and version
MySQL 8.0.26
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.0-16)
Installed plugins and versions