Topic-icon Problem with Profile picture import (CB)

Active Subscriptions:

None
10 years 1 month ago #58139 by timchteure
Hi,

The component successfully imports the cover photo, however does not import the profile photo. I have set the button in the back-end to import profile photos. I am running CB and the latest version of JFBCConnect.

Bye

Tim
The topic has been locked.
Support Specialist
10 years 1 month ago #58142 by alzander
Tim,
You've had JFBConnect for a long time. Can you let us know if this is a new problem you're having or something that you've never had working? Knowing if avatars used to import, but no longer do, really helps narrow things down. If so, can you tell us what's changed recently?

If you never tried to get the avatar to import, did you just install CB or not using the profile import feature before?

One last question: Does it not import during registration as well as logins, or are the avatars not importing ever.

The only thing I can suggest right now is to set the "Enable Debug Mode" option in JFBConnect to "Yes". Then, check if any errors are reported when you try to authenticate.

Any more details you can provide would really help.

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

None
10 years 1 month ago #58159 by timchteure
Hi Alex,

Profile picture import used to work perfectly until I had this problem with JFBConnect (it stopped to work due to a required field that I was hiding in normal registration with CB conditional, that JFBConnect however recognised as required and was thus failing). You then had a conversation with Edwin, and repaired it (which led to the writing of this latest update). Since then, the profile import has not worked.

I have tried to switch on the ALWAYS IMPORT of the data, and it has successfully imported the cover photo but NOT the profile picture. Debug also does not show any errors (only the usual ones from the AJAX search and the cometchat.js which do not interfere with JFBC from experience)

Literally got no clue where the error may be.

I have left debugging on as the berlin website is not really buzzing yet (runs on same php code as all my other websites): berlin.international-friends.net/

Here is a screenshot of what I see in the profile:
File Attachment:
The topic has been locked.
Support Specialist
10 years 4 weeks ago #58206 by alzander
Ahh.. thanks for reminding us about JMS2WIN. It's very possible there's an issue with his update or some other path issue that's preventing the saving of the avatar. We do handle the avatar and cover a bit differently, simply because CB handles them differently as well.

My best place to start looking is at the temp path we try to save the avatar to when it's downloaded. We use the following code to get the temp directory for your Joomla installation:
$tmpPath = JFactory::getApplication()->getCfg('tmp_path');
That normally returns the /tmp directory from your Joomla installation. I don't know where it would be returning on your site and it could be a problem with us saving to one directory and CB trying to read and process it from a different directory. The tmp_path value is set in your configuration.php file and should be the absolute path to your installation. Again though, with JMS2WIN, I don't know how that value should be set correctly.

Either way, JFBConnect tries to save the profile URLs to that directory in a format like scprofile_123_pic_tmp.jpg. I'd look in any directories that could be considered the tmp directory for your site and see if there are files with that format in the directory. If so, then at least you've found where JFBConnect is saving the file and you can check if the avatars work. If so, there's something after the point of downloading that's confusing CB for actually accepting them.

Hopefully that gives you a starting point to investigate some more.

Thanks,
Alex
The topic has been locked.