× Joomla Facebook Connect support forum

Topic-icon JSON fatal error

Active Subscriptions:

None
15 years 1 month ago #294 by playak
JSON fatal error was created by playak
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?
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #296 by Clark
Replied by Clark on topic 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?
The topic has been locked.
Support Specialist
15 years 1 month ago #306 by alzander
Replied by alzander on topic 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.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #396 by vigo
Replied by vigo on topic 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...
The topic has been locked.
Support Specialist
15 years 1 month ago #399 by alzander
Replied by alzander on topic 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="www.cmsmarket.com/forum/index.php?f=38&t=74&rb_v=viewtopic">www.cmsmarket.com/forum/index.ph ... =viewtopic
The topic has been locked.