Summary

Using JDatabase:stderror() instead stderr in com_content/models/coategory, line 337
Opened On:
4 Sep 2012, 11:11 by František Žemlička
Status:
Open

Filed Under

  • Administrator
  • Components

Responses

Posted on 3 Aug 2013, 14:31 by Jonny Roger
Hi,

1) So, you propose a change in \components\com_content\models\category.php, line 337 from

JError::raiseError(500, $this->_db->stderror());

to

JError::raiseError(500, $this->_db->stderr());

(I.e. "stderror" to "stderr", as stderr() is defined in \libraries\joomla\database\database.php)

Is that correct?

-----------------------

2) Searching for the "stderror" string in the source code also reveals the similar need to change "stderror" to "stderr" on following occurrences:

a) \components\com_banners\models\banner.php:
Line 115: JError::raiseError( 500, $db->stderror());
Line 132: JError::raiseError( 500, $db->stderror() );
Line 157: JError::raiseError( 500, $db->stderror());
Line 168: JError::raiseError( 500, $db->stderror() );

b) \components\com_content\models\section.php:
Line 347: JError::raiseError(500, $this->_db->stderror());

Do you agree?
Posted on 6 Aug 2013, 13:48 by Jonny Roger
Tested and found that all of the changes in my previous post are indeed necessary.

P.S.: This issue does not seem to affect Joomla 2.5: On Joomla 2.5.14, there are no occurrances of the "stderror", only of the correct "stderr".
Posted on 6 Aug 2013, 13:49 by Jonny Roger
Thanks for reporting, by the way.