Skip to Content Skip to Menu

Catchable fatal error: Argument 1 passed to CB\Database\Table\UserTable::__construct() must implement interface CBLib\Database\DatabaseDriverInterface

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
8 years 3 months ago #282126 by kmchen
Hi,
I found a potential bug after joomla 2.5/CB 1.9 to joomla3.5/CB 2.0.14
The following code
Code:
$objModelUser = new moscomprofilerUser(); $objModelUser->loadByUsername("UserName"); $objModelUser->password = "NewPassword"; $result = $objModelUser->storePassword(true);
would generate the error:

Catchable fatal error: Argument 1 passed to CB\Database\Table\UserTable::__construct() must implement interface CBLib\Database\DatabaseDriverInterface, instance of JDatabaseDriverMysqli given, called in /home/www/lef_prod/libraries/CBLib/CB/Database/Table/UserTable.php on line 693 and defined in /home/www/lef_prod/libraries/CBLib/CB/Database/Table/UserTable.php on line 108


Similar bug Posted at stackoverflow.com/questions/36015465/community-builder-not-working-in-clean-joomla-3-5-installation-php7 that says that bug solved with CB-2.0.14 did not solve the PB for me.

Hoping that helps

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 3 months ago - 8 years 3 months ago #282153 by nant
[mod note: moved out of potential bugs because it is not reproducable]

Probably half-baken upgrade or an old Kunena version or an old third-party or CB team cb plugin imho
Last edit: 8 years 3 months ago by nant.

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

Moderators: beatnantkrileon
Powered by Kunena Forum