Topic-icon FB Avatar not importing

Active Subscriptions:

None
14 years 3 months ago #19957 by simcro
Replied by simcro on topic FB Avatar not importing
I have tried chmod 777 -R for the whole joomla directory just to be sure and it is still not working. As previously stated the tmp directory settings are correct in the configuration file.
The topic has been locked.
Support Specialist
14 years 3 months ago #19987 by alzander
Replied by alzander on topic FB Avatar not importing
Simon,
Not sure what would be the issue then. Can you check the tmp directory for files that look like jfbc_123456pic_tmp? That will help us determine if the avatar is being correctly downloaded from FB, which is the first step. If it's there, check if the /images/comprofiler directory is getting new images. If so, then it's an issue updating the database or creating the user that is the problem. If not, that will help narrow down where to look next depending on what isn't getting written.

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

None
14 years 3 months ago #19998 by simcro
Replied by simcro on topic FB Avatar not importing
So I have tried an end to end test and the facebook avatar appeared in the /tmp directory. It did not appear in the /images/comprofiler directory.

I have checked the stat on the directory and the permission is 0777 owned by root. Is there perhaps a config file for CB or JFBConnect somewhere which maps this directory. The mapping would have changed with the migration. How does JFBConnect know to place the image file in that location? Just some initial thoughts.
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19999 by mtk
Replied by mtk on topic FB Avatar not importing

simcro wrote: So I have tried an end to end test and the facebook avatar appeared in the /tmp directory. It did not appear in the /images/comprofiler directory.

I have checked the stat on the directory and the permission is 0777 owned by root. Is there perhaps a config file for CB or JFBConnect somewhere which maps this directory. The mapping would have changed with the migration. How does JFBConnect know to place the image file in that location? Just some initial thoughts.

JFBC does not 'know' this at all, it talks to CB's API who does that.
so, I would do a very easy test of simply registering directly to CB (not through JFBC/FB), upload an avatar and see if that works.
also, in CB you can find tools to fix internal problem (mostly DB related), try verifying everything is ok there...

Mati
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20021 by simcro
Replied by simcro on topic FB Avatar not importing
This thread can be closed
Having checked the CB avatar upload it was clear that the PHP image processing mod (in my case GD2 but could be imagemagick or any other) was absent from the new installation and thus not processing the avatar images. Therefore through the CB API the upload of the FB avatar was not being processed by JFBConnect. My question in an earlier post about it being maybe an absent PHP Mod was spot on but it takes some working through to find out what. The problem lies in the fact that any error messages from CB are suppressed by JFBConnect which makes it hard to debug.
The topic has been locked.
Support Specialist
14 years 3 months ago #20029 by alzander
Replied by alzander on topic FB Avatar not importing
Simon,
Thanks for the further investigation. The GD library is included in PHP by default, so I don't usually jump to that. There are a ton of libraries included in PHP, so it's difficult to name all the possible things that need to be installed, we just assume the defaults are there and call out the non-default libraries required (which there really aren't, except cURL.. which isn't default, but is on something like 95% of servers).

Anyways, very glad you figured out the cause. We don't intentionally suppress CB errors. They just don't use the normal Joomla flow to display their errors, so when we call their functionality, it's not getting sent to Joomla.. it's trapped in CB land.

Should you run into anything else though, let us know.. and we'll help how we can!

Thanks,
Alex
The topic has been locked.