Topic-icon Log in process has error and security alert

Active Subscriptions:

None
12 years 11 months ago #9585 by andybott
Sign up or login are generating the attached errors.

First as FB passes back to Mysite.co.uk i get a security error (about trusted sites) see attached img.



And yes " Disable SSL Certificate Validation: " is set to "yes" as in "disable"

After I accept the alert

I get the following screen flash up (not long enough to copy and paste so screen grab is best I can get)

The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9586 by andybott
In addition it sometimes takes several clicks to complete the proces (i.e. it fails a couple of times and then works.)

The screen shot error above is solved by disabling the jomsocial plugin, which I need (thats the main reason for using)
The topic has been locked.
Support Specialist
12 years 11 months ago #9596 by alzander
Andy,
The security warning, I believe, is simply because of how you have IE configured. Since you've 'trusted' your website, when Facebook tries to redirect there with special POST values, that warning is just letting you know that some other site could be trying to mess with a 'trusted' site of yours. Think of it as though the trusted site is your bank site. You wouldn't want another site redirecting you there to steal your credentials in some way, so this is a warning for that.. I don't think this is something most/any users would see.

I think the 2nd issue of multiple clicks to complete may be related.. You may want to try in another browser and see if you have the same results.
The topic has been locked.
Support Specialist
12 years 11 months ago #9597 by alzander
Oh.. the warning in the message above, you can safely ignore. That's part of our importing of the Facebook user's current status message. If it's blank, or we can't retrieve it, that warning comes up. We have a task to check that the value exists before trying to read it, which will get rid of that warning.

Another thing to try is enabling Facebook API Errors on Front-End. Let us know if you're seeing any errors from the FB API, which may help determine the cause.

Keep us posted.
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9598 by andybott
You are correct Alzander - Have tried else where (i am on a different pc now) and the warnings are not there and the process was more normal (i think this may be to do with my access to the development server i use, I have a batch of ip's that are trusted)

How ever the jomsocial plugin is still causing the error to appear as depicted in my other image....
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9599 by andybott
Sorry Crossed Posts due to lag.... is there a patch or workaround to prevent this happening as it is causing some of my test pc's to lock without refreshing leaving users staring at the warning message.
The topic has been locked.
Support Specialist
12 years 11 months ago #9600 by alzander
Sure,
Edit the /plugins/jfbcprofiles/jomsocial/jomsocial.php file. At line 200, you'll see:
$fbStatus = $response['data'][0]['message'];
Add the following around it:
if (isset($response['data'][0]))
       $fbStatus = $response['data'][0]['message'];
else
       $fbStatus = "";

While you're in that file, I also want to post another bug that was found in a different thread that you can correct at the same time. Depending on how you've configured the JomSocial plugin, this may, or may not, affect you:
www.sourcecoast.com/forums/topic?id=2091&p=1#p9572

Sorry for the troubles, and please let us know if this helps you move forward a little better!
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9601 by andybott
Adding the code as described has half solved the problem

I am still getting the following warning displayed during the rediret.

Warning:preg_match()[function.preg-match]:Unkown modifier '/' in var/www/vhosts/mydomain.co.uk/httpdocs/libraries/phputf8/str_ireplace.php on line 40

Dont know what this is but if I disable the jomsocial intergrator plugin this goes away ?
The topic has been locked.
Support Specialist
12 years 11 months ago #9611 by alzander
Andy,
I'm not sure what's causing that, in all honesty. Can you try disabling the importing of the avatar and importing of the status from Facebook and see if that rids you of the issue? That will help us narrow it down, but we'll obviously be testing more as well.

Sorry for the issues, and we really do appreciate the reports.

Alex
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #9752 by andybott
Still getting the following flash up during the login process it takes between 1sec and 10 secs to refresh (depeding on system and browser)

Warning:preg_match()[function.preg-match]:Unkown modifier '/' in var/www/vhosts/mydomain.co.uk/httpdocs/libraries/phputf8/str_ireplace.php on line 40

Have performed some basic testing and this is definiatly caused by the "import avatar" process. by selecting no to "import avatar from facebook" this warning goes away. When you switch on "import avatar" this php warning comes back.

Should also note that this is not preventing the inport avatar function from working. just generates the error.

Moving my site to wider beta testing next week and this would be nice to resolve.... any ideas ?
The topic has been locked.