× Joomla Facebook Connect support forum

Topic-icon Blank Page when configuring with JomSocial

Active Subscriptions:

None
I currently have JomSocial installed and I am trying to install and configure. I have the facebook api complete, enabled both plugins, enabled the module, but while in configuring JFBConnect and I click on "Overview" I get a blank page. I also noticed that when I create a menu item pointing to the component JFBConnect its stays stuck and save or apply do not appear. Also when I enable the FAceBook Login module on any page,or module position the page goes blank as well. I am hoping that there is a solution to this as I am very eager to use. Here is the url it point s to when clicking on "Overview" in the configuration of JFBConnect: <!-- m --><a class="postlink" href="www.hypedetroit.org/administrator/index....ption=com_jfbconnect">www.hypedetroit.org/administrato ... jfbconnect
The topic has been locked.
Support Specialist
15 years 1 month ago #281 by alzander
There is no menu item to point to (the component shows up, but when you click on it, it doesn't do anything because there are no 'views' to link to). Everything is done behind the scenes using (mainly) the login module to create your users and log them in.

As for the blank page, obviously somethings going wrong. The best way to diagnose all of these issues is to turn on error reporting. Do this by going to "Site->Global Configuration". Click on the "Server" tab and set error reporting to "Maximum". Go to any pages that go blank and report the error here. Obviously, turn this off when done as many components spit out Warnings and Notices you won't want your users to see.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #298 by xtremedesign
This is the error messgage when I set error reporting to maximum and placing the Facebook Login Module on the home page in any module position:

Notice: Constant SERVICES_JSON_SLICE already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 64

Notice: Constant SERVICES_JSON_IN_STR already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 69

Notice: Constant SERVICES_JSON_IN_ARR already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 74

Notice: Constant SERVICES_JSON_IN_OBJ already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 79

Notice: Constant SERVICES_JSON_IN_CMT already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 84

Notice: Constant SERVICES_JSON_LOOSE_TYPE already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 89

Notice: Constant SERVICES_JSON_SUPPRESS_ERRORS already defined in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 94

Fatal error: Cannot redeclare class services_json in /var/www/vhosts/hypedetroit.org/httpdocs/administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/JSON/JSON.php on line 118
The topic has been locked.
Support Specialist
15 years 1 month ago #307 by alzander
There's another component or function on your system using the JSON class. The JSON is distributed with the Facebook API and necessary for operation. However, it's a generic and redistributable class, so other components may be including their own 'copy' of it, which causes this problem.

Are you using Linux or Windows? I can give you a command to run to help you find the other component that's also declaring the JSON class, and help come up with a solution that resolves the incompatibility.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #319 by xtremedesign
I am using a Linux server
The topic has been locked.
Support Specialist
15 years 1 month ago #360 by alzander
Sorry for the delay. So there's a few things we'd like you to try if possible, along with providing some more information.

1) In a command window on your server, go to the directory that the site is hosted at and type the following command:
grep -R 'SERVICES_JSON_SLICE *

This searches all files for the text "SERVICES_JSON_SLICE" and will help us figure out where the problem is coming from. Anywhere from 5-20 lines will be spit out starting with filenames. Please provide the filenames here.

2) Go into the Joomla administration backend, and go to "Help->System Info" and let us know what version of PHP your using. In 5.2 (I think), JSON was included natively. I'm going to guess you're using something between 5.0 and 5.2, which may be aiding in this issue.

3) If you're willing to make a minor code change, please also try the following:
In the file: /administrator/components/com_jfbconnect/assets/facebook-api/jsonwrapper/jsonwrapper_inner.php:
Comment out line 3 so it looks like:
// require_once 'JSON/JSON.php';

This will prevent the problem file from loading, and hopefully just use whatever JSON file has already been included somewhere else. This may cause issues, since now we're trusting a different JSON implementation, but I think it should be ok.

So... 2 things to report, and 1 to try. Even if the 1 thing to try works, please let us know the first 2 so we can investigate for future cases.

Thanks for your patience.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #365 by xtremedesign
This searches all files for the text "SERVICES_JSON_SLICE" and will help us figure out where the problem is coming from. Anywhere from 5-20 lines will be spit out starting with filenames. Please provide the filenames here.

Answer:
login as: root
[email protected]'s password:
Last login: Sun Mar 08 2009 09:07:59 -0500
No mail.
[root@host ~]# grep -R 'SERVICES_JSON_SLICE *
[root@host ~]# cd /var/www/vhosts/hypedetroit.org/httpdocs/
[root@host httpdocs]# grep -R 'SERVICES_JSON_SLICE *
plugins/system/pc_includes/JSON.php:if(!defined('SERVICES_JSON_SLICE')){
plugins/system/pc_includes/JSON.php:define('SERVICES_JSON_SLICE', 1);
plugins/system/pc_includes/ajax.php: if(!defined('SERVICES_JSON_SLICE'))
plugins/system/pc_includes/ajax.php: if(!defined('SERVICES_JSON_SLICE'))

2) Go into the Joomla administration backend, and go to "Help->System Info" and let us know what version of PHP your using. In 5.2 (I think), JSON was included natively. I'm going to guess you're using something between 5.0 and 5.2, which may be aiding in this issue.

Answer:
PHP Built on: Linux host.xdworksserver.com 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686
Database Version: 5.0.22
Database Collation: utf8_general_ci
PHP Version: 5.1.6
Web Server: Apache/2.2.3 (Red Hat)
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

I will try fix now
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #400 by vigo
I was redirected here from this thread [url:1h3hj0af]http&#58;//www.cmsmarket.com/forum/index.php?f=38&t=79&p=396&hilit=json&rb_v=viewtopic#p396[/url:1h3hj0af].

PHP version is 5.1.6

I tried commenting out line 3 in jsonwrapper_inner.php now I don't get the original error message anymore (Fatal error: Cannot redeclare class services_json in C:wampwwwj159testadministratorcomponentscom_jfbconnectassetsfacebook-apijsonwrapperJSONJSON.php on line 118) but just a blank page instead...

According to my webspace provider they will update PHP to version 5.2.8 on March, 23. Should I just wait until then (if that version is known to work) or is there another solution?

Thanks for your help.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #404 by xert77
Hi,
I get the exact same error as xtremedesign.
I have just transfered my site from one hosting to a better one. I litterally copied the whole site, and everything works apart from this...
The topic has been locked.
Support Specialist
15 years 1 month ago #419 by alzander
Alright, is someone willing to give us access to their site for a short time? We won't bring it down, we swear, but are unable to recreate this issue at all.

The problem really seems to be that somewhere else (either in the PHP libraries themselves, or another component) something is instantiating the JSON libraries in an unfriendly way (by not checking to see if they are already instantiated).

Please either IM us on this site some credentials or use our contact form below (DON'T POST IN THIS FORUM):
<!-- m --><a class="postlink" href="www.sourcecoast.com/contact-us">www.sourcecoast.com/contact-us
The topic has been locked.