Topic-icon SC login breaks down in the backend on 4.1.1

Active Subscriptions:

None
9 years 8 months ago #45781 by jwvr
SC login breaks down in the backend on 4.1.1 with a downgrade to 4.0.6 it is working but with dubble buttons. jfcb is latetest one 6.1.1 .

also the custom image link is not working any more.

I could not find what i did wrong till now.

In the backend if i want to try to open the sclogin module i get

Fatal error: Call to undefined method JFormFieldList::renderField() in /mysite/blablabla
File Attachment:


File Attachment:

/modules/mod_sclogin/fields/jfbconnectsettings.php on line 49
The topic has been locked.
Support Specialist
9 years 8 months ago #45788 by alzander
Hmmm.. Looking at our code, we do a check to see what version of Joomla you're using in the block of code that is throwing that error. Currently, we look to see if Joomla 3.2.0 or higher is being used. If so, we do it the way that's failing for you. If it's lower, we do it an older way.

With a little research, it seems like the code works with Joomla 3.2.3 and higher, but not will likely fail with 3.2.0-3.2.2. I'm assuming you're on one of those versions.

If so, I'd first recommend upgrading Joomla. There's a few security and general bug-fixes in the 3.2.3/3.2.4 releases (or 3.3.0+ versions).

If that doesn't work, you can edit the file you mentioned. Around lines 38-51, you'll see 3 lines that look like:
if (version_compare(JVERSION, '3.2.0', '<'))
Update that to:
if (version_compare(JVERSION, '3.2.3', '<'))
That should correct the check for the proper versions.

I hope that helps, but if you have any other questions, just let me know.

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

None
9 years 8 months ago #45853 by jwvr
Dear Alexander,

Thanks for your replay. This was the problem. Joomla was on 3.2.2 after the update is was okay.

Only i'm missing the custom Link button in sclogin now ik can just choose 2 opptions. I had build my own pictures for login in with facebook, google etc.
The topic has been locked.
Support Specialist
9 years 8 months ago #45870 by alzander
The new JFBConnect has a much easier system to use your own custom images that work with the SCLogin module, the {JFBCLogin} tag and any other places where the buttons are inserted automatically.

To use, please copy your custom images to:
/media/sourcecoast/images/provider/facebook/ (or any other social network)

Then, in the JFBConnect -> Configuration area, you'll be able to select your new images as the default. In the SCLogin module, you can also use the Provider Images option and set a specific image for each provider. This allows you to use big images for more important networks, and smaller images for networks that aren't used as often, but you still want to make available.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago - 9 years 8 months ago #45902 by miamiman
Am also getting the same back end error after upgrading SC Login:

Am also on a Joomla 3.2.3.

Fatal error: Call to undefined method JFormFieldList::renderField() in /modules/mod_sclogin/fields/jfbconnectsettings.php on line 49

Furthermore, when logging off from back-end, I get:

Fatal error: require(): Cannot redeclare class jfbcfactory in /plugins/user/jfbconnectuser/jfbconnectuser.php on line 61

Have modified code in the three instances per above without any luck:

if (version_compare(JVERSION, '3.2.3', '<'))

Still get the same as above user.
Last edit: 9 years 8 months ago by miamiman.
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago #45905 by miamiman
Have down-graded to previous release and is working again.

Will stay on it while I upgrade Joomla.
The topic has been locked.
Support Specialist
9 years 8 months ago #45914 by alzander
We'll have to investigate the admin logout issue. That's the first we've heard of that problem.

As for the SCLogin issue, if you want to try the code change above, you should modify it to be <= (less than or equal) or change the version number to 3.2.4 like:
if (version_compare(JVERSION, '3.2.3', '<='))
That will make sure the older style method is used, which should definitely work. We'll have to double-check what version the renderField function was added, but my understanding was that it was definitely available in 3.2.3. I'm not sure why that error would be showing for you, in that case, though.

If you decide to upgrade again, please let us know how the above goes.

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

None
9 years 8 months ago #45920 by jwvr
custom image works perfect thanks. Improvement again.
The topic has been locked.
Support Specialist
9 years 8 months ago #45925 by alzander
Glad to hear the new feature works for you. We're very happy about the new login button options and all the other features in the 6.1 release, as well as the great new things we're panning for later this year.

As always, if you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.