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 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.
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...
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 -->