Skip to content
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

Failed to open stream: No such file or directory #4

Open
medoingthings opened this issue May 9, 2016 · 0 comments
Open

Failed to open stream: No such file or directory #4

medoingthings opened this issue May 9, 2016 · 0 comments

Comments

@medoingthings
Copy link
Contributor

medoingthings commented May 9, 2016

First of all: Awesome plugin, thanks! Really adds a nice touch.

I noticed the following issue though:

getimagesize(/assets/images/image-example.jpg): failed to open stream: No such file or directory

This happens when the URL defined in the Asset Source doesn’t contain the baseUrl.

So this URL would work: http://xyz.com/assets/images/
But this wouldn’t: /assets/images/

So the fix is to add the baseUrl to the config and add it to the assets path like this: {baseUrl}assets/images/.

But it would be cool if this wouldn’t be necessary, even with a Multi-Environment-Config.

MattWilcox added a commit to MattWilcox/craft-image-color that referenced this issue May 23, 2016
keithmancuso#4

Failed to open stream: No such file or directory

Uses the siteUrl which is already part of the config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant