-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generation fails using {{ glide:asset_field }} tag pair, produces "Unable to copy file from source:// to cache://" error #110
Comments
Same issue for me on the following setup...
|
This workaround allowed me to build and copied all my images across :) Be sure to add it after the |
Just wanted to give this a little bump and mention I've also been having this issue. I've been unable to SSG sites and have been hosting them with caching set to |
This also affects undocumented I can confirm that workaround posted in #91, adding this code Generator.php after line with config([
'statamic.assets.image_manipulation.cache' => true,
'statamic.assets.image_manipulation.cache_path' => $this->config['destination'].'/'.$directory,
]); |
I've managed to get this working by setting glide.override to false in the ssg.php config file. Not sure how long that setting has been there, but I think it was added specifically to solve this issue.
Then also remember to add your image directory to the "copy" array
|
Reproducible repository (branch:
ssg-glide-cache-bug
):https://github.com/ncla/statamic-bugs/tree/ssg-glide-cache-bug
To reproduce, simply have an asset field, and have such templating:
Then run commands in such order:
Which will produce the following output:
If I remove
try .. catch
in Generate class over heressg/src/Generator.php
Lines 280 to 291 in d5664b7
From quick glance (looking at the exceptions posted lower) it seems the culprit might be the Glide cache recent changes that were implemented, as the failing code in Glide.php tag is here https://github.com/statamic/cms/blob/1ef7efc0de680cdc82655a20ac54cae11c579fe7/src/Tags/Glide.php#L112
Using normal glide tag without pair like this..
{{ glide:assets_field fit="max" }}
..does not trigger that part of the code, and does not fail the SSG generation.
Stacktraces, three exceptions:
Support details:
This is separate, organized, continuation issue of #91 as it was getting a bit messy there.
The text was updated successfully, but these errors were encountered: