Forum is closed

JSON fatal error

JSON fatal error

just installed 2.0 'stable'.... going to the backend component, i get:

Fatal error: Cannot redeclare class services_json in C:wampwwwj159testadministratorcomponentscom_jfbconnectassetsfacebook-apijsonwrapperJSONJSON.php on line 118

anybody any idea how to cure this?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: JSON fatal error

That's the error you're getting on your local machine as a test? C:? Have you tried on your live site?

Administrator has disabled public posting. Please login or register in order to proceed.

Re: JSON fatal error

The Facebook Connect API comes packaged with the JSON wrapper (an easy to use mechanism for transmitting data between two servers).  The error indicates that something else in your system is also trying to include a JSON class with the same name, so PHP doesn't know which one is the correct one to use.

Not a permanent solution, and may cause issues, but you can rename the JSON file below to see if that fixes the issue.  This will cause the FB API to use whichever one is installed already, which may cause incompatibility issues.. but at least will help you figure out if it works.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24163 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: JSON fatal error

I have the exact same issue on my live site. I  have tried renaming json.php as suggested, the result is:

Warning: require_once(JSON/JSON.php) [function.require-once]: failed to open stream: No such file or directory in /home/httpd/vhosts/vigo.ch/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/jsonwrapper_inner.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'JSON/JSON.php' (include_path='.:') in /home/httpd/vhosts/vigo.ch/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/jsonwrapper_inner.php on line 3


Would appreciate any help to get this to work...

Administrator has disabled public posting. Please login or register in order to proceed.

Re: JSON fatal error

This post is being discussed more thoroughly below.  If you wouldn't mind answering the 3 questions posted there, that would help.  We're setting up a system with PHP 5.1 right now (which is where we think the issue is being caused), and will hopefully be able to provide a fix shortly.  The 3rd suggestion in the below post may work temporarily, but we haven't had feedback on it yet.

<!-- m --><a class="postlink" href="http://www.cmsmarket.com/forum/index.php?f=38&t=74&rb_v=viewtopic">http://www.cmsmarket.com/forum/index.ph ... =viewtopic</a><!-- m -->

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24163 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11696
Total Polls:
0
Total Posts:
49100
Posts today:
1
User Info
 
Total Users:
47890
Newest User:
backpainremedie9
Members Online:
1
Guests Online:
950

Online: 
elef
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program