News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Call to undefined function shell_exec

Started by spiros, April 28, 2021, 05:07:03 AM

Previous topic - Next topic

spiros

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

braemt

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

Shambles

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.

braemt

This worked perfectly for me. Thanks!

Kind regards,
Braemt

a10

2.0.19, php 8.0.30, MariaDB 10.6.18. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.
Stand with 🇺🇦

Steve

Please refer to a10's link when posting about this problem. Locking.
My pet rock is not feeling well. I think it's stoned.

Advertisement: