Go Back   Web Scribble Forums » Joomla » jConnector
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2009, 07:13 PM
Junior Member
 
Join Date: Dec 2009
Posts: 1
Default Cannot redeclare class

Site: The City Of Tuareth

When you click on the facebook connect button it pops up and asks you to allow the application access to your facebook. Then it redirects you to a blank page. If you turn on errors you get the following error.

Quote:
Fatal error: Cannot redeclare class FacebookRestClientException in /home/vol13/byethost10.com/b10_4679654/tuareth.isgreat.org/htdocs/modules/mod_jconnector/facebook/php/facebookapi_php5_restlib.php on line 3319
Thank you for your help.
Reply With Quote
  #2 (permalink)  
Old 12-10-2009, 02:38 AM
Junior Member
 
Join Date: Dec 2009
Posts: 1
Default

I have the same problem. I'll thank you to help me solving it.
Reply With Quote
  #3 (permalink)  
Old 12-24-2009, 12:34 PM
Junior Member
 
Join Date: Dec 2009
Posts: 1
Default

I am receiving the same error. After my initial troubleshooting I have found it was another Facebook module creating the error. I have multiple Facebook modules and plug-ins that I am trying to use and they don't appear to want to play nicely together.

The Plug-in that caused this error for me is AutoFacebook. If I disable this plug-in the Jconnect then works again.

Anyone have a solution for this?
Reply With Quote
  #4 (permalink)  
Old 02-08-2010, 01:38 PM
Junior Member
 
Join Date: Feb 2010
Posts: 2
Smile

Quote:
Originally Posted by MTFACBS View Post
I am receiving the same error. After my initial troubleshooting I have found it was another Facebook module creating the error. I have multiple Facebook modules and plug-ins that I am trying to use and they don't appear to want to play nicely together.

The Plug-in that caused this error for me is AutoFacebook. If I disable this plug-in the Jconnect then works again.

Anyone have a solution for this?
It is because the facebook API is being included twice.
An easy fix would be to delete the facebook api folder created by autofacebook and change the include call to it in autofacebook.php to the path of facebookapi_php 5_restlib.php on the Jconnector.

The folder to delete is "facebook-platform" in plugins.
Then change line 13 of /plugins/autofacebook.php
to:
"require_once (JPATH_ROOT . DS . 'modules' . DS . 'mod_jconnector' . DS . 'facebook' . DS . 'php' . DS . 'facebook.php');"

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 01:07 PM.