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

Error: Undefined Fn mime_content_type() #289

Closed
5 of 8 tasks
vishalkrv opened this issue Mar 29, 2016 · 4 comments
Closed
5 of 8 tasks

Error: Undefined Fn mime_content_type() #289

vishalkrv opened this issue Mar 29, 2016 · 4 comments

Comments

@vishalkrv
Copy link

Hi,

I was successfully able to setup Koel on my server(centos-release-6-7.el6.centos.12.3.x86_64) however it fails to play a song and gives me error in my console as Failed to load resource: the server responded with a status of 500 (Internal Server Error) with a link. When I open the link in a different page, I get this error FatalErrorException in SongController.php line 23:
Call to undefined function App\Http\Controllers\API\mime_content_type()
. Similar error was found in laravel.log file as well. The file which I'm trying to play is a mp3.

Hey, thanks for contributing to Koel! To save time for both of us, please make sure these checkboxes are checked before submitting the issue:

  • You have read and followed closely the Wiki, Upgrade Guide, as well as Troubleshooting
  • The issue has not been reported before
  • This is not a "how to install on Windows" or "why is my npm messed up" question
  • You're a cool person

All checked? Now also make your issue

  • Is associated with a version. Or better yet, a commit.
  • Is as detailed as possible (ahem... OS, browser, steps to reproduce, maybe?)
  • Includes the error output if it's a bug/error report ("Whoops!" is not very helpful, you know)
  • Is in English, 因为我不说中文。
@phanan phanan added this to the 2.2 milestone Mar 29, 2016
@phanan
Copy link
Member

phanan commented Mar 29, 2016

mime_content_type() has been deprecated. I'll remove this in the next version of Koel. Meanwhile you can enable mime_magic in your php.ini file for the functionality.

@phanan phanan removed the [Type] Bug label Mar 29, 2016
@phanan phanan removed this from the 2.2 milestone Mar 29, 2016
@phanan
Copy link
Member

phanan commented Mar 29, 2016

Oh, actually the function is not deprecated anymore, and is still well supported by PHP 7. I'll suggest you to look at your PHP installation then.

@phanan phanan closed this as completed Mar 29, 2016
@thallian
Copy link

If this is still a concern I'd take a look if you have the php fileinfo shared extension installed (the mime_content_type function lives there).

@vishalkrv
Copy link
Author

Still in talks my hosting provider, mime_content_type and fileinfo both are disabled on my server.

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

3 participants