ElkArte Community

Project Support => Support => Topic started by: MartinTS on October 22, 2021, 05:01:07 am

Title: "An Error Has Occurred"
Post by: MartinTS on October 22, 2021, 05:01:07 am
Hi All,
It's my first time installing Elkarte and I love it so far, but I'm getting an error that seems to pop up randomly "Call to undefined function shell_exec()".
I seem to be able to clear it by clicking on the Home link. But I need to fix this before I roll it out to my community.
Has anyone seen this before?
Cheers,
Martin
Title: Re: "An Error Has Occurred"
Post by: radu81 on October 22, 2021, 08:27:13 am
Hi and welcome to Elkarte, I suggest yo to post all the details about the error you have (Admin CP ->Log error)
Title: Re: "An Error Has Occurred"
Post by: Arantor on October 22, 2021, 02:00:45 pm
I think this will be fixed by turning off hostname lookup but I forget where the option is in the admin panel.
Title: Re: "An Error Has Occurred"
Post by: MartinTS on October 23, 2021, 02:52:18 am
Here's the error log:
Guest
Today at 12:48:37 AM
202.56.55.214
TbPeHkBT7SNIKglqn3TUyb9vLwRzK6GA
Type of error: Undefined
Exception: Call to undefined function shell_exec()
https://connect2.networkz.nz/index.php?action=login
File: /home/networkz/connect2.networkz.nz/sources/Subs.php
Line: 1246

Each error has referenced the same file and line
Title: Re: "An Error Has Occurred"
Post by: MartinTS on October 23, 2021, 02:55:03 am
I think this will be fixed by turning off hostname lookup but I forget where the option is in the admin panel.
I found this option and disabled hostname lookup -  let's see what happens!
It is in Server Settings\General
Title: Re: "An Error Has Occurred"
Post by: MartinTS on October 24, 2021, 11:15:32 pm
That seems to have worked thank you!