-
Notifications
You must be signed in to change notification settings - Fork 44
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
Elements + Image Fields #45
Comments
I found and fixed an issue with Element default images when using the longhand syntax you're using there (like instead of
I can no longer reproduce any errors using the /example app: http://yo.bkwld.com/2U1Z3c1R1L1G. I'm hoping e150ed7 somehow does fix it for you. |
...Still the same. When I left the value empty, there is no error. |
Can you tell me which what version or commit (from composer.lock) you are running? |
|
And what commit hash? Just wanna make sure I'm working using the same everything. |
Here are the steps that leads to this error:
seo:
label: Tests
help: test
sections:
general:
test_image:
type: image
label: Test image
value: /img/test.png
|
@weotch were you able to reproduce the error? |
Guys, I've set up an image type field in my
config\decoy\elements.yaml
file:On the first save, the image was moved to
public\uploads\emelents
. Then... when the page refreshs, the file goes missing. Reload again, these 2 errors:and
I tried to find the issue myself, no success there. I think it's something in the
getReplacementImage()
atElements.php, ln 238
. It tests if the image has changed or something and deletes the old one. Maybe a false positive is making the code to delete the image around there.The text was updated successfully, but these errors were encountered: