× Joomla Facebook Connect support forum

Topic-icon Errors During Registration

Active Subscriptions:

None
15 years 1 month ago #9310 by dtaftjr
JFBConnect Version: 3.2.1
JFBConnect JomSocial Version: 3.2.1
Joomla Version: 1.5.22
JomSocial Version: 2.2.1
PHP Version: 5.2.17
DataBase Version: 5.0.90

Components Installed:
SH404SEF: 2.2.4.955
AEC: 0.14.4
JSPT: 3.1

Having a problem... Just installed JFBConnect, ran through the setup and enabled the plugins... Edited the template file to use the JFBConnect Button..

Steps that lead me to the Problem:
Deleted user account in back-end...
On the homepage clicked on the log in with facebook button...
Granted the app permissions...
Registration Page: Enter new username and password... Click on register...
Get a blank page... (Internal 500 Error shows on FireBug)
THE PROBLEM

Set error reporting in back-end to maximum...
Disabled SEF (Joomla and SH404SEF)
Set Registration Required in AEC to OFF

Ran the steps above once more and the errors I am getting are below... Problem seems to be with the import of the FaceBook avatar.. I have verified read/write access to the /tmp folder and it is fine... That is granted that the plugin is attempting to use the FTP layer to do so...

EDIT:
I checked the tmp folder and it is apparent that the plugin is not downloaded the avatar...
Disabled "Import Avatar" and it works fine... If I re-enable it I get the Internal Error 500 page again with the same errors below...
Notice: Undefined index: message in /var/www/vhosts/sample.com/httpdocs/plugins/jfbcprofiles/jomsocial.php on line 200

Warning: getimagesize(/var/www/vhosts/sample.com/httpdocs/tmp/jfbc_100001228321752pic_tmp.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php on line 204

Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read the file: /var/www/vhosts/sample.com/httpdocs/tmp/jfbc_100001228321752pic_tmp.jpg' in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php:237 Stack trace: #0 /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php(237): Imagick->readimage('/var/www/vhosts...') #1 /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php(766): CImageHelper::createThumb('/var/www/vhosts...', '/var/www/vhosts...', 'image/jpg', 64, 64) #2 /var/www/vhosts/sample.com/httpdocs/plugins/jfbcprofiles/jomsocial.php(334): cImageCreateThumb('/var/www/vhosts...', '/var/www/vhosts...', 'image/jpg') #3 /var/www/vhosts/sample.com/httpdocs/components/com_jfbconnect/libraries/profile.php(351): plgJFBCProfilesJomsocial->updateAvatar('jfbc_1000012283...', '104') #4 /var/www/vhosts/sample.com/httpdocs/components/com_jfbconnect/libraries/profile.php(121): JFBConnectProfileLibrary->migrateFBAvatarToP in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php on line 237
The topic has been locked.
Support Specialist
15 years 1 month ago #9321 by alzander
Replied by alzander on topic Errors During Registration
dtaftjr,
Let us do a little more testing utilizing the FTP layer. I'm assuming you have this enabled in the Global Configuration area of Joomla and that's the required way that you'll need the avatar downloaded? Right now, I'm pretty sure we use the internal Joomla copy method, which should automatically choose FTP or 'system' copy depending on your configuration, to move to the correct folder. If it's not copying there, I'm not immediately sure why it's not.

I know you seemed to diagnose it above, but I've got to ask specifically.. if you go to Help->System Info, and then Directory Permissions, can you verify that the tmp folder is green and writable?

We'll try to test with a locked directory, but writable by FTP, and see if we can figure out the problem. If we can't, we may ask for admin access to your site to try and determine the cause.

Hope this helps, and sorry for the troubles.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9369 by dtaftjr
Replied by dtaftjr on topic Errors During Registration
Hello,

I understand the need to "ask specifically", besides you never know what checking a second time might show...

Yes all folders are writable.. And as you suspected if I turn FTP off all folders become well un-writable.

You are correct in assuming the Joomla Copy method should be using whatever method is selected in the global config.. I.E. whether FTP is configured or not...

I have gone as far as enabling debug logging in our apache server as well as enabling maximum logging on Joomlas end and nothing is showing anything other than what I have posted above.

If you need super-admin access would be fine with pm'ing you an account.
The topic has been locked.
Support Specialist
15 years 1 month ago #9431 by alzander
Replied by alzander on topic Errors During Registration
Sorry for the delayed response. Yes, I think we're going to need access to the site. There's another JomSocial avatar issue that we're investigating now, which we think is unrelated, but if we can tie them together and fix both at once, great!

PM'ing the credentials would be great. We'll install extPlorer (a file manager) if it's not already present so we can make some modifications to JFBConnect files, and will keep you posted on anything we need to change. As always, if you have a development site, we'd prefer to work there.

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

None
15 years 1 month ago #9444 by dtaftjr
Replied by dtaftjr on topic Errors During Registration
I pm'd you the user details.

Hope we can get this resolved quickly.
The topic has been locked.
Support Specialist
15 years 1 month ago #9469 by alzander
Replied by alzander on topic Errors During Registration
Thanks for the PM with user credentials. However, there's a small problem... I don't have the URL for the page, and you (sneakily) replaced it in the log above with sample.com :)

One thing that possible could fix your issue is that we just updated the JomSocial Profile plugin to version 3.2.2. This fixed a few minor problems, but one of them was a 500 error under certain configurations. Feel free to try that out and see if it helps.

If not, please send the URL and we'll help you out as soon as possible.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9506 by dtaftjr
Replied by dtaftjr on topic Errors During Registration
Sorry about that.. I just pm'd you the url...

Were trying to keep the Search Engine Spiders to an absolute minimum right now...

EDIT:
Updated the JomSocial Profile Pluing to 3.2.2 the problem is still present
Notice: Undefined index: message in /var/www/vhosts/sample.com/httpdocs/plugins/jfbcprofiles/jomsocial.php on line 201

Warning: getimagesize(/var/www/vhosts/sample.com/httpdocs/tmp/jfbc_100001228321752pic_tmp.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php on line 204

Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read the file: /var/www/vhosts/sample.com/httpdocs/tmp/jfbc_100001228321752pic_tmp.jpg' in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php:237 Stack trace: #0 /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php(237): Imagick->readimage('/var/www/vhosts...') #1 /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php(766): CImageHelper::createThumb('/var/www/vhosts...', '/var/www/vhosts...', 'image/jpg', 64, 64) #2 /var/www/vhosts/sample.com/httpdocs/plugins/jfbcprofiles/jomsocial.php(334): cImageCreateThumb('/var/www/vhosts...', '/var/www/vhosts...', 'image/jpg') #3 /var/www/vhosts/sample.com/httpdocs/components/com_jfbconnect/libraries/profile.php(351): plgJFBCProfilesJomsocial->updateAvatar('jfbc_1000012283...', '113') #4 /var/www/vhosts/sample.com/httpdocs/components/com_jfbconnect/libraries/profile.php(121): JFBConnectProfileLibrary->migrateFBAvatarToP in /var/www/vhosts/sample.com/httpdocs/components/com_community/helpers/image.php on line 237
The topic has been locked.
Support Specialist
15 years 1 month ago #9510 by alzander
Replied by alzander on topic Errors During Registration
Howdy! We just got into your site, and everything looks configured normally within Joomla. I changed sh404SEF to 'skip' SEF URL creation for JFBConnect. This usually isn't required, but I wanted to test with it off. I left it off, but can be safely re-enabled if you wish (we only have 1 URL).

Within JFBConnect, I enabled "Show Facebook API Errors on Front-end". With this enabled, when I try to register, I get the normal permissions pop-up, but then on the Login/Register page, the following error appears:

Facebook API Error: Error validating access token: User 125... has not authorized application 1989....

That's not an error we've ever seen before because Facebook should be taking care of the authorization. If I click the Login button again, no permissions box comes up, which signals that the application has been approved. Finally, when I look at my approved applications in Facebook, your app shows up.. which is strange.

I then tried to go to System Info, and see what version of PHP you were using, but got an error loading the page. I disabled GZip compression in Global Config, and I could hit the Info page. This had no effect on logging in. I left this disabled as well, simply because if it caused an error in one place, it may be in others.

So, now I'm at a little bit of a loss for what's happening, so I'll ask you to check the following things:
1) When I visit your Facebook application page:
www.facebook.com/apps/application.php?id=198.... (Your app ID)
The "Go To App" link doesn't go to your page. Can you check the Site URL and Base URL's in your application configuration and make sure they are:
Site URL: www.site.com/
Base URL: site.com

2) Re-verify that the API, Application, and Secret keys are all correct in your application. If they are wrong, JFBConnect won't be able to validate a user's connection from Facebook and approval of your app.

I hope this rings a bell or starts you on the right track. Definitely keep us posted!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9524 by dtaftjr
Replied by dtaftjr on topic Errors During Registration
Well sounds like you are at the same point as I....

The user application process works perfectly with the exception of the fact that it does not download the user avatar when that option is selected.

The user data and fields map correctly, just no avatar.

If you would like since, the account used for the developer.facebook.com account if you wish to verify. The url's are set and the keys are correct hence why all aspects of the sync are good..

For whatever reason the avatar is not downloaded... When you check the tmp folder you can clearly see that the file is not there hence the fatal error which results in the Internal Error 500 page....

Oh and for as to why the App doesn't show is simply because I have not published it...
The topic has been locked.
Support Specialist
15 years 1 month ago #9528 by alzander
Replied by alzander on topic Errors During Registration
Allllrighty then. I don't know what was happening earlier, but I just tried to register, and everything went just fine. Facebook seems to be having a bad day today.

Anyways, I installed extPlorer on your site (a file manager). I then updated the save path for images from the tmp directory to the images directory, and my avatar imported perfectly. I'm not sure what's different about these directories, but feel free to try a different one. We do add, what are supposed to be, temporary files, and do not clean them up. So you may want to try something like /images/tmp so you can clear the directory periodically. Each image is only a few kilobytes, so it's not going to get out of control too quickly.

To update the directory, we simply changed line 366 in /components/com_jfbconnect/libraries/profile.php to:
return JPATH_SITE . DS . 'images';
- from -
return JPATH_SITE . DS . 'tmp';

Please test, and I hope this helps get you on your way!
The topic has been locked.