"CB not installed" on CB modules - CB 1.4

13 years 2 months ago - 13 years 2 months ago #157353 by grichkal
Hello,
I've installed CB 1.4 on Joomla 1.0.15

I've got this report message : "CB not installed" in CB modules (mod_cblogin, mod_comprofilermoderator, mod_comprofileronline)

Installation CB 1.4 ok
All check in CB Tools are green
CB work fine also...

Any solutions ?

My local installation don't report this message. :ohmy:

My site : www.takpt.fr

Thank's

Please Log in to join the conversation.

13 years 1 month ago #157804 by grichkal
Replied by grichkal on topic Re: "CB not installed" on CB modules - CB 1.4
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 :
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 :
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 :
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 :
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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.149 seconds

Facebook Twitter LinkedIn