JCLIENT-WRAPPER-001
JClientWrapperHelper
JClientWrapperHelper and other wrappers
Wrapper classes (JFormWrapper, JHttpWrapperFactory, language wrappers, client wrappers) were deleted in Joomla 4. Call the real static API.
JClientWrapperHelper → Call ClientHelper / FormHelper / HttpFactory statically
What you will see
- Class "JClientWrapperHelper" not found
- Class "JFormWrapperHelper" not found
- Class "JHttpWrapperFactory" not found
- Class "JLanguageWrapperText" not found
Symptoms people search
wrapper helper fatal
Replace this code
Swap JClientWrapperHelper for Call ClientHelper / FormHelper / HttpFactory statically.
Joomla 3
Remove or stop calling this
(new JClientWrapperHelper())->getCredentials('ftp');Joomla 4 / 6
Use this instead
ClientHelper::getCredentials('ftp');How to fix it
- 1Unwrap. Call the helper class directly.
Also known as
JClientWrapperHelper · JFormWrapperHelper · JHttpWrapperFactory · JLanguageWrapperText · JUserWrapperHelper
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()