JGRID-CLASS-001
JGrid
JGrid
JGrid was deleted in Joomla 4 with no class alias.
JGrid → HTMLHelper grid / layouts — no 1:1 class
What you will see
- Class "JGrid" not found
Symptoms people search
admin grid 500
Replace this code
Swap JGrid for HTMLHelper grid / layouts — no 1:1 class.
Joomla 3
Remove or stop calling this
$grid = new JGrid();Joomla 4 / 6
Use this instead
Use HTMLHelper::_('grid.id') / searchtools layouts. Do not instantiate JGrid.How to fix it
- 1Rewrite admin grids to core HTMLHelper and layouts.
Also known as
JGrid
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
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()