Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: spiros on April 28, 2021, 05:07:03 AM

Title: Call to undefined function shell_exec
Post by: spiros on April 28, 2021, 05:07:03 AM
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
Title: Re: Call to undefined function shell_exec
Post by: braemt on November 28, 2021, 04:51:40 AM
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
Title: Re: Call to undefined function shell_exec
Post by: Shambles on November 28, 2021, 05:22:50 AM
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.
Title: Re: Call to undefined function shell_exec
Post by: braemt on November 28, 2021, 06:51:14 AM
This worked perfectly for me. Thanks!

Kind regards,
Braemt
Title: -
Post by: a10 on December 28, 2021, 02:57:07 PM
post wrong topic, see https://www.simplemachines.org/community/index.php?msg=4105925
Title: Re: Call to undefined function shell_exec
Post by: Steve on December 29, 2021, 09:16:27 AM
Please refer to a10's link when posting about this problem. Locking.