Actions

J3.x

Difference between revisions of "Missing JBrowser class after upgrading"

From Joomla! Documentation

m (Tipical error message: spelling)
m (Afected versions: spelling and comma)
Line 6: Line 6:
 
</pre>
 
</pre>
  
== Afected versions ==
+
== Affected versions ==
After update to Joomla 3.1.4, some some extensions that depend on the native autoloader , with a working code before, may stop working.  
+
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 ==
 
== Workaround ==

Revision as of 06:51, 7 August 2013

Info non-talk.png
General Information

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

Typical error message

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

Affected versions

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

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)

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