Support

Admin Tools

#39235 Error in Social Login Plugin causing Issues with User Registration

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.3.3
PHP version
8.2
Admin Tools version
7.3.4

Latest post by nicholas on Monday, 24 July 2023 08:13 CDT

davesouthey

Dear Akeeba Support Team,

I hope this message finds you well. I selected Admin Tools as the Category as there was no option for Social Plugin. I am writing with urgent matter regarding a bug occurring in the Joomla Social Login plugin. We have integrated the plugin to allow LinkedIn-based account creation; however, we seem to be experiencing critical issues when users attempt to register normally (i.e., without the LinkedIn feature).

The error we are encountering is "Call to a member function getParams() on null". While the account verification from the backend is successful, users are still greeted with this error upon completion of their registration or following their verification link. Notably, this issue arises immediately when 'New User Account Activation' is set to 'Self' and post-verification when it is set to 'None'.

The primary issue seems to arise at the point of user verification after registration, particularly when someone chooses to register without using LinkedIn. When the plugin is disabled the problem is no longer there so we've confirmed it's caused, in part, by the plugin.

This issue is creating a significant bottleneck in the registration process, causing confusion and frustration amongst users.

We realize that troubleshooting these complications requires a substantial effort. Therefore, I want to provide as much information as succinctly as possible to facilitate the investigation process.

The relative path highlighted by the issue is:

1. () JROOT/plugins/system/sociallogin/src/Features/ButtonInjection.php:158
2. Joomla\Plugin\System\SocialLogin\Extension\SocialLogin->getReturnURLFromBackTrace() JROOT/plugins/system/sociallogin/src/Features/ButtonInjection.php:68

Should you require any further information or clarification regarding this issue, please do not hesitate to ask. I look forward to your speedy response.

System Task
system
The ticket information has been edited by David Southey (davesouthey).

System Task
system
The ticket information has been edited by David Southey (davesouthey).

nicholas
Akeeba Staff
Manager

As far as I can see, this was fixed in version 4.4.2. Which version are you using?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

davesouthey

We're using 4.4.2.

nicholas
Akeeba Staff
Manager

According to the error message, you do not have an active menu item. However, this is not possible on Joomla 4. The core application checks for an Itemid. If there is none in the request, or if it is invalid, it uses the default (Home) menu item.

If you can reproduce it on a new installation of Joomla please provide reproduction instructions. As it is, I can neither reproduce it, nor see how it can even be possible.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

davesouthey

Thanks for letting me know that. I'm not sure what has caused this but it was trying to go to /log-in which didn't exist which was causing issues. I just added a redirect from /log-in to /login and the problem is no longer an issue. Thanks again

nicholas
Akeeba Staff
Manager

Now, that makes sense! When you trigger a Joomla! error page then indeed there is no active menu item, even on Joomla 4. These pages exist outside the normal flow but they may still run some plugins before we reach them. Huh. IΒ honestly hadn't thought about that possibility. I guess we both learned something new today :)

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!