I was testing with php 8 (I know it is not "officially" compatible) and when a non-logged in member accesses any page of the forum for the first time, this is displayed:
Call to undefined function shell_exec()
When refreshed, the page loads OK.
The forum also works ok when someone is logged in.
In error log I see:
[28-Apr-2021 09:02:25 UTC] PHP Deprecated: Required parameter $data follows optional parameter $method in forum/Sources/Subs-Db-mysql.php on line 1456
[28-Apr-2021 09:01:42 UTC] PHP Deprecated: Required parameter $keys follows optional parameter $method in forum/Sources/Subs-Db-mysql.php on line 1456
[29-Jan-2021 23:28:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in forum/Sources/Subs.php on line 3846
I have a similar issue since the forced upgrade to PHP 8.0 by my host.
Call to undefined function shell_exec()
Is there a fix for this?
Kind regards,
Braemt
Your host will have disabled shell, shell_exec, system, passthru calls, etc.
Easiest way to eradicate the error message is to disable hostname lookups, via your ACP.
This worked perfectly for me. Thanks!
Kind regards,
Braemt
post wrong topic, see https://www.simplemachines.org/community/index.php?msg=4105925
Please refer to a10's link when posting about this problem. Locking.