Skip to Content Skip to Menu

Getting Error

  • Proteon
  • Proteon
  • OFFLINE
  • Posts: 44
  • Thanks: 1
  • Karma: 0
1 year 4 months ago #334764 by Proteon
Getting Error was created by Proteon
The following code is giving "CBAuthentication not found" error. I am using it in the controller of my own component. How can I make it work? Please help.

global $_CB_framework, $mainframe;

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' );
}

cbimport( 'cb.authentication' );

$cbAuthenticate = new CBAuthentication();

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

  • Proteon
  • Proteon
  • OFFLINE
  • Posts: 44
  • Thanks: 1
  • Karma: 0
1 year 4 months ago #334765 by Proteon
Replied by Proteon on topic Getting Error
Nevermind. There was a typo and I fixed it.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum