Page 1 of 1

Error Message

Posted: Sat Sep 24, 2022 7:26 pm
by Deon R Warrin
Can anyone help me resolve this issue? I cannot open my LMS. I get the following error message:

Fatal error: Declaration of Plugin\GoogleAuth\Authentication::getLoginGUI() must be compatible with PluginAuthenticationWithRedirectInterface::getLoginGUI($redirect = '') in /home2/talenud8/public_html/plugins/GoogleAuth/Authentication.php on line 26

Re: Error Message

Posted: Sun Sep 25, 2022 7:08 am
by alfa24
Please provide version of Forma and PHP.

Re: Error Message

Posted: Mon Sep 26, 2022 7:51 am
by Deon R Warrin
Forma LMS 3.1
talentstudio.co.za PHP 7.4 (ea-php74)

Re: Error Message

Posted: Mon Sep 26, 2022 7:54 am
by alfa24
Downgrade to php 7.3 or apply the following fix.

In /plugins/GoogleAuth/Authentication.php

find

Code: Select all

public static function getLoginGUI()
replace with:

Code: Select all

public static function getLoginGUI($redirect = '')
Unfortunately forma 3.1 is said to be compatible with 7.4 syntax, but it's not 100% true.

Re: Error Message

Posted: Thu Sep 29, 2022 12:31 pm
by Deon R Warrin
I tried both options:
Applied the fix first. I did not work.

Then I tried the downgrade to php 7.3. I get this error message:
This page isn’t workingtalentstudio.co.za is currently unable to handle this request.
HTTP ERROR 500

Is there any way I can get to the dashboard to deactivate the GoogleAuth plugin?

Re: Error Message

Posted: Thu Sep 29, 2022 12:34 pm
by alfa24
What "did not work" means? Still the same error message? Another one?
Error 500 hides an error message, you must find it in the web server logs and provide it.

Re: Error Message

Posted: Thu Sep 29, 2022 12:54 pm
by Deon R Warrin
error message with apply the following fix.

In /plugins/GoogleAuth/Authentication.php

Fatal error: Declaration of Plugin\LinkedinAuth\Authentication::getLoginGUI() must be compatible with PluginAuthenticationWithRedirectInterface::getLoginGUI($redirect = '') in /home2/talenud8/public_html/plugins/LinkedinAuth/Authentication.php on line 28

Re: Error Message

Posted: Thu Sep 29, 2022 12:56 pm
by alfa24
This is different from the first one.
You should apply the same fix to In /plugins/LinkedinAuth/Authentication.php too.

Re: Error Message

Posted: Fri Sep 30, 2022 11:03 am
by Deon R Warrin
Thank you for resolving this problem. The fix worked very well. I had to apply the same fix to all the social media plugins Authentication.php.