JWRAPPER-CLASSES-001
JFormWrapperHelper
JFormWrapper / JHttpWrapper / language wrappers
Unit-test wrapper classes were removed in Joomla 4.
JFormWrapperHelper → Call the static methods on the real class
What you will see
- Class "JFormWrapperHelper" not found
- Class "JHttpWrapperFactory" not found
Symptoms people search
wrapper helper fatal
Replace this code
Swap JFormWrapperHelper for Call the static methods on the real class.
Joomla 3
Remove or stop calling this
JFormWrapperHelper::loadFieldClass('text');Joomla 4 / 6
Use this instead
FormHelper::loadFieldClass('text');How to fix it
- 1Call FormHelper, HttpFactory, LanguageHelper directly.
Also known as
JFormWrapper · JHttpWrapperFactory · JClientWrapperHelper
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()