Skip to Content Skip to Menu

"CB not installed" on CB modules - CB 1.4

  • grichkal
  • grichkal
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 9 months ago - 13 years 9 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
Last edit: 13 years 9 months ago by grichkal.

Please Log in or Create an account to join the conversation.

  • grichkal
  • grichkal
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
13 years 9 months 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 :
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

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum