Hi guys,
I’m just wondering if anyone else had come across this pecuilar issue where gibbons escape when on the server info page. The weird thing is that the whole webpage isn’t directed to the error page but just a portion of it.
HI @Hamziatcha This is odd, as the Server Info page is just a fancy wrapper around the php_info() function, which is built-in to PHP. This error message is a generic front-end message, after you see it, be sure to go check your PHP errror logs on your server (often in /var/logs/apache2 on an Apache server), and look for a specific error message. Let us know what you find so we can help fix it. Thanks!
Hi @sandra , thanks for the reply. I have got the error logs here:
error logs
[09-Oct-2024 13:56:52 Europe/London] Uncaught Exception: Error - Call to undefined function phpinfo() in /home/abraraca/public_html/home/modules/System Admin/moduleFunctions.php on line 351
[09-Oct-2024 18:42:34 Europe/London] PHP Warning: Undefined variable $page in /home/abraraca/public_html/home/index_tt_ajax.php on line 44
[09-Oct-2024 18:42:34 Europe/London] PHP Fatal error: Uncaught Error: Call to a member function addError() on null in /home/abraraca/public_html/home/index_tt_ajax.php:44
Stack trace: #0 {main}
thrown in /home/abraraca/public_html/home/index_tt_ajax.php on line 44
[12-Oct-2024 08:15:42 Europe/London] Uncaught Exception: TypeError - Unsupported operand types: string - int in /home/abraraca/public_html/home/modules/Attendance/moduleFunctions.php on line 106
[16-Oct-2024 08:18:43 Europe/London] Uncaught Exception: TypeError - Unsupported operand types: string - int in /home/abraraca/public_html/home/modules/Attendance/moduleFunctions.php on line 106
[16-Oct-2024 08:18:48 Europe/London] Uncaught Exception: TypeError - Unsupported operand types: string - int in /home/abraraca/public_html/home/modules/Attendance/moduleFunctions.php on line 106
[16-Oct-2024 08:19:07 Europe/London] Uncaught Exception: TypeError - Unsupported operand types: string - int in /home/abraraca/public_html/home/modules/Attendance/moduleFunctions.php on line 106
[17-Oct-2024 20:02:58 Europe/London] Uncaught Exception: TypeError - Gibbon\Forms\Builder\Fields\PersonalDocuments::addFieldToForm(): Return value must be of type Gibbon\Forms\Layout\Row, null returned in /home/abraraca/public_html/home/src/Forms/Builder/Fields/PersonalDocuments.php on line 87
[17-Oct-2024 20:03:07 Europe/London] Uncaught Exception: TypeError - Gibbon\Forms\Builder\Fields\PersonalDocuments::addFieldToForm(): Return value must be of type Gibbon\Forms\Layout\Row, null returned in /home/abraraca/public_html/home/src/Forms/Builder/Fields/PersonalDocuments.php on line 87
[17-Oct-2024 20:03:26 Europe/London] Uncaught Exception: TypeError - Gibbon\Forms\Builder\Fields\PersonalDocuments::addFieldToForm(): Return value must be of type Gibbon\Forms\Layout\Row, null returned in /home/abraraca/public_html/home/src/Forms/Builder/Fields/PersonalDocuments.php on line 87
[17-Oct-2024 23:38:19 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[17-Oct-2024 23:38:25 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[17-Oct-2024 23:38:29 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[17-Oct-2024 23:45:48 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[17-Oct-2024 23:46:08 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[17-Oct-2024 23:48:05 Europe/London] Warning: Undefined variable $gibbonPersonID in /home/abraraca/public_html/home/modules/Staff/absences_add.php on line 276
[18-Oct-2024 18:47:00 Europe/London] Uncaught Exception: Error - Call to undefined function phpinfo() in /home/abraraca/public_html/home/modules/System Admin/moduleFunctions.php on line 351
[18-Oct-2024 18:54:11 Europe/London] Uncaught Exception: Error - Call to undefined function phpinfo() in /home/abraraca/public_html/home/modules/System Admin/moduleFunctions.php on line 351
[18-Oct-2024 18:00:56 UTC] PHP Parse error: syntax error, unexpected variable “$guid” in /home/abraraca/public_html/home/config.php on line 35
[18-Oct-2024 18:01:01 UTC] PHP Parse error: syntax error, unexpected variable “$guid” in /home/abraraca/public_html/home/config.php on line 35
[18-Oct-2024 18:01:07 UTC] PHP Parse error: syntax error, unexpected variable “$guid” in /home/abraraca/public_html/home/config.php on line 35
[18-Oct-2024 18:01:23 UTC] PHP Parse error: syntax error, unexpected variable “$guid” in /home/abraraca/public_html/home/config.php on line 35
[18-Oct-2024 19:02:34 Europe/London] Uncaught Exception: Error - Call to undefined function phpinfo() in /home/abraraca/public_html/home/modules/System Admin/moduleFunctions.php on line 351
[28-Oct-2024 19:17:16 Europe/London] Uncaught Exception: Error - Call to undefined function phpinfo() in /home/abraraca/public_html/home/modules/System Admin/moduleFunctions.php on line 351
Okay so after contacting my web host it seems like they removed access to the phpinfo() command which I am assuming is the reason why this page throws an error.
So if anyone else gets this error contact your web host (if you have one) as they might have disabled it!
Hi @Hamziatcha, thank you for sharing your solution, and it may indeed help someone in the future, as I had never heard of hosting providers disabling this function before. It’s generally used for debug and development, and very useful, so it’s strange that it’d be disabled. Glad to hear you got to the bottom of things.