Topic-icon Error on Facebook login after server migration

Active Subscriptions:

None
Bluehost has finally given me access to PHP 5.3 by moving me to a new server. I'm just having one minor issue as a result. When a Facebook user logs in, Joomla produces an error like this:
Unable to read the file: /home1/[...]/tmp/jfbc_1477453056pic_tmp.jpg
The user is successfully logged in despite the error. Directory permissions look good, regular Joomla login is fine. Is there something I need to reset somewhere?
The topic has been locked.
Support Specialist
14 years 6 months ago #15424 by alzander
Hmm.. shouldn't be. Can you check to see if the file above actually exists on your server? That file is what we download from facebook as the user's avatar, which is then processed by JomSocial, CB, etc and moved to a different directory.

If the file is there, try to open it and see if it's a real picture.

Generally, things to check:
* Your configuration.php file is pointing to the right tmp directory within your Joomla site
* In the Directory Permissions tab of the System Info area, the /tmp directory (and most/all others) are green/writable

Finally, let me know what profile plugins you have enabled, as that may help as well.

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

None
14 years 6 months ago #15446 by keenmouse
I should have mentioned that this is the same site where you fixed an error for me by filling in some blank settings (www.sourcecoast.com/forums/jfbconnect/jf...ssing-this-directive). My logs show intermittent HTTP 500 errors on that day, and I think one of them interrupted the JFBC installation. With that in mind, I uninstalled and reinstalled JFBC to try to fix the current problem, but it didn't help. I didn't reinstall the plugins and modules, though. Anyway, I'm hoping that this helps to point you in the right direction.

The file doesn't appear in the /tmp directory. I checked configuration.php and the Directory Permissions tab, and it all looks okay. I'll PM you my site details. Thanks again for your help.
The topic has been locked.
Support Specialist
14 years 6 months ago #15455 by alzander
I'm running into a different issue just trying to register. When I hit the Login with FB button, and don't have an account, I'm brought to the following URL:
/component/jfbconnect/?view=loginregister

This is normal, as that's the page where the user creates their username and password. However, on your site, I'm getting the following error:

You must be logged in to view this page.

There's no menu item associated with that page, so you couldn't have set that to registered there. Did you change any of the user permissions on the site or have anything else that might be denying access to JFBConnect? I wouldn't be surprised if both issues are related, but I don't have any great answers as to why parts of JFBConnect seem restricted.

We'll look a little more into Joomla 1.7's permissions to see if we can see what might be restricting it as well. I poked around using DB Replacer, and the assets table looks correct, but maybe we're missing something. If you have any ideas or knowledge of configuration changes you've made, that will help too.

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

None
14 years 6 months ago #15456 by keenmouse
Whoops ... I'm using ReReplacer from NoNumber to restrict access to pages so that I can set all pages public and thereby avoid 404's on protected pages when a user is not logged in, but obviously missed excluding the registration URL. Duh. I've completely disabled the ReReplacer item for now, to ensure that you don't run into it anywhere else I might have missed. Sorry about that.
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15457 by keenmouse
Is the assets table where you had to fill in the blank values before? What if I uninstalled JFBC, dropped the assets table, and reinstalled JFBC? I'm more than willing to do that. I'm quite sure that this is a problem with my site, and not with JFBC itself.
The topic has been locked.
Support Specialist
14 years 6 months ago #15463 by alzander
Whew! Keen, you found a new bug! Congratulations!!? :D

JomSocial has a few different ways to modify (resize) images for users. When ImageMagick is enabled (as on your site), the resize operation modifies and then moves the original file. In all other cases, the original is untouched. So, with ImageMagick, when we try to generate the thumbnail, after the full image is created, the file was moved an no longer existed!

We fixed it on your site, and added a bug to our tracker to get a similar fix into the next update of our JomSocial profile plugin. Thanks for the report!

As for the asset table, no, that table shouldn't ever be directly messed with. Before, to fix, I actually just disabled the JomSocial profile plugin.. went into JFBConnects configuration area and hit 'save'. That applied the defaults. Then, the JS Profile plugin could be enabled.

Good luck.. hope it's smooth sailing from here!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15468 by keenmouse
Just glad to hear it wasn't something I screwed up myself! Thanks so much for your help.
The topic has been locked.
Support Specialist
14 years 6 months ago #15475 by alzander
No problem. Thanks for pointing out a bug. We never like them, and fortunately they're pretty rare nowadays, but always good to keep fixin' things :D

Best of luck,
Alex
The topic has been locked.