?
avatar tonypartridge
tonypartridge
17 Nov 2017

Using:

	$db = JFactory::getDbo();
	$db->setDebug(0);

in an installation script produces:

0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::setDebug()

Looking at:
libraries/joomla/database/driver.php

setDebug isn't deprecated so should still be supported.

Also same for getErrorMsg().

avatar tonypartridge tonypartridge - open - 17 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Nov 2017
avatar tonypartridge tonypartridge - change - 17 Nov 2017
The description was changed
avatar tonypartridge tonypartridge - edited - 17 Nov 2017
avatar tonypartridge tonypartridge - change - 17 Nov 2017
Title
[4.0 Alpha] - Install extension bug
[4.0 Alpha] - Install extension bug setDebug and getErrorMsg
avatar tonypartridge tonypartridge - edited - 17 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Category Administration
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Title
[4.0 Alpha] - Install extension bug setDebug and getErrorMsg
[4.0] - Install extension bug setDebug and getErrorMsg
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Title
[4.0] - Install extension bug setDebug and getErrorMsg
[4.0] Install extension bug setDebug and getErrorMsg
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Nov 2017
avatar mbabker
mbabker - comment - 18 Nov 2017

Needs to be deprecated in 3.x. The Framework removed the concept of a debug mode in the database drivers in the major version bump.

avatar wilsonge
wilsonge - comment - 18 Nov 2017

getErrorMsg is already deprecated https://github.com/joomla/joomla-cms/blob/3.8.2/libraries/joomla/database/database.php#L60

I've now deprecated the setDebug function with 3e4966f in the 3.9 branch

avatar wilsonge wilsonge - change - 18 Nov 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-11-18 14:47:53
Closed_By wilsonge
avatar wilsonge wilsonge - close - 18 Nov 2017

Add a Comment

Login with GitHub to post a comment