× Joomla Facebook Connect support forum

Topic-icon Import af avatar to kunea

Active Subscriptions:

None
15 years 9 months ago #4472 by fb_749247087
In kunena integration setting - If is set "Always Import Profile Data:" to YES i get this error "There was an issue importing your Facebook avatar. The default avatar will be used." and there are no image in kunena profile.
The topic has been locked.
Support Specialist
15 years 9 months ago #4476 by alzander
Replied by alzander on topic Import af avatar to kunea
Does it import on the first registration correctly and it's only on the subsequent login that the avatar doesn't import, or is it all the time? We'll try to do some more testing on our end, but if you can answer the above, that should help us narrow it down quicker.
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4478 by fb_749247087
It dont import on first time.
The topic has been locked.
Support Specialist
15 years 9 months ago #4480 by alzander
Replied by alzander on topic Import af avatar to kunea
If you're up for making a minor modification in our code, that would help us greatly. We've had one other report of problems importing avatars, but it was for JomSocial. The following solution fixed it, and we'll likely make it a configuration option in the next release.

In the /components/com_jfbconnect/libraries/profile.php file, ~line 124, change the following line:
if (function_exists('curl_init') && ini_get('open_basedir') == '' && ini_get('safe_mode') == '') {
to
if (false) {

Basically, we have 2 ways we try to get the avatar. This will force the alternative method.

Please let us know your results!
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4491 by fb_749247087
I replaced the code.

- Old profile login same error with importing avatar.

- New reg i got a new error "Problem with saveing user" or something. But the user got registretet but no avatar.

- Old code with new reg:
Facebook profile successfully connected.
Successfully imported avatar from Facebook.
Error:
There was an issue importing your Facebook avatar. The default avatar will be used.
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4504 by fb_749247087
Any news in this one?
The topic has been locked.
Support Specialist
15 years 9 months ago #4513 by alzander
Replied by alzander on topic Import af avatar to kunea
Alright, if you wouldn't mind, can you create us a super admin account on your site and private message us the username/password? You can PM us by clicking the arrow under our name and clicking the mail icon. Not sure what's going on, but this will be the easiest and quickest way to figure it out. If you'd prefer not to send credentials, just let us know and we'll continue to help you here.
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4518 by fb_749247087
Here by sent.
The topic has been locked.
Support Specialist
15 years 9 months ago #4537 by alzander
Replied by alzander on topic Import af avatar to kunea
Thanks for sending your site information. Wanted to send you an update, though I don't have great news to report just yet.

We got into the site, and we can see the JFBConnect image being imported (it goes into the /images directory as jfbc_12345_tmp.jpg). However, it's being written as 0 bytes. We've never seen this issue, and are not sure what's causing it. It's not related to Kunena at all, it seems to be a problem with writing that file to your server. We'll try to run some more tests on our site to recreate it, if you know of any reasons that it might be failing, please let us know.

The only strange thing we saw on your site was that if we go to Help->Site Info and then click on PHP Information, it comes up blank. We've never seen that, and it makes it more difficult to know your full PHP configuration. Again, if you know why this might be, or know anything about your specific server configuration we should know, please let us know.

Alex
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4539 by fb_749247087
I got answer from my hoster.

He thinks it is disable functions that have be set to Off. I did that and now i dont get any errors on frontend when loggin in. But the image is still not importing to profile.

Php info is now visible so you can log in to my site and have look.


Actually it dont import avatar to CB either. If i have uploaded a image to my CB profile it gets deletet when i login next time.
But if i try to upload a avatar to my kunena profile it says the image is saved but dont show a image until i refresh the page..
Link to your CB profile: www.pan-haandbold.dk/index.php?option=co...le&user=73&Itemid=97

Kunena link: www.pan-haandbold.dk/index.php?option=com_kunena&Itemid=95
The topic has been locked.