BC6-PLUGIN-001
plg_behaviour_compat6
Behaviour – Backward Compatibility 6 (the other plugin)
Two plugins, two jobs. Searching “compatibility plugin” must explain both or people enable the wrong one.
plg_behaviour_compat6 → Does not restore JFactory / JRequest / MooTools
Symptoms people search
backward compatibility 6 · compat6 · two compatibility plugins
Replace this code
Swap plg_behaviour_compat6 for Does not restore JFactory / JRequest / MooTools.
Joomla 3
Remove or stop calling this
// Confusing this with Behaviour – Backward Compatibility (no number)Joomla 4 / 6
Use this instead
BC6 helps some Joomla 5→6 namespaced class moves. It will not load J* globals. Disable BC5 before Joomla 6; BC6 is a different plugin.How to fix it
- 1BC5 (no number): J* aliases on Joomla 5. Must be OFF to go to 6.
- 2BC6: selected J5→J6 class moves. Enabled on 5.4; disabled on new J6 installs.
Also known as
plg_behaviour_compat6 · Backward Compatibility 6 · BC6
Related issues
- Joomla 3 → 4Joomla API
JRequest::getVar() and the whole JRequest API
JRequest::getVar() → $app->getInput()->get('id')
- Joomla 3 → 4Joomla API
JError / JException
JError::raiseError() → throw new RuntimeException() / try-catch
- Joomla 3 → 4Joomla API
isAdmin() / isSite()
$app->isAdmin() → $app->isClient('administrator') / isClient('site')
- Joomla 3 → 4Joomla API
Factory::getUri()
JFactory::getUri() → Uri::getInstance()
- Joomla 3 → 4Joomla API
Factory::getXml() / JXMLElement
JFactory::getXML() → SimpleXMLElement
- Joomla 3 → 4Joomla API
Factory::getEditor()
JFactory::getEditor() → Editor::getInstance()