I'm solved my problem ! :silly:
The problem seems to come from this part of code, because the path to the file
plugin.foundation.php is not good...
Line 24 in mod_cblogin.php :
Code:
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
I replaced this by :
Code:
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed';
return;
}
else {
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
I maked the same modification in :
modules\mod_comprofilermoderator.php
modules\mod_comprofileronline.php
I modified too this files :
- components\com_comprofiler\comprofiler.php line 47
I replaced :
Code:
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
include_once JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php';
require_once $_CB_framework->getCfg( 'absolute_path' ) . '/components/com_comprofiler/comprofiler.html.php';
} else {
include_once $mainframe->getCfg( 'absolute_path' ). '/administrator/components/com_comprofiler/plugin.foundation.php';
require_once $mainframe->getPath( 'front_html' );
}
by :
Code:
include_once $mainframe->getCfg( 'absolute_path' ). '/administrator/components/com_comprofiler/plugin.foundation.php';
require_once $mainframe->getPath( 'front_html' );
I proceeded with the same method
- administrator\components\com_comprofiler\toolbar.comprofiler.php line 20
- administrator\components\com_comprofiler\plugin.class.php line 21
- administrator\components\com_comprofiler\install.comprofiler.php line 57
- administrator\components\com_comprofiler\controller\controller.default.php line 29
- administrator\components\com_comprofiler\comprofiler.toolbar.php line 29
- administrator\components\com_comprofiler\admin.comprofiler.php line 23
- administrator\components\com_comprofiler\admin.comprofiler.controller.php line 46
Please if somebody can confirm that this "hack" is OK...
Thank's