Install some extension, in my case it was Phoca Photo. After installing it and going to the extension I get this error:
Class 'JToolBarHelper' not found
JToolbar classes will be automatically loaded
JToolbar classes are not automatically loaded, they must be individually loaded, e.g. by:
if(!class_exists('JToolbar')) {
require_once JPATH_SITE . '/libraries/cms/toolbar/toolbar.php';
}
if(!class_exists('JToolbarHelper')) {
require_once JPATH_SITE . '/libraries/cms/toolbar/helper.php';
}
Joomla! 4, PHP 7, MySQL 5
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-04 17:00:11 |
Closed_By | ⇒ | mbabker |
Ok, thank you for the info.
The class' correct cased name is
JToolbarHelper
, notJToolBarHelper
, and has been such since 3.0.0 (same applies to allJToolbar*
classes). The casing is important with our autoloader because it will split the class name based on CamelCasing if it needs to try and load a file that hasn't yet been loaded.JToolBarHelper
will try to find a file atlibraries/(cms|joomla|legacy)/tool/bar/helper.php
whereasJToolbarHelper
will uselibraries/(cms|joomla|legacy)/toolbar/helper.php
.Closing as a non-issue.