I had this plugin, and love it.. but then once I added jConnector, it broke.. it's a simple fix, I'm sure, but I'm not sure whose end it would be on...
I have jConnector so I could implement Facebook authentication on my Joomla 1.5.15 site using Advanced Modules 1.3.1.. so when I try to authenticate, it won't work because I would get a Fatal Error.. I disabled Advanced Modules Plugin, and it worked fine, so I did some tracing and here's what I got after clicking the link (while Advanced Modules Plugin was enabled).
modules/mod_jconnector/jconnector_server.php reports:
Fatal error: Cannot redeclare class JModuleHelper in /home/ldonor/cafeworld/plugins/system/advancedmodules/modulehelper.php on line 47
I checked plugins/system/advancedmodules/modulehelper.php and saw that it was also using the JModuleHelper class.. so I looked for it in modules/mod_jconnector/jconnector_server.php code until JModuleHelper is called:
define( '_JEXEC', 1 );
define( 'DS', DIRECTORY_SEPARATOR );
include_once './extension_detector.php';
include_once './classes.php';
$_file_ = str_replace(constant('DS').'modules'.constant('DS').'mod_jconnector', '', dirname(__FILE__));
define('JPATH_BASE', $_file_);
chdir('../../');
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'application'.DS.'module'.DS.'helper.php' );
include_once (JPATH_BASE .DS.'components'.DS.'com_user'.DS.'controller.php');
include_once (JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'base'.DS.'observable.php');
$config =& JFactory::getConfig();
$config->setValue('config.absolute_path', JPATH_BASE);
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$db = & JFactory::getDBO();
$user = & JFactory::getUser();
JPluginHelper::importPlugin('system');
$module = JModuleHelper::getModule('jconnector', '');
I figured you'd probably know what to do.. I'm still learning J! Code. Plugin takes priority right? So then would there be a quick fix so that jConnector doesn't try to redeclare that class?
Thanks!