JTABLEOBSERVER-001
JTableObserverTags
JTableObserver*
Observer attach on tables was replaced by plugins.
JTableObserverTags → Core plugins (tags, content history) — do not subclass observers
What you will see
- Class "JTableObserver" not found
- Class "JTableObserverTags" not found
Symptoms people search
tags not saving on custom table
Replace this code
Swap JTableObserverTags for Core plugins (tags, content history) — do not subclass observers.
Joomla 3
Remove or stop calling this
class JTableObserverTags extends JTableObserver {}Joomla 4 / 6
Use this instead
Use the tags and history plugins. Table observers were removed.How to fix it
- 1Remove custom JTableObserver subclasses.
- 2Listen to onTable* events if you must hook store().
Also known as
JTableObserver · JTableObserverContenthistory
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4MVC
getError() / setError() on models and tables
$model->setError() → Exceptions
- Joomla 5 → 6MVC
Table::getInstance()
JTable::getInstance('Content') → MVC / Table factory
- Joomla 3 → 4MVC
assignRef() on views
$this->assignRef('item', $item) → $this->item = $item
- Joomla 3 → 4MVC
FOF 2.x in core
FOFModel / FOFTable → FOF 3 / native Joomla MVC
- Joomla 3 → 4MVC
Experimental Joomla 3 “new MVC” namespace
Joomla\CMS\MVC (J3 experimental) → Original MVC: HtmlView, ListModel, BaseController
- Joomla 5 → 6MVC
getInstance() on MVC classes
JModelLegacy::getInstance() → $this->getModel() / MVCFactory