Topic-icon Error after updating to JFBConnect 7.2.2

Active Subscriptions:

None
6 years 6 months ago #62797 by paugoh
Here are the error message

Warning: strpos() expects parameter 1 to be string, object given in C:\Ampps\www\sglottery.com\components\com_jfbconnect\libraries\profile\facebook.php on line 70

Warning: strpos() expects parameter 1 to be string, object given in C:\Ampps\www\sglottery.com\components\com_jfbconnect\libraries\profile\facebook.php on line 72
The topic has been locked.
Support Specialist
6 years 6 months ago #62801 by mel
* Could you tell me how you have the profile import set up in JFBConnect > Profiles area? Are there any fields mapped? Which profile extension are you using?
* What version of Graph API is your application set to use?

If you'd be willing, it'd be quickest to diagnose this problem by putting a debugging statement in the code to see what's coming back from Facebook. If you'd like me to do it, please send me a private message with FTP credentials.

Otherwise, you can add it yourself and tell me the resulting text that gets printed out when you perform the profile import.
In /components/com_jfbconnect/libraries/profile/facebook.php, at line 70, add the following line, so the code looks like this:
print_r($field);
if (strpos($field, "friends") !== false)

Additionally, these are just warnings. You can set the "Error Reporting" setting in the Joomla Global Configuration to None and they won't be printed out. That's just a notification message and those should be hidden on any live site.

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 6 months ago #62802 by paugoh
Hi

I do not have any facebook settings Only use Google+
The topic has been locked.
Support Specialist
6 years 6 months ago #62813 by mel
Can you attach a screenshot of your JFBConnect backend > Profiles area so that I can see how it's configured? Could you please also put the print statement in or send me FTP credentials?
The topic has been locked.