Topic-icon Problem with the avatar import in JomSocial (Google function)

Active Subscriptions:

None
System:
Server: 12.04.1
PHP: 5.3.10
Joomla: 3.2.1
JFBConnect: 5.2.2
JomSocial: 3.1.0
Testsite: (only testsite) : magazin-big-win.de

Hello Team from SourceCoast

Unfortunately, I have two problems with JFBConnect and JomSocial.
I look for any help!
I got the same error on 3 websites. All are on the same sever.
___________________________________________________________________

• Is in the Joomla configuration the "gzip" is enabled, reports the Facebook "Open Graph Object Debugger" a mistake. (Data of the URL could not be retrieved.)
___________________________________________________________________

• The second problem arises when you import the avatar (profile picture).
The Login with Google gives the following error message.
There was an error when trying to move image (/var/www/clients/client1/web6/web/tmp/scprofile_65_pic_tmp.jpg) to /var/www/clients/client1/web6/web/images/avatar/3de7672e9cf574fb4f1b5ea9.jpg

Image is not copied after "Avatar".
Image is in the directory "tmp" exist.
Imported or existing profile picture (Facebook) is erased.

SSH Test:
/tmp

wget lh5.googleusercontent.com/-lVH7EEN49Oc/U...-h140-p/PICT0008.png
Status: image available

/images/avatar
wget lh5.googleusercontent.com/-lVH7EEN49Oc/U...-h140-p/PICT0008.png
Status: image available
__________________________________________________________________

The Login with Facebook works without error. Avatar (personal picture) is imported.
__________________________________________________________________

The Login with Twitter with no errors. Avatar (personal picture) is not imported.
__________________________________________________________________

Rights:

/images/avatar 755
/tmp 755
All Joomla required directories: 755

Function:

fsockopen: ok
curl: ok
open_basedir no value
upload_tmp_dir = /var/www/clients/client1/web6/web/tmp
tmp_path /var/www/clients/client1/web6/web/tmp | writable
___________________________________________________________________
tested with: http and https

I think it's an error in the "php.ini" or in a server setting but I do not know where.

Thank you for your help!
The topic has been locked.
Support Specialist
Michael,
I'm sorry you're running into some issues. Hopefully, I can help narrow some things down:

• Is in the Joomla configuration the "gzip" is enabled, reports the Facebook "Open Graph Object Debugger" a mistake. (Data of the URL could not be retrieved.)

This is an issue with Joomla 3.2. We are planning to investigate further what changed, but it's not directly related to JFBConnect. Any site with Open Graph tags that enables the GZip compression within Joomla is not properly being read by Facebook. We have a new release of JFBConnect planned for mid/late February. If there's a way we can work around this issue in that release, we will (and/or provide a fix to Joomla as well).

Google/Twitter image import
That's a very strange issue. I'm not sure why only Google or Twitter would not work. The process for downloading the avatar from the social network and moving it into JomSocial is the exact same for each network.

The only things I can recommend trying are:
* Delete the tmp/scprofile_65_pic_tmp.jpg file before any tests. This makes sure you're not seeing the avatar from a previous Facebook login.
* Try to login with Google and make sure the avatar is created again and that it's a valid image

If that works, it means the transfer from your tmp directory isn't working *or* JomSocial is rejecting that avatar for some reason.
If it doesn't download properly, that will also help narrow down where the problem is.

I don't think it's a server setting from your description, but I honestly don't know off-hand as this isn't an issue we've heard of.

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

None
Hello Alex

Thank you for your great tip . He helped me a lot .
I suspect there may be a small bug .

My steps

Delete all images ( tmp , avatar )
Clear the cache
Use of the standard template
Google Login with new user [User 01] ( works great user is logged after registration, image is imported )
Delete all users
Change the Admin Username
Sign in with Google [User Admin] (login ok , Avatar is not imported Error Message) .
Deleting Joomla and browser cache
Login with a user [User 02] (User has been previously deleted)
Error Message: 42 The following contact could not be updated : COM_CONTACT_ERROR_UNIQUE_ALIAS
Clear cache and browser cache Joomla
Login attempt [User 01]
Registration for [User 01] with default values
Error Message: 42 The following contact could not be updated : COM_CONTACT_ERROR_UNIQUE_ALIAS
[Problem with default values ​​Username ]
Jump to Homepage
Renewed login attempt with Google+ for User01
Account is associated profile picture is displayed.
Logout User [User 01]
Clear cache and browser cache Joomla
Login attempt [User 02]
Call for registration ( use the default value )
Error Message: 42 The following contact could not be updated : COM_CONTACT_ERROR_UNIQUE_ALIAS
Jump to Homepage
Login with Google+
Login ok Error Message: There was an error when trying to move image ( / var/www/clients/client1/web6/web/tmp/scprofile_69_pic_tmp.jpg ) to / var/www/clients/client1/web6/web/images / avatar/8ad8e3e758f34275b98eca2a.jpg



I think deleted users are not properly removed from the database. (Bug ? )
The topic has been locked.
Support Specialist
Ahhh.. good sleuthing! You're correct it's a bug, but not with JFBConnect. It's with the Joomla Contacts component. If you have the "User - Create Contact" plugin enabled in Joomla (which is disabled by default), a new 'contact' is created whenever a user registers on your site. However, that contact is not properly deleted when the user is deleted.

So, if you delete a user and then try to register again, the User - Create Contact plugin will throw that error and cause issues.

If you don't need the Create Contact functionality (which we've honestly never seen a site that uses it), I'd just disable that plugin.

I hope that helps explain, but if not, just let me know.

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

None
Hi Alex

Thank you for your help and the good work!
I also thank you for the nice component.

Sometimes it's just a checkbox or a wrong value from the user, which results in an error. I will try your suggestion tomorrow.

Thanks for the help

I'll call you after the test.
The topic has been locked.
Support Specialist
Can't wait to hear the resolution. Hopefully that will get you going!

Should you need anything else, just let me know.

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

None
Hi Alex

Unfortunately, I have had no success !

I made ​​a completely new installation. ( Joomla! 3.2.1 Stable )
Joomla setting is not changed.
JomSocial installed ( version 3.1.0.4 )
JFBConnect ( Version: 5.2.2)

___________________________________________________________________________
Result:

When a login with Facebook profile pictures ( avatar) will be imported.
Files exist in the directory ( tmp & avatar ) images are displayed !

When a login with Google profile pictures ( avatar) are not imported.
Files do not exist in the directory ( tmp & avatar ) Images are not displayed !
Facebook images will be deleted !

When Login with Twitter profile pictures ( avatar) are not imported.
Files do not exist in the directory ( tmp & avatar ) Images are not displayed !

An error message is not output !

___________________________________________________________________________

Joomla debug console :

Error Message in language files :
• JROOT / administrator / language / en- GB / en- GB.plg_system_jomsocialredirect.ini : Error at line 0, 1 , 2, 3 , 5, 6 , 7, 8
• JROOT / language / en- GB / en- GB.com_community.ini : Error on line 125 2237
___________________________________
Server log files :
Error message :
File does not exist :
/ var / www / top -solar- info.com / web / components / com_community / assets / joms.jquery.js ,
referer : www.top-solar-info.com/component/jfbconn...dW5pdHkvP0l0ZW1pZD0x
My solution : jQuery / Bootstrap invite | disabled.
________________________________
JFBConnect : Debug Mode
Reports no errors .

Unfortunately I can not find the error . Is there a possibility that you you look at the configuration times. I'll give you with all the credentials. (this page is only a test page , it is not important)

I have no plan more!

I look forward to your response .

Thank you very much!
Micha
The topic has been locked.
Support Specialist
Micha,
Yes, please send me a set of admin credentials. We'll see what we can do from the Joomla admin area to narrow things down. If that doesn't help, we may ask for FTP credentials as well so we can edit our files and narrow things further down that way.

You can PM me by clicking the mail icon under my name to the left.

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

None
Hi Alex,

I have sent you a PM! Unfortunately, I'm not sure whether you have received this message. About a message from you, I would be delighted.

Many greetings from Berlin

Micha
The topic has been locked.
Support Specialist
I just tested registering with a Google account, below:
spedition-transport-umzug.com/jomsocial/...alex-andreae/profile
As you can see, my avatar and cover were both properly imported.

After that, I registered using Twitter:
spedition-transport-umzug.com/jomsocial/...alex-andreae/profile
My avatar was imported, but my cover was not. That's expected though as my Twitter profile doesn't have a cover.

I'm not sure what's happening for your users, but I'd recommend:
* Checking that the Google/Twitter accounts you're testing with have avatars set properly
* Test with other accounts to see if they work properly

I did not change any settings on your site, so I'm not sure why it worked for me. Everything worked how we'd expect it to work, so we'll need to narrow down what's wrong with the test accounts you're using.

Thanks,
Alex
The topic has been locked.