Topic-icon Getting PHP error in log and SCLogin Module is blocking popup script

Active Subscriptions:

None
I have this same configuration on another site that works beautifully, so I presume it isn't a direct conflict between the modules, but rather something else interfering.

***Getting this PHP error in log:

AH01071: Got error 'PHP message: PHP Notice: Constant CHECK_NEW_MAPPING_JFBCONNECT already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 17\nPHP message: PHP Notice: Constant LOGIN_TASK_JFBCONNECT already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 18\nPHP message: PHP Notice: Constant AUTONAME_EXT already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 20\nPHP message: PHP Notice: Constant AUTONAME_FIRSTLAST already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 21\nPHP message: PHP Notice: Constant AUTONAME_FIRLAS already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 22\nPHP message: PHP Notice: Constant AUTONAME_EMAIL already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 23\nPHP message: PHP Notice: Constant EXT_SOURCECOAST already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 25\nPHP message: PHP Notice: Constant EXT_JFBCONNECT already defined in /var/www/vhosts/druidcityliving.com/httpdocs/components/com_jfbconnect/libraries/utilities.php on line 26\nPHP message: PHP Notice: Undefined property: stdClass::$section in /var/www/vhosts/druidcityliving.com/httpdocs/modules/mod_sclogin/helper.php on line 115\n', referer: druidcityliving.com/
The topic has been locked.
Support Specialist
Regarding the notice about the constants already being defined, could you check to see if you have an older file /libraries/sourcecoast/utilities.php? The functionality was moved from this older file into the components/com_jfbconnect/libraries/utilities.php one. If this was an upgrade on the site, perhaps the older file did not get removed.

Undefined property: stdClass::$section in /var/www/vhosts/druidcityliving.com/httpdocs/modules/mod_sclogin/helper.php on line 115\n', referer: druidcityliving.com/

This is in a section of code for Two Factor Authentication.
1. Could you verify that you have a two factor authentication plugin enabled. Then open it up and save it again after choosing the appropriate 'Site Section'. Does the error go away?
2. If not, could you try making the following code change in /modules/mod_sclogin/helper.php at line 115. Change
if(in_array($tempO->section, array(1, 3)) || !isset($tempO->section))
to
if(!isset($tempO->section) || in_array($tempO->section, array(1, 3)))

Try these suggestions and let me know what happens.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Those first two seem to have done the trick. I found and deleted that file, and then did a search for an active 2 factor auth and found one, which I disabled and voila' back in business. Thanks!
The topic has been locked.
Support Specialist
Great, glad that helped. Let us know if you run into further issues.

-Melissa
The topic has been locked.