Shell_exec error

I have a page that is supposed to show a video. It works fine on my local server. No errors popup. But when it is live I get the following shell_exec error

````<source src="" type="<br /><b>Warning</b>: shell_exec() has been disabled for security reasons in
`````<b>/home/mysite/kirby/toolkit/lib/system.php</b> on line <b>73</b><br />"></source></video>

I took a look at the kirby files referenced. But I'm still not sure how the mime type is not being recognized. Is this a problem on my server?

It is common practice for some hosting providers to disable this.

Is phpinfo() enabled ? If so, is shell_exec() mentioned in the ‘disable_functions’ ?

1 Like

Just what I was afraid of. Unfortunately I will have to contact my host. Thanks for your help!

It means that your PHP installation is missing the finfo extension and the mime_content_type function. Kirby tries both of them first to get the mime type before falling back to the shell command. Both are pretty standard. Please ask your provider to install them for you.

1 Like

Thanks for the reply!