Actions

J3.2

Difference between revisions of "Missing JBrowser class after upgrading"

From Joomla! Documentation

m (Affected versions: heading fix)
m (Versions affected: fixing)
Line 7: Line 7:
 
== Versions affected ==
 
== Versions affected ==
 
{{refers_to|3.1.4,3.1.5}}
 
{{refers_to|3.1.4,3.1.5}}
{{notice|This issue only affects '''some''' 3rd party extensions in Joomla! versions 3.1.4 and higher}}
+
{{notice|This issue only affects '''some''' 3rd party extensions in Joomla! versions 3.1.4 and higher|imagesize=25px}}
  
 
== What is the cause==
 
== What is the cause==

Revision as of 21:20, 11 August 2013

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

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

Versions affected

Info non-talk.png
General Information

This pertains only to Joomla! version(s):- 3.1.4  3.1.5

Info non-talk.png
General Information

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

What is the cause

This is not resolved.

How to fix

Change the source code to something similar as below.

From this:

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

To this (with legacy way to load classes):

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