Topic-icon New Facebook users redirect after registration.

Active Subscriptions:

None
12 years 11 months ago #10260 by kmonty
Hiya!
Just bought this the other day for my site and everything looks good except. I have been seeing a issue this on new Facebook users, I have checked the redirects of all my modules and the components. The issue happens after the setting up username password screen, after being recognized and pulled from Facebook, its not redirecting to the JomSocial user profile as I set. I am just baffled of what is breaking the new Facebook user redirect for my site, and it seems to be pointing to a image? I have searched the forum several times and hope its just something simple and small that I missed.

Joomla! 1.6.3 Stable [ Onward ] 18-Apr-2011 23:00 GMT
JFBConnect Version: 3.3.0
JomSocial Version: 2.2.2.0
Web Server Apache/2.2.16 (Debian)
PHP Version 5.3.3-7+squeeze1
MySQL client version: 5.1.49

ERROR:
http://www.site.com/en/component/jfbconnect/?view=loginregister
1 - Unable to read the file: /var/www/clients/client/web/tmp/jfbc_506123456pic_tmp.jpg
Adding the site, if you wish to see it. www.nuvul.com
The topic has been locked.
Support Specialist
12 years 11 months ago #10270 by alzander
Is that an error message that's occurring on your site and you're seeing it on a solid white page, or is it showing somewhere else?

Can you check your directory permissions by going to Help->System Info and clicking on the directory permissions tab? Make sure that the tmp directory is green and writeable. Also, check to make sure the directory is: /var/www/clients/client/web/tmp/ If not, let us know and we can figure out the issue.

A temporary fix, to prevent issues, is to disable the import of profile images during registration/login. Once fixed, you can re-enable and their avatars will be updated when the login again.
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #10279 by kmonty
No that was not the exact directory, more of a example...
The directory is writable: /var/www/clients/client1/web2/web/tmp (Temp directory) Writable
FTP shows directory is 755 for the /tmp directory
I have tried setting the directory to 777, but it did not resolve the issue.

Disabling import of profile images does resolve the issue, but I am still wish the function.

Appreciate the help!
The topic has been locked.
Support Specialist
12 years 11 months ago #10286 by alzander
We know of a bug where we're incorrectly setting the temp path. If what you see in the Directory Permissions area isn't the path in the error above, please try the following. It involves a little code, but hopefully, should be pretty easy.

In the /components/com_jfbconnect/libraries/profile.php file, at line 367, you'll see where we're setting the tmp path. Unfortunately, it's hard-coded to just SITE_PATH/tmp. We should be dynamically finding it if you aren't using the default. Please try to update the line to the following:
return "/var/www/clients/client1/web2/web/tmp";

Hopefully that will fix you right up. If so, please let us know. If not... well, please let us know! :)
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #10290 by kmonty
That did not seem to fix the problem, I turned on Debug System in Joomla configuration.
Info:
:~# php -v
PHP 5.3.3-7+squeeze1 with Suhosin-Patch (cli) (built: Mar 18 2011 20:10:12)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

The Error Page Shows:
Unable to read the file: /var/www/clients/client1/web2/web/tmp/jfbc_506131082pic_tmp.jpg
Call stack
# 	Function 	Location
1 	JSite->dispatch() 	/var/www/clients/client1/web2/web/index.php:43
2 	JError::raiseError() 	/var/www/clients/client1/web2/web/includes/application.php:199
3 	JError::raise() 	/var/www/clients/client1/web2/web/libraries/joomla/error/error.php:179

Digging a little further I see this in my server error logs:
[Sat May 21 08:35:14 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_users&view=users
[Sat May 21 08:35:22 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_users&view=users
[Sat May 21 08:35:58 2011] [warn] [client 10.1.10.10] mod_fcgid: stderr: PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/clients/client1/web2/web/libraries/phputf8/str_ireplace.php on line 40, referer: http://www.nuvul.com/index.php/en/component/jfbconnect/?view=loginregister
[Sat May 21 08:35:58 2011] [warn] [client 10.1.10.10] mod_fcgid: stderr: PHP Warning:  getimagesize(/var/www/clients/client1/web2/web/tmp/jfbc_506131082pic_tmp.jpg): failed to open stream: No such file or directory in /var/www/clients/client1/web2/web/components/com_community/helpers/image.php on line 204, referer: http://www.nuvul.com/index.php/en/component/jfbconnect/?view=loginregister
[Sat May 21 08:38:14 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_config
[Sat May 21 08:38:23 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php
[Sat May 21 08:38:32 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_users&view=users
[Sat May 21 08:38:36 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_users&view=users
[Sat May 21 08:38:39 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_checkin
[Sat May 21 08:38:41 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_checkin
[Sat May 21 08:38:42 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_cache
[Sat May 21 08:38:45 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_cache&client=0
[Sat May 21 08:38:46 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_cache&view=purge
[Sat May 21 08:38:47 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_cache&view=purge
[Sat May 21 08:39:13 2011] [warn] [client 10.1.10.10] mod_fcgid: stderr: PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/clients/client1/web2/web/libraries/phputf8/str_ireplace.php on line 40, referer: http://www.nuvul.com/index.php/en/component/jfbconnect/?view=loginregister
[Sat May 21 08:39:13 2011] [warn] [client 10.1.10.10] mod_fcgid: stderr: PHP Warning:  getimagesize(/var/www/clients/client1/web2/web/tmp/jfbc_506131082pic_tmp.jpg): failed to open stream: No such file or directory in /var/www/clients/client1/web2/web/components/com_community/helpers/image.php on line 204, referer: http://www.nuvul.com/index.php/en/component/jfbconnect/?view=loginregister
[Sat May 21 08:40:21 2011] [error] [client 10.1.10.10] File does not exist: /var/www/nuvul.com/web/administrator/images, referer: http://www.nuvul.com/administrator/index.php?option=com_config
Thanks for the support!
The topic has been locked.
Support Specialist
12 years 11 months ago #10297 by alzander
No problem for the support, and sorry we don't have a great answer for you yet. The only other suggestions we have right now are to try:
1) Turning on the "Display API Errors On Front-End:" setting in the Facebook API configuration area. Let us know if any errors show during the login process.
2) Turn on the "Disable SSL Certificate Validation:" setting in the same section and try.

I honestly think there is very little chance that either of these will fix the issue. If you'd like us to look at your site's admin area, and possibly make some code changes to our component to try to fix it, pleaase feel free to Private Message us a set of administrator credentials.

Thanks and we'll hopefully get to the bottom of this soon.
The topic has been locked.
Active Subscriptions:

None
12 years 11 months ago #10321 by kmonty
Well I have forward the info in a PM, if you guys see a possible bug, I'll hold off on working on the site. I know there are many installed components, and it could be just about anything. Otherwise, I will start to prep a backup, and a complete clean install. Not sure if the issue will return, but the same components will be installed again. I hate to do it to a site I am working on, but I have done it COUNTLESS times before. I'd rather get things worked out before the site becomes big, right now everything is just setup without content, I'd hate for this to happen when I actually get things going.

If a complete re-install is the case, are there any things to avoid?
Like to not fill out Jomsocial's Facebook integration at all?
Does Jreview's Facebook integration affect anything?
Or any issues with:
JomSocial Amazon S3 Intergration, CometChat, JomCDN, JCH_Optimize, RocketTheme Gantry or extentions (RokBox,RokTab,etc..)
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11456 by lmhwee

alzander wrote: We know of a bug where we're incorrectly setting the temp path. If what you see in the Directory Permissions area isn't the path in the error above, please try the following. It involves a little code, but hopefully, should be pretty easy.

In the /components/com_jfbconnect/libraries/profile.php file, at line 367, you'll see where we're setting the tmp path. Unfortunately, it's hard-coded to just SITE_PATH/tmp. We should be dynamically finding it if you aren't using the default. Please try to update the line to the following:

return "/var/www/clients/client1/web2/web/tmp";

Hopefully that will fix you right up. If so, please let us know. If not... well, please let us know! :)


I change this code to other folder than tmp like tmp_facebook, set permission as 755, and problem solve.
The topic has been locked.