Topic-icon FB Login stopped working

Active Subscriptions:

None
14 years 3 months ago #20114 by kevstr
Replied by kevstr on topic FB Login stopped working
Alex,

I am checking file permissions, which files should I be looking at and what permissions (644/755/777) should I be giving them?


Also, I see a Error Log file in the jfbconnect/assests directory/ Opening that file shows me this:

[04-Mar-2012 09:30:27] PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[04-Mar-2012 09:30:27] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
[04-Mar-2012 09:30:27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0
[04-Mar-2012 09:30:27] PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
[04-Mar-2012 11:11:03] PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[04-Mar-2012 11:11:03] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
[04-Mar-2012 11:11:03] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0
[04-Mar-2012 11:11:03] PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0


Could any of these things be causing the issue?

Sorry if these are stupid questions. I launched my site Friday and I am expecting users to start using the site tomorrow.
The topic has been locked.
Support Specialist
14 years 3 months ago #20117 by alzander
Replied by alzander on topic FB Login stopped working
Not stupid questions at all.. no such thing when it comes to Facebook integration, this stuff is complex.

For the jfbcchannel.php file, 644 should be all you need. However, if you're on Linux, you'll want to make sure the owner of the file is proper too. Ideally, I'd make sure that the same settings are on that file that are on the main index.php file in the root Joomla folder. Configure it the same, and it should work, since Joomla already works. You shouldn't need to alter the directory permissions, but if you do have issues there, make sure each directory along the path of /components/com_jfbconnect/assets/ is 755 and, again, owned by the same user as the main Joomla index.php file.

On a side note, you should not have any files on your site marked as 777. That's a bad security setting and can cause you big headaches later on.

Finally, for that error log file, I'm not sure what that is. I'd recommend getting the settings above correct, delete the log file, see if you can access that page like I mentioned, and then see if the log file recreates itself. There is nothing in that file (or JFBConnect in general) that's trying to do anything with SQLite.. and that file shouldn't be touching the MySQL database either. That could be a PHP configuration issue or something else. We'll have to see after the permissions are fixed (if that's really what the problem is).

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

None
14 years 3 months ago #20120 by kevstr
Replied by kevstr on topic FB Login stopped working
I updated all the permissions to 755. They were all set to 644. I am still getting the login denied issue as well as the IE issue.

One thing we did change on Friday was our Facebook page. We updated it to the new "TIMELINE" feature. Could this be causing any problems? We have not changed anything on the Joomla site that we think would cause this issue. Like I said, it was working fine for weeks and all of the sudden...its not.

Also, that error log file did not recreate itself after I deleted it.
The topic has been locked.
Support Specialist
14 years 3 months ago #20121 by alzander
Replied by alzander on topic FB Login stopped working
Your FB Page and your Application are actually very separate. A change there shouldn't have any affect on your site's use of Facebook Connect for logging in. Our Facebook Page was recently updated to the new layout as well (www.facebook.com/SourceCoast) . Feel free to try logging in here again and see if you have the same problem.

The jfbcchannel.php file is still throwing the 500 error. I am able to access a CSS file out of the same directory (www.marchmelee.com/components/com_jfbcon...ssets/jfbconnect.css). So, the directory permissions seem right. There seems to be something preventing that php file from executing though. Unfortunately, I don't know what it is that would cause that if the permissions and owner are correct. Can you look at your PHP or Apache error logs to see if there is any notification in there as to why the file can't be executed? I don't have a lot of other guesses at this point as to what may be causing it, but that file needs to be able to run if you go directly to it without throwing the internal server error message...

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20124 by kevstr
Replied by kevstr on topic FB Login stopped working
OK, I went back in time and restored the site to a point where I know it was working, and its not working...Frustrating to say the least.

Using Chrome's Developer Tools, the site is throwing a bunch of errors that I do not even know where to begin. For instance:
Unsafe JavaScript attempt to access frame with URL https://www.facebook.com/plugins/comments.php?api_key=317288304977637&channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df11a922cb8%26origin%3Dhttp%253A%252F%252Fwww.marchmelee.com%252Ff3a224c1d4%26relation%3Dparent.parent%26transport%3Dpostmessage&colorscheme=light&href=http%3A%2F%2Fwww.marchmelee.com%2F&locale=en_GB&numposts=10&sdk=joey&width=500 from frame with URL https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f11a922cb8&origin=http%3A%2F%2Fwww.marchmelee.com%2Ff3a224c1d4&relation=parent.parent&transport=postmessage&type=resize&height=160&ackData[id]=1. Domains, protocols and ports must match.


Any idea what this means? "Unsafe Javascript..." and then "Domains, protocols and ports must match"?

Would it be beneficial for you to log in to the backend to ensure everything is properly configured? I am willing to pay for any work that needs to be done to get this up and running in time for my site to be ready for this week. It is of the utmost importance since my site is active for 4 weeks out of the entire year and it starts this week.
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20125 by kevstr
Replied by kevstr on topic FB Login stopped working
Disregard. I think I have fixed the problem.

Seems this all stemmed from installing Akeeba's AdminTools, which changed the USERID in Joomla from 42 to another number. Since it was expecting userid 42 and wasn't getting it, it broke. When I changed the userid for myself back to 42, it seems to work fine.

Does this make sense to you or was this just a coincidence?
The topic has been locked.
Support Specialist
14 years 3 months ago #20130 by alzander
Replied by alzander on topic FB Login stopped working
Kevin,
That would definitely explain it. JFBConnect has a database table that is what we use to 'map' a Joomla user ID to their corresponding Facebook identifier. Everything is based on the Joomla ID never changing, which it never really should. While the change from Akeeba is a good recommendation, it will cause problems like this with any extension that does a user mapping (forums, profile systems, etc).

Glad you found the issue. If you need to manually update the user-mapping for JFBConnect, we recommend going into the "User Map" area of JFBConnect, delete the mapping for your user, changing the ID with Akeeba and then re-connecting with Facebook.

Hope that helps, and glad you found the problem. Was pretty confused myself.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20132 by kevstr
Replied by kevstr on topic FB Login stopped working
Thanks Alex for all your time and help on this. Man that was frustrating. Glad it is working as expected now. Thanks again!
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20142 by mtk
Replied by mtk on topic FB Login stopped working

kevstr wrote: Thanks Alex for all your time and help on this. Man that was frustrating. Glad it is working as expected now. Thanks again!

glad to hear the problem was solved.
please let us know if you need help with anything else.

Mati
The topic has been locked.