× Joomla Facebook Connect support forum

Topic-icon Error on enabling login module

Active Subscriptions:

None
13 years 7 months ago #4649 by fb_568713009
				<div id="fb-root"></div>

				<script src="//connect.facebook.net/en_US/all.js"></script>

				<script>

					var jfbconnectRequestPerms = null;
 
					FB.init({appId: '107461229296562', status: true, cookie: true, xfbml: true});

                                        function fb_login_button_click()

                                        {
                                            // A user has logged in, and a new cookie has been saved

                                            var session = FB.getSession();
                                            var ajaxUrl = "https://dev.cloud-canvas.com/index.php?option=com_jfbconnect&tmpl=component&task=getRequestPerms&fb_user_id=" + session.uid;
                                            var ajax = new Ajax(ajaxUrl, { evalScripts: true});//, onComplete: fb_login_button_click2 });
                                            ajax.request();
                                        }

                                        function fb_logout_button_click()

                                        {
                                                redirect_to_jfbconnect_logout()
                                        }

                                        function redirect_to_jfbconnect_logout()
                                        {
                                            window.location = '/index.php/component/jfbconnect/?task=logout&return=aW5kZXgucGhw';
                                        }

				</script>
<br />
<b>Fatal error</b>:  Uncaught exception 'Exception' with message 'Facebook needs the JSON PHP extension.' in /var/www/html/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php:15
Stack trace:
#0 /var/www/html/components/com_jfbconnect/libraries/facebook.php(111): include_once()
#1 /var/www/html/components/com_jfbconnect/libraries/facebook.php(35): JFBConnectFacebookLibrary->getFbClient()
#2 /var/www/html/components/com_jfbconnect/libraries/facebook.php(23): JFBConnectFacebookLibrary->__construct()
#3 /var/www/html/modules/mod_jfbclogin/mod_jfbclogin.php(15): JFBConnectFacebookLibrary::getInstance()
#4 /var/www/html/libraries/joomla/application/module/helper.php(173): require('/var/www/html/m...')
#5 /var/www/html/libraries/joomla/document/html/renderer/module.php(84): JModuleHelper->renderModule(Object(stdClass), Array)
#6 /var/www/html/libraries/joomla/document/html/renderer/modules.php(41): JDocumentRendererModule->render(Object(stdClass), Array, NULL)
#7 /var/www/html/libraries/joomla/document/html/html.php in <b>/var/www/html/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php</b> on line <b>15</b><br />
The topic has been locked.
Support Specialist
13 years 7 months ago #4656 by alzander
What version of PHP is your server using? It's possible the JSON libraries are not in your version, and we'll have to investigate that further.
The topic has been locked.
Support Specialist
13 years 7 months ago #4746 by mel
Replied by mel on topic Error on enabling login module
In the new 3.0.0 release, we've re-added the JSON libraries into our Facebook libraries if one is not detected. Please let us know if you continue to have this error after you upgrade.
The topic has been locked.