Topic-icon Updated to Joomla 3.10.1 and now when I click Login button... No Modal Popup

Active Subscriptions:

None
I updated today to 3.10.1 and now SC Login does not seem to work... Modal does not pop up... I see the SEF link(/#login-modal) in the browser's URL box but there is no modal or error?
I did an update to the latest version of SC Login and still same problem.
The topic has been locked.
Support Specialist
2 years 7 months ago - 2 years 7 months ago #67394 by mel
Are you on the latest version of SCLogin v9.0.152 yet? If not, I'd recommend backing up your site and then upgrading to the latest. Once you do this, I'd also recommend doing a hard refresh on your page to make sure CSS/bootstrap changes take effect.

If you've already moved up to the newest, can you send more details about your site, like URL so that we can see the behavior in action and also see if there are errors on the console?

-Melissa
Last edit: 2 years 7 months ago by mel.
The topic has been locked.
Active Subscriptions:

None
Hello, I have the same problem here. I've updated SCLogin on www.bruant-distribution.fr/ then the pop up doesn't show anymore.

My team and I fixed this with a temporary jQuery code but we hope to find a more reliable fix. It seems the onclick event add no class to the modal.

Joomla version : 3.9.28
SCLogin : 9.0.150
We work with Flexicontent 3.3.11
The topic has been locked.
Support Specialist
Two questions as I look into this today:

- Are either of you also using JFBConnect as well?
- Do you have the SCLogin > Advanced > jQuery option set to Yes?

-Melissa
The topic has been locked.
Support Specialist
We're unable to recreate this issue on our development sites, which makes it difficult to track down the cause.

If either you can answer Melissa's questions above as well as..

daniej - Can you provide the URL of your site so we can see a site that's not working?
Think Ad - Can you provide the Javascript that makes it work on your site?

Either of the above will help us understand the problem and possible solutions more than we can right now.

Thanks!
Alex
The topic has been locked.
Active Subscriptions:

None
2 years 7 months ago - 2 years 7 months ago #67404 by Think Ad
Hello,

About Melissa's questions :
- no, we don't use JFBConnect
- Jquery option is set to no, we already load Jquery in the template

There is the very simple JS we use to show the pop up :

$('.sourcecoast.sclogin-modal-links .btn-primary').click(function () {
        $('#login-modal').addClass('force');
        $('#login-modal').addClass('show');
        $('#login-modal').removeClass('hide');
    });
    $('.modal-header .close').click(function () {
        $('#login-modal').removeClass('force');
        $('#login-modal').removeClass('show');
        $('#login-modal').addClass('hide');
    });

The "force" class is set to add some temporary css (all the styles where missing after update) and a "display: block !important;".
Last edit: 2 years 7 months ago by Think Ad.
The topic has been locked.
Active Subscriptions:

None
We see the same bug when updating from 8.4.7 to 9.0.150. This is on Joomla 3.9.28 and 3.10.1. We don't use JFBConnect. And we've tried setting jQuery to Yes.

Had to revert to 8.4.3, which is the latest version we have downloaded to disk.

Where is this version 9.0.152 that you are talking about? Download and Joomla Updater only has 9.0.150.
And where is the Changelog for 9.0.x? It hasn't been updated since 8.4.7.

- Frode
The topic has been locked.
Support Specialist
Sorry for the confusion and delay. Yes, the latest SCLogin version is 9.0.150. I mistakenly referred to the JFBConnect version 9.0.152.

The SCLogin changelog has been updated. We hadn't released an independent new version of SCLogin while JFBConnect 9 was a release candidate, so all changelog items were just in the JFBConnect changelog.

Alex and I will be looking into the modal issue today and hope to get a release out very soon with a fix. We're having some issues reproducing this on our test systems, so he may respond to this thread with more questions.

-Melissa
The topic has been locked.
Support Specialist
We have been unable to recreate this issue and are stumped as to where the problem may be. We have tested on multiple Joomla 3 and Joomla 4 sites and the modal works on all. However, every site has different templates and components that can result in conflicts, so we simply need more information.

Think Ad - Thank you for sharing the Javascript the helped make the modal work on your site. On further investigation, if we switch the template to protostar on your site, the modal *does* work. You can try yourself by simply going to your website and adding ?template=protostar to the end of the URL. The page will look different, but the Connexion button does pop up properly.

Most importantly, when loading the protostar template, the templates/bd19/js/template.js file is *not* loaded. That template.js file is where your developers added the fix to make the popup work. That indicates there's something else on the site that's causing the conflict. Unfortunately, we can't see the issue with the 'fix' code on the page, so we can't narrow down the cause.

Anyone else with issues - For us to investigate further, we really need to see more sites with the problem. Please post (or use the Contact Us link at the top of the page) a link to a page on your site with the issue so we can dig in deeper.

Thanks,
Alex
The topic has been locked.
Support Specialist
NJK - Thanks for sending us information about your site. However, we were pretty quickly blocked by the firewall when trying to test some things. Can you disable or reduce the aggressiveness of whatever you're using to block IPs for a bit?
Mainly, we want to try switching the template by adding ?template=protostar to the URL.. but doing that seemed to be a no-no on your site :)

We think we have some good clues as to where the Javascript issue is coming from, but would like to investigate a little more before putting out a release.

Thanks,
Alex
The topic has been locked.