Topic-icon Error 500 with latest version

Active Subscriptions:

None
13 years 8 months ago #26368 by activha
Hello Alex

Just upgraded to latest version of JFBConnect and now each time that a user tries to log in or register with facebook we get a network error 500

Could you help us on this ?

Error is "NetworkError: 500 Internal Server Error - xxx.com/component/jfbconnect/?view=loginregister&return=Lw=="

Website is activ-ha.com

Thanks
The topic has been locked.
Support Specialist
13 years 8 months ago #26376 by alzander
Can you turn on Error Reporting to Maximum in the Global Configuration area of Joomla and let me know what message appears there? You may also need to turn off GZip compression, if enabled.

Once we get that error, we should be able to help you get to the bottom of the problem quickly.

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

None
13 years 8 months ago #26382 by activha
Hi Alex
Well we got this error :
Notice: Undefined index: cbprivacymainsettings in /var/www/html/plugins/jfbcprofiles/communitybuilder/communitybuilder.php on line 140 Fatal error: Class name must be a valid object or a string in /var/www/html/plugins/jfbcprofiles/communitybuilder/communitybuilder.php on line 141 Fatal error: Access to undeclared static property: JLoader::$classes in /var/www/html/libraries/loader.php on line 195

Does it help ?
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26385 by activha
Seems like we have the same problem with Jlinked !

Fatal error: Class name must be a valid object or a string in /var/www/html/plugins/jlinkedprofiles/communitybuilder/communitybuilder.php on line 131 Fatal error: Access to undeclared static property: JLoader::$classes in /var/www/html/libraries/loader.php on line 195
The topic has been locked.
Support Specialist
13 years 8 months ago #26390 by alzander
It seems like our CB plugin is trying to get details about a field called "cbprivacymainsettings". That's not a field we've heard of before. Is that some addon you have, or something else you know more information about?

We actually have an updated CB plugin in testing for a few other reasons. I don't think it will fix this issue directly though. We basically ask CB about all the different types of fields you have in your system, and then try to load them. That error is saying that that "cbprivacymainsettings" field can't be loaded, which may be because it's not part of core CB. If not, we'll need to understand how to either load that field or ignore it.

Can you let me know what the settings for profile, required, registration, etc are set for that field as well?

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

None
13 years 8 months ago #26394 by activha
Yes this is used to control privacy on fields and tabs :
Plugin CB Privacy 1.3
Description: CB Privacy 1.3 : Fields and tabs privacy control plugin.
Dossier / Fichier: user/cb.privacy.php

We use cbsubs also

Thanks
The topic has been locked.
Support Specialist
13 years 8 months ago #26399 by alzander
Can you try editing the /jfbcprofiles/communitybuilder/communitybuilder.php and jlinkedprofiles/... file. Around line 129 in the JFBConnect one, you'll see the following line:
$hideField = $cbField->type == 'primaryemailaddress' || $cbField->type == 'password' || $cbField->type == 'image' || $cbField->name == 'username';
Append "|| $cbField->type == 'cbprivacymainsettings'" to that, so it looks like:
$hideField = $cbField->type == 'primaryemailaddress' || $cbField->type == 'password' || $cbField->type == 'image' || $cbField->name == 'username' || $cbField->type == 'cbprivacymainsettings;
There's a similar line in the jlinkedprofiles plugin. That should hopefully skip our code that's trying to execute with that field. Not the best, most robust solution, but should get you going.

Let us know how that goes, or if you run into other problems after that one is fixed.

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

None
13 years 8 months ago #26409 by activha
Well Thanks Alex this seems to work.

We had other Jlinked error 500 problems while new registration but difficult to reproduce, will continue to test.

We have noted that CB activation was still requested even if it was set not to in the backend, then the registration process is a bit complicated.
There is also a problem with required fields depending on CBsubs plans. CBsubs plans are not proposed

If you have other changes to make, let me know

Jean Claude
The topic has been locked.
Support Specialist
13 years 8 months ago #26438 by alzander
We've never used CBSubs. It's an encrypted extension, and so therefore, very hard for us to understand any of it's underlying logic. So, I can't really tell you how the redirection should occur or how CBSubs in general works. While we normally have no problem trying to help make sure our extensions work with 3rd party extensions, you may need to ask the CBSubs developers how best to setup a redirect to their plans. If we know how to do that, we can help you implement that. CB, in general, doesn't use any standard Joomla conventions for registration or redirections though, so I just don't know it offhand.

As for the activation, can you let me know if the user's profile information is imported, but the account isn't activated? If not, it's usually an indication that there is a required field set in CB that doesn't have a Facebook field mapped to it. All required fields must be set for the user, either by themselves during registration or by importing it from Facebook. If not, CB won't let us save the user properly. So, check your required fields and make sure there's a method to get that information somehow during the registration process.

Hope that helps get you started or answers some questions!

Thanks,
Alex
The topic has been locked.