-
Notifications
You must be signed in to change notification settings - Fork 48
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
Transforms now causing error when used with Redactor: finfo_file(FILENAME.jpg): failed to open stream: No such file or directory #47
Comments
What Craft version are you using? |
Sorry, that would have been helpful:
|
I can't reproduce the problem.
Assets Configuration:
I have tested it with the following:
Question:
|
Ok thanks @noxify - I'll dig deeper into it and try to get more info. |
Yes
They are. This was working before I updated from Craft 3.0.5 and Redactor 2.0.0.1 For what it's worth, both of these are in Matrix blocks. Not sure if that makes a difference but I'll keep testing to see if I can isolate the problem. |
Maybe you can give it a try with a fresh installation? |
Thanks for the help @noxify. I'll keep digging. |
Not sure this helps at all, but for some reason it's not getting the full file path for my transformed image, just the filename:
|
I had this issue just happen. What I figured out in my case, is that the selected image source had a smaller resolution/size than the transform selected, resulting in the file not being found. Seems like a bug that you could select a transform that doesn't exist... OR... craft should fall back on the next available transform. For example, if the transform 'full' is 1600px wide, but your source image is 800px, the source image should be served if 'full' is selected as the transform to insert. Or better yet, you shouldn't be able to select that transform when inserting the image. |
Thanks @jameskrill -- Unfortunately that's not it in my instance. I've tracked this down to a change in Specifically |
@andris-sevcenko Not sure it's worth the paper it's printed on, but adding the full path to the image fixed my problem. I changed line From:
To:
Without being more familiar with the codebase I'm not sure if there are repercussions to this. |
@page-8 - Is this then not a craftcms/cms issue? Btw. The path info was removed in this commit: |
@page-8
This will fail for remote Volumes, sadly. The codeblock you pasted above is there exactly because Craft sometimes needs to decide on the mimetype based just on the filename. It's curious that it's not working for you, though. Are you, by any chance, overriding or disabling the error handler component in your app configuration? That particular block of code relies on Yii's error handler converting errors to exceptions. |
That's what's really weird about this. The only place the exception is (seemingly) not getting caught is in the Redactor Transform. For example, I'm not getting an error on the Assets Listing page.
No, this is the only thing in my general config:
This is happening on my local environment using MAMP 4 and the Arcustech server where we have the site hosted. This is also happening for me on a fresh installation of Craft 3 with only the Redactor plugin installed and one field type called Per your comment @noxify , it seems like it's only happening with Redactor's use of this only when it comes to a transform. (as far as I can tell) |
Got it, I'll see if I can reproduce! |
See the issue, working on a fix |
Sweet, thanks @andris-sevcenko ! |
Issue:
Selecting an image and then a transform from the Redactor Modal Window produces a 500 Error
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: