Call to undefined method Joomla\Registry\Registry::loadJSON()