JFORMFIELD-EDITOR-SAVE-001
$field->save()
JFormFieldEditor::save()
Editor field save() was a Joomla 3 leftover. It is gone on Joomla 4.
$field->save() → No replacement — editor fields do not save that way
What you will see
- Call to undefined method ...::save
Symptoms people search
editor save fatal · JFormFieldEditor
Replace this code
Swap $field->save() for No replacement — editor fields do not save that way.
Joomla 3
Remove or stop calling this
$this->form->getField('articletext')->save();Joomla 4 / 6
Use this instead
// Removed. The editor value is in the posted form like any other field.How to fix it
- 1Delete the save() call on editor fields.
- 2Read the value from Input / the form.
Also known as
JFormFieldEditor::save
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()