Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Facebook Connect Panel

Asked Modified Viewed 58,947 times
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
asked
Veteran Member

[mp]434[/mp]
Edited by Ankur on 31-12-2011 21:36,
0 replies

84 posts

S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

You have the files, if you downloaded the infusion.

I'm still not sure what the problem is. I need to get past the above problem with connecting before I can see if there are any other problems.
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Quote

Skeeve wrote:

You have the files, if you downloaded the infusion.

I'm still not sure what the problem is. I need to get past the above problem with connecting before I can see if there are any other problems.

Yes, but if you have enabled BOM in your editor and resave the file, editor would insert BOM into the file. As I said, try to [bcolor=#ffcccc]change charset[/bcolor] for this file ([bcolor=#ffffcc]/infusions/facebook_connect_panel/includes/config.php[/bcolor]) for example [bcolor=#ffcccc]to Win1250[/bcolor].
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Ok, here is the .zip of the file I'm using on my site:

http://www.atheiststoday.com/downloads.php?cat_id=2&download_id=22

Only thing I changed was my Facebook info.
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

I can not download it.
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Lemme make sure it's public.

Ok, fixed.
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

It looks, that you don't have BOM in the file, but this error is commonly caused by BOM... Could you try to save the file with another charset (no UTF8)?
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Config.php is the only file that doesn't look screwed up. The rest are just lines of text that aren't separated. Is that BOM?

If so, I'll just delete it all and forget the infusion. This is the first time I've seen files like this, they've always looked "normal" to me when I edit them.

I'm at work, so I'll look later today when I'm home. Thanks for your time, miskith.
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Quote

Wiki:
The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream. Its code point is U+FEFF. BOM use is optional, and, if used, should appear at the start of the text stream. Beyond its specific use as a byte-order indicator, the BOM character may also indicate which of the several Unicode representations the text is encoded in.[1]

It's invisible character... Error is printed, because there is in file /home/.../redirect.php on line 106 is called function header(), but header was already sent in /home/.../config.php on line 1. Headers are sent, if is in file some output (text, html, spaces...). And as you can see, in config file on line 1 isn't any output, but it looks that there is BOM (invisible character - for you, but not for PHP compiler). From this reason, PHPFusion uses ob_*() functions. Every output is stored in buffering and therefore you can call header() (redirect()) on any line of your code. But BOM is on line 1 before "<?php" and therefore there is output before calling header().
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

OK, thank you for explaining it to me. I can understand it now. I'll work on it and get back to this thread soon.
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Ok, I downloaded Bluefish v2.2.1 and started with a fresh config.php. Edited in my info and uploaded it over my old config.php.

I connected my account to Facebook. :)

Now to test the login.

Thank you very much miskith!
Edited by Skeeve on 21-01-2012 14:17,
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
answered
Veteran Member

Quote

miskith wrote:

BOM is only in UTF8 charset and in this file aren't any translation... So you can try to save it (/infusions/facebook_connect_panel/includes/config.php) in another charset like Windows1250 or ISO 8859-2.

EDITED: Or you can send me this file through PM (compressed into .rar, .zip or...).


Thanks a lot miskith... :)

I just read few Threads on web and found that it was related to BOM.

So this can be resolved by changing the File encoding to something else than UTF-8... right ?
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Quote

Ankur wrote:

Quote

miskith wrote:

BOM is only in UTF8 charset and in this file aren't any translation... So you can try to save it (/infusions/facebook_connect_panel/includes/config.php) in another charset like Windows1250 or ISO 8859-2.

EDITED: Or you can send me this file through PM (compressed into .rar, .zip or...).


Thanks a lot miskith... :)

I just read few Threads on web and found that it was related to BOM.

So this can be resolved by changing the File encoding to something else than UTF-8... right ?

Yes...
0 replies
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

I have been using Notepad since 2008 to edit files for mods/infusions and never had any trouble until now.

But, using Bluefish seems to have fixed this particular problem, so I'm using it from now on to edit.

Thanks again, miskith.
0 replies
M
miskith
M
My projects:
PHP-Fusion Czech | miskith portfolio | theConnex (In preparation) | Online game (Future project)
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Another good editor is PSPad (I'm using him): http://www.pspad.com/en/.
0 replies
J
jeepxj4021
J
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

Quote

Unknown column 'user_name' in 'where clause'
Fatal error: Class 'Authenticate' not found in public_html/infusions/facebook_connect_panel/register.php on line 218


and my debug panel says:

Quote

Useful Session Values :
You are Not Connected with Application.
SESSION['fbc_status'] = 0


then when I go back to my index page, the Facebook panel is the only thing that loads and goes across the entree screen saying:

Quote

Fatal error: Class 'Authenticate' not found in /home/greenspe/public_html/infusions/facebook_connect_panel/facebook_connect_panel.php on line 71


any thoughts?
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
answered
Veteran Member

Quote

jeepxj4021 wrote:

Quote

Unknown column 'user_name' in 'where clause'
Fatal error: Class 'Authenticate' not found in public_html/infusions/facebook_connect_panel/register.php on line 218


and my debug panel says:

Quote

Useful Session Values :
You are Not Connected with Application.
SESSION['fbc_status'] = 0


then when I go back to my index page, the Facebook panel is the only thing that loads and goes across the entree screen saying:

Quote

Fatal error: Class 'Authenticate' not found in /home/greenspe/public_html/infusions/facebook_connect_panel/facebook_connect_panel.php on line 71


any thoughts?


It looks like you are using older version of PHPFusion. You must have PHPFusion 7.02+.
0 replies
J
jeepxj4021
J
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

Quote

Ankur wrote:

It looks like you are using older version of PHPFusion. You must have PHPFusion 7.02+.


Ok, I have made substantial changes to my coding. Is it possible to upgrade to a higher version without having to redo everything?
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Hardly.
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
answered
Veteran Member

Quote

jeepxj4021 wrote:

Ok, I have made substantial changes to my coding. Is it possible to upgrade to a higher version without having to redo everything?


You may take a backup of your site first and then go with Upgrading. However, if you have more questions regarding Upgrading, Please make a new Thread then... B)
0 replies
J
jeepxj4021
J
  • Junior Member, joined since
  • Contributed 26 posts on the community forums.
  • Started 7 threads in the forums
answered
Junior Member

Updated to v7.02.04. Works Great! however, is it possible to have it redirect you to previous URL after connecting with Facebook?
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 84 posts
  • Votes 0 votes
  • Topic users 20 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet