× Joomla Facebook Connect support forum

Topic-icon Jfbconnect Fails After Site Migration

Active Subscriptions:

None
15 years 3 months ago #7774 by jr999
I have an environment that consists of a standalone development machine and then a standard testing server that is visibile to our whole organization both server are running the same version of everything (joomla 1.5.x and jfbconnect 3.1.1. I created 2 facebook apps (1 for each domain/server). When I move my code from the dev server to the testing server it breaks jfbConnect in that I get a blank page when joomla tries to redirect to:

contact.innotest.com/index.php?option=co...oginregister&lang=en

It works fine on the development server. The method I have always used to migrate is that I copy the whole joomla db and zip the entire joomla directory and copy it to the testing server. I then replace the configuration.php file and in this case I run a sql script to update the jfbconnect_config table with the new settings for the facebook app e.g.

UPDATE jos_jfbconnect_config SET VALUE='111734612236975',updated_at=NOW() WHERE setting='facebook_app_id';
UPDATE jos_jfbconnect_config SET VALUE='',updated_at=NOW() WHERE setting='facebook_api_key';
UPDATE jos_jfbconnect_config SET VALUE='',updated_at=NOW() WHERE setting='facebook_secret_key';

Is there something I am missing in the migration process that would cause the error I am seeing?
The topic has been locked.
Support Specialist
15 years 3 months ago #7775 by alzander
I hid your keys.. tsk tsk.. shouldn't be giving those out :)

I don't know why you're getting an error offhand, and the link you provided is definitely not working/right (doesn't even look like a Joomla site, but maybe that's part of the issue).

If you're getting a blank white page, try turning on error reporting, and let us know what the error actually is. That usually helps pinpoint errors very quickly. For info on how to do that, see:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

Other than that, the migration process you mention sounds good.. there isn't anything in JFBConnect that's 'aware' of the server it's on, so it should move seamlessly from one location to the next without too much fuss.
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7782 by jr999
I guess I should have known not to display my "secret" key. I am a facebook rookie. I enabled error reporting to maximum and still get a blank white page. The actual url for the site is contact.innolyst.com so you can have a look there if you'd like. I have remigrated the site again and still get the same result. Again this all works perfectly on the dev site (which is not accessible to the internet). Thanks for your help.
The topic has been locked.
Support Specialist
15 years 3 months ago #7793 by alzander
Well huh.. I've not seen that problem before. When I try in Chrome, I get:
Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
That's basically saying that the site is responding with nothing.. no header, no text, nothing. Very stange to say the least.

Sorry for the troubles, but if it's possible can you send us credentials for the site?

Some possible causes (and solutions):
1) Character encoding problems - You transfered from a Windows box to a Linux server.. in that case, line breaks and other things aren't always compatible. Shouldn't have just cropped up, but always a possibility.
Solution: Re-install JFBConnect (the component) onto the live site. You don't need to uninstall first or re-configure.. all your settings should remain
2)Alright.. thought I had 2, but don't remember the 2nd.. so maybe try 1)

Thanks
The topic has been locked.
Support Specialist
15 years 3 months ago #7794 by alzander
Ahh.. I remembered. Try removing any template overrides you may have for the loginregister page. This would be named:
/templates/<YOUR_TEMPLATE>/html/com_jfbconnect/loginregister/default.php

If you have that file, rename it to default_mycopy.php and try again. If it works, then something in your template override (if you have one) is causing the problem.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7947 by jr999
Sorry for the delay in getting back to you. I don't have an override template. I have since migrated the code to another linux server and get the same result? We had to change the credentials back but if you want to look at it again I can change the credentials back.
The topic has been locked.
Support Specialist
15 years 3 months ago #7958 by alzander
Yeah, please send me some credentials so I can look into it further. PM me, please, the address of the server and the credentials. We usually don't keep Super Admin PM's in our inbox, just in case.

Thanks!
The topic has been locked.
Support Specialist
15 years 3 months ago #8006 by alzander
Howdy, and sorry for the delay. I got into your site and found (what I'm pretty sure is) the issue. Your server is running PHP 5.1.2, which we just found out is incompatible with the Facebook library (requires 5.1.3 or higher..). Fortunately, there's an easy fix, which worked for another user. Please see the post below:
www.sourcecoast.com/forums/topic?id=1802&p=1#p7797

With that code change, you shouldn't see the white page. Your server seems to have error reporting hard-coded to off, which is why, even with Joomla enabling errors, it was still just white.

This change has already been incorporated into the 3.2 release currently in development.

Sorry for the troubles, and please change your credentials. I've already deleted your PM.

Good luck, and let us know how it goes!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #8040 by jr999
The fix you described in the other forum definitely resolved the issue. Thanks for investigation.
The topic has been locked.
Support Specialist
15 years 3 months ago #8054 by alzander
Great! Gld to hear it, cause I would have been clueless otherwise! Again, this fix will be in the next release, so you shouldn't have this problem again.

Thanks for keeping us posted, and good luck!
The topic has been locked.