chrisf
April 4, 2024, 2:34pm
1
Greetings. I’m having issues with a few php functions.
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function shell_exec()
And…
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ini_set()
Neither are disabled, and this message is not the disabled function message normally displayed when they are. This appears like they don’t exist?
I am using a custom php-fpm template for 8.2
Thanks for any help!
chrisf
April 4, 2024, 3:12pm
2
Neither are listed in disabled functions, master or local.
I’m lost. Hope for help
Hi @chrisf ,
Regarding the screenshot of phpinfo, are you sure the version is the same that you are using on your site? As it has no sense I’m just trying to guess.
Try to search for shell_exec
in all the php conf files:
grep -r shell_exec /etc/php/
1 Like
chrisf
April 6, 2024, 6:57pm
4
Thank you, I resolved the issue.
I had made a custom php fpm template and had override admin value for disabled functions.
In php info this change was reflected. However, it still remained disabled from the main ini file. Which, is wrong from everything I’ve read online.
Either way, resolved. Thank you
1 Like
eris
April 7, 2024, 1:18pm
5
.ini goes above the template files and disabled functions can’t be overwritten…
2 Likes