Topic-icon 500 errors on login and general setup issues

Active Subscriptions:

None
14 years 2 months ago #20668 by funbits
Thanks. It is working now. so far so good....
The topic has been locked.
Support Specialist
14 years 2 months ago #20672 by alzander
Glad to hear it. If you run into any other issues, let us know!

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20680 by ddny
So as I do not seem to be able to rid my site of this issue here is a question....

Is there a simple way to fully disable JFBConnect and then re-enable it at another time? Trying to avoid uninstalling it altogether as I do not want to lose all my settings and my issue may not even be with JFBConnect.

I wanted to try some tests with other FB connect modules and see if I have similar results. I also may leave it off for a while to wait and see if the new version and/or possible the addition of some diagnostics in an upcoming version may help pinpoint what is causing this.

Thanks again!
The topic has been locked.
Support Specialist
14 years 2 months ago #20686 by alzander
ddny,
Simply disabling the JFBConnect authentication, content, system, and user plugins as well as any of our modules you have enabled will effectively disable JFBConnect. Also, when uninstalling, we don't currently remove your configuration settings because we know it would be a bear to re-configure again.

Not sure where the 500 errors may be coming from. There are certainly cases where JFBConnect can have conflicts, but think we covered most of them. If you're only getting them during authentication, then I'd agree it something we should be able to help you fix. If they are random through your site on page loads, that's likely not caused directly by JFBConnect.

Either way, if you need assistance, just let us know!

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

None
14 years 2 months ago #20688 by ddny
Alex,

Thanks, glad to hear the config settings will be preserved! I am only getting the 500 error when logging in or logging out, rest of the site appears to be fine. It also seems to me more of a progressive issue. By that I mean as I log in/out throughout the day the problem gets more frequent.

If I start the day by clearing cache (both browser joomla) I am fine logging in either via joomla or facebook. As time goes by the 500 errors start to crop up until eventually they happen on virtually every attempt.

Best I can think to try is to disable JFBConnect and install some other FB login component and see if the same behavior occurs.

John
The topic has been locked.
Support Specialist
14 years 2 months ago #20691 by alzander
John,
Just logged into the Admin area of the site to look around again (hope you don't mind).

First, I tried logging into the front-end, and I got the 500 error. Then, I disabled the JFBConnect JomSocial Profile plugin. Now, the front-end login/register page shows, but has the following error:

Facebook API Error: name lookup timed out

That's a sign that JFBConnect is unable to resolve the IP address of facebook.com, which obviously prevents communication from occurring. Not sure why the JomSocial plugin was causing it to throw a 500 error, but if things break down on the basic communication level, weird things can happen.

To fix, you may want to talk to your hosting provider and see if they can verify that the following addresses are resolvable and reachable from your server:
api.facebook.com/
api-video.facebook.com/
api-read.facebook.com/
graph.facebook.com/
graph-video.facebook.com/
www.facebook.com/

One other odd thing you can try, but has had positive results for some users in the past is a minor code change. In the /administrator/components/com_jfbconnect/assets/facebook-api/base_facebook.php file, around line 185, you'll see:
public static $DOMAIN_MAP = array(
    'api'       => 'https://api.facebook.com/',
    'api_video' => 'https://api-video.facebook.com/',
    'api_read'  => 'https://api-read.facebook.com/',
    'graph'     => 'https://graph.facebook.com/',
    'graph_video' => 'https://graph-video.facebook.com/',
    'www'       => 'https://www.facebook.com/',
  );
Change the api_read line to:
'api_read'  => 'https://api.facebook.com/',

Hope that's not too confusing, but hopefully will help start you getting to the bottom of things.

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

None
14 years 2 months ago #20715 by ddny
Alex,

Thank you for taking another look! I really appreciate your efforts on this issue. I tried both of your suggestions with no luck.

HostGator reports all domain are resolvable and reachable from my server and they claim to have checked multiple times.

I made the code change you suggested and was not able to detect any change.

I spent most of last night working on this and may have come across something that resolves or at least substantially reduces the # of 500 errors. I found a post on the joomla boards indicating some issues with upgrading and the file in the libraries folder. based on the suggestion on the thread I redownloaded joomla 2.5.3 and uploaded a clean copy of the libraries folder. this seems to have helped quite a bit as while I do still get an occasional 500 error they are much less frequesnt than before.

In the course of all my attempts last night I did cause a small issue in my admin control panel I am hoping you have a fix for. When logged into my admin I no longer see JFBconnect in the components dropdown. Somehow between activating/reactivating and re-installing I seem to have lost this. Any chance you have a tip or some sql for me to restore this?

Thanks again for all the assistance!

John
The topic has been locked.
Support Specialist
14 years 2 months ago #20742 by alzander
John,
Honestly can't say that I have seen the missing menus before like that. They shouldn't just disappear, frankly. However, my recommendation would be to simply install JFBConnect again. You don't need to uninstall it first, your settings won't change. Going through the installation process should fix the menus and basically just 'refresh' your installation.. hopefully recreating the menus as well.

Let me know if that works. If not, we'll have to try to figure out where your menus could have gone.

Glad to hear the 500's have dwindled. Not really sure what could be causing the problems, especially so intermittently.

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20786 by ddny
Solved the menu issue - when I tried re-installing I got an error saying the item was already in the database. I simply deleted all the entries from the table and re-installed.

Unfortunately I am still struggling with the 500 view not found errors. I am going to post what happened this AM in case it sparks some ideas to try with anyone.

I was testing the site this morning using 2 different accounts logged in with one account in Chrome, the other in FireFox.

Used the site just fine and was able to log in/out at will with no issues.

After about 2 hours I got the following error in FireFox (note: system redirect plugin was OFF for testing as I have going through everything turning things off trying to isolate where this is coming from)

The website encountered an error while retrieving www.themagictoday.com/index.php?option=c...k=logout&return=Lw==
It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

I immediately went over to Chrome and tried to logout and received the same error . I checked my server log but there were no entries related to this.

Wondering if maybe turning on php errors to display on the site might yield some additional clues?
The topic has been locked.
Support Specialist
14 years 2 months ago #20808 by alzander
The 500 server error wouldn't show up with usable error in the Apache logs, you'd need to look at the PHP error logs.. those can be in many different places on your site, so I can't direct you exactly where to go.

If you enable Error Reporting in the admin area and disable GZip compression, it's likely that a viewable error will show up instead of the 500 error.. so I'd definitely recommend trying that and let us know how it goes.

Keep us posted on any of the above!
Alex
The topic has been locked.