J3.x

Missing JBrowser class after upgrading

From Joomla! Documentation

Revision as of 17:33, 5 August 2013 by Fititnt (talk | contribs) (Created page with "{{notice|This issue only affects '''some''' 3rd party extensions in Joomla! versions 3.1.4 and 3.1.5}} == Tipical error message == <pre> Fatal error: Class 'JBrowser' not fou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Info non-talk.png
General Information

This issue only affects some 3rd party extensions in Joomla! versions 3.1.4 and 3.1.5

Tipical error message[edit]

Fatal error: Class 'JBrowser' not found in path/to/file.php on line XY

Afected versions[edit]

After update to Joomla 3.1.4, some some extensions that depend on the native autoloader , with a working code before, may stop working.

Workaround[edit]

While this is not resolved, change the source code from something similar to this

$browser = JBrowser::getInstance();
//...

To this (with legacy way to load classes)

jimport ('joomla.environment.browser'); // Add this linecode
$browser = JBrowser::getInstance();
//...