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

PHP allow_url_fopen flag [off] makes plugin fail silently #325

Open
vinerz opened this issue May 25, 2019 · 1 comment
Open

PHP allow_url_fopen flag [off] makes plugin fail silently #325

vinerz opened this issue May 25, 2019 · 1 comment

Comments

@vinerz
Copy link

vinerz commented May 25, 2019

We just did a major platform upgrade recently and S3 Uploads stopped working:

Unable to create directory. Is its parent directory writable by the server?

I was almost giving up tonight when I had no more hair to rip off my head, but in a desperate move I noticed the STREAM_IS_URL flag at stream_wrapper_register:

stream_wrapper_register($protocol, get_called_class(), STREAM_IS_URL);

This, of course, clashes with our php.ini directive which disallows such requests.
The thing is: PHP fails completely silent when this is turned off, so I couldn't find the root cause fast enough.

I just enabled allow_url_fopen and it is now back working as it should.

It would be great to insert this as a known caveat at the README for future developers.

Thanks for this amazing plugin!

@Preen
Copy link

Preen commented Sep 19, 2019

Thanks for this!!

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

2 participants