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

Re-enable Fileinfo extension check on installation (was 5.8-beta6 Error Uploading JPG to File Manager) #4559

Closed
ebell14 opened this issue Oct 24, 2016 · 12 comments
Labels
Type:Bug Existing functionality not performing as expected.
Milestone

Comments

@ebell14
Copy link

ebell14 commented Oct 24, 2016

Get this error below when attempting to upload jpg in 5.8. The image will appear w/ a generic thumbnail image...
image

Error:
{"error":{"type":"Whoops\Exception\ErrorException","message":"Class 'finfo' not found","file":"/home/wildlabs/public_html/thefuture/concrete/vendor/league/flysystem/src/Adapter/Local.php","line":307,"trace":[{"file":"/home/wildlabs/public_html/thefuture/concrete/vendor/league/flysystem/src/Adapter/Local.php","line":307,"function":null,"class":"Whoops\Exception\ErrorException","args":["Class 'finfo' not found"]}]},"errors":["Class 'finfo' not found"]}

@mlocati
Copy link
Contributor

mlocati commented Oct 25, 2016

You need the fileinfo PHP exception... @aembler what about adding a new check to the install page?

@mlocati
Copy link
Contributor

mlocati commented Oct 25, 2016

You need the fileinfo PHP exception... @aembler what about adding a new check to the install page?

It's extension, not exception

@ebell14
Copy link
Author

ebell14 commented Oct 25, 2016

Thanks @mlocati I will enable on the server

@ebell14 ebell14 closed this as completed Oct 25, 2016
@mlocati
Copy link
Contributor

mlocati commented Oct 25, 2016

You're welcome!

PS: I'd leave this issue open since we resolve this issue (by requiring fileinfo or find an alternative)

@ebell14 ebell14 reopened this Oct 25, 2016
@ebell14
Copy link
Author

ebell14 commented Oct 25, 2016

Very good I reopened it, thanks again!

@aembler aembler added Type:Bug Existing functionality not performing as expected. accepted:info needed labels Oct 27, 2016
@aembler aembler added this to the 8.0 milestone Oct 27, 2016
@aembler
Copy link
Member

aembler commented Oct 27, 2016

Hmm, this is strange – we used to have this as a requirement but we got rid of it when we forked Flysystem. I thought that getting back to Flysystem when we went PHP 5.5.9 and above would no longer require this but it looks like newer versions have brought back Fileinfo as a requirement ?

@Remo
Copy link
Contributor

Remo commented Oct 28, 2016

@aembler as far as I know that finfo fallback was never merged thephpleague/flysystem#275
UPDATE: Also this thephpleague/flysystem@8df6774

@aembler
Copy link
Member

aembler commented Oct 28, 2016

Heh. Well that makes it clear that they're probably not gonna be changing this any time soon ;)

@aembler
Copy link
Member

aembler commented Oct 28, 2016

Thanks for digging in. Thoughts? It's easy to re-enable the installation check for fileinfo but as you point out there are legitimate reasons for us to rather not make this a hard requirement. Do we know if hosts are still disabling this extension as much as they were 2 years ago? Not sure what we could do about it even if they were – I guess we could refork flysystem.

@aembler aembler changed the title 5.8-beta6 Error Uploading JPG to File Manager Re-enable Fileinfo extension check on installation (was 5.8-beta6 Error Uploading JPG to File Manager) Nov 7, 2016
@mhawke
Copy link

mhawke commented Nov 12, 2016

SiteGround and Arvixe have fileinfo enabled. TMD Hosting does not have it enabled by default on any of their PHP options right up to 7 (but you can turn it on in the cPanel... not ideal). I have one client left on GoDaddy and they do not have fileinfo turned on. A quick Goggle shows some other frameworks having issues with this as well on some of the major hosting companies.

@aembler
Copy link
Member

aembler commented Nov 14, 2016

Thanks for the update @mhawke . Since we can't really get around the requirement at the moment I'm just going to re-enable the installation check. I'd really like to NOT have this be a rrequirement, of course, but perhaps it doesn't matter because fileinfo isn't seen as having problems on versions past our new minimum requirement (5.5.9)

KorvinSzanto pushed a commit that referenced this issue Dec 12, 2016
Former-commit-id: e3bb21b
Former-commit-id: 2d64cbf4b7ca1f7d1528043aa7e340180e4acb61
@victornewman
Copy link

I would like to use file manager without this error and without touching any extention on my server. Concrete5 is easy to use, it's main idea on it, I shouldn't think about ftp or php or extentions or ini file or whatever.
It would be big plus to find a solution on file manager system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Existing functionality not performing as expected.
Projects
None yet
Development

No branches or pull requests

6 participants