Jo
(@tintedhalo)
I’m battling with the same problem.. it keeps saying that I don’t run on PHP5 when clearly the cPanel says I am: http://i46.tinypic.com/9igv0m.jpg I’ve managed to install the plugin AND activate the base part. Now I’m trying to activate the SFC Login and I get “Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected ‘{‘ in /xxxxxxx/wp-content/plugins/simple-facebook-connect/sfc-login.php on line 210”. The funny thing is that first it said I’m running on PHP 4.9. but after trying to install it again for few times, it DID let me install it. But now I’m back to this problem. So is the problem on plugin side or host side?
Okay, let me make this perfectly clear:
The plugin CANNOT be mistaken about what version of PHP you are running.
If you are getting a syntax error, unexpected ‘{‘ type of thing, then YOU ARE NOT RUNNING PHP 5.
This is not debatable. It’s not wrong. PHP itself is telling the plugin what version it is, and if you somehow manage to bypass the checks and activate the plugin anyway, then IT WILL NOT WORK.
I don’t care what cPanel says. PHP itself is telling the plugin what its version is. It can’t be wrong.
BTW, that syntax error? You’re getting it because you’re running PHP 4, which doesn’t understand “try” statements. Those are a feature that was added in PHP 5.
Version 0.21 of the plugin adds a much better check and message for this. When you try to activate the base plugin, it checks the version. If it’s not PHP 5, it’ll give you a really good error message, telling you what version you’re actually running. If that message says you’re running 4.9, then you’re running 4.9. End of debate. Talk to your host and tell them to fix it. You can’t use this plugin if you’re not running PHP 5 or higher. Stop trying.
I can’t get this thing to work, none of the links in the setup instructions work. I have no idea how to create a FB App or get the FB API key, etc,
MotoM: This is because large portions of Facebook are currently down. Nobody can access those links.
The links are still correct, Facebook is just broken right now.
If and when Facebook fixes their site, you should be able to go to http://www.facebook.com/developers/ in order to create your application.
I am getting the same error. I host using GoDaddy. So when I read above that the problem was with my server running on PHP v.4.x… I figured that that was the problem.
I currently am upgrading my hosting server to be able to run PHP v.5.x applications. If you are on GoDaddy hosting, here’s how you can upgrade to PHP v.5x
http://www.wpsecuritylock.com/how-to-upgrade-from-php-4-x-to-php-5-x-at-godaddy/
The change could up to 24hours and that is why I am waiting before I confirm (which I’m sure I will -thanks to Otto’s reassurances!) that it works after I enabled PHP v.5.x.
I will come back here to confirm later.
Cheers.
As a follow up to my previos comment above:
Confirmed.. website is now working.
Cheers.
Hey guys, I’m new to this Forum. Just registered. I need some help!
I’v just installed a plugin “FB box..”, a Facebook box that was supposed to appear under every post. As soon as I installed it, I was not able to log/in to my Admin site to do anything. Here is what I’m getting when I try to sign in:
?>
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-login.php on line 337
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-login.php on line 349
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-includes/pluggable.php on line 690
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-includes/pluggable.php on line 691
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-includes/pluggable.php on line 692
Warning: Cannot modify header information – headers already sent by (output started at /home/borlova1/public_html/wp-content/plugins/fb-like-box/fb-like-box.php:58) in /home/borlova1/public_html/wp-includes/pluggable.php on line 890
Can you help me and tell me how to fix this?
Thanks.
Connect to your site manually via FTP and delete the offending plugin.
Thanks Otto. It worked perfectly! I appreciate your help.
Thank you very much!
This problem is a bit ugly. Perhaps the fix is to use an add-in architecture similar to MailPress. It’s add-ins are just like WordPress plug-ins, but they’re added via a separate menu. I know you’re stuck with the limitations of the WordPress Admin GUI, but I really don’t like it when I new plugin I’m trying for the first time gives an error on activation.
Cheers, Graham
Version 1.0 will not have all the separate plugins. People just don’t get it, sort of thing.
Hi Otto,
I got everything working last night which I was dead chuffed about 🙂
Everything’s been fine today but then I suddenly got the
Parse error: syntax error, unexpected ‘{‘ in /…../plugins/simple-facebook-connect/sfc-login.php on line 210
I’m running on oneandone.co.uk and I know there have been some issues with forcing your WP installation to use PHP 5
Should I investigate that or could there be another issue???
Fixed it 🙂
Somehow I must have update the .htaccess file by ftp by mistake today..
For those that have a similar issue, adding the following lines to the bottom of the .htaccess file just before the “# END WordPress” statemennt does the trick:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
# END WordPress