TYPO3 Exception 1176558158¶
Note
Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.
General TYPO3 troubleshooting tips can be found in the section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)
To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.
TYPO3 11.5.21 -03.01.2023¶
An argument "site" does not exist for this request.
Situation¶
This happens when you call the following in an action of an Extbase controller:
$site = $this->request->getArgument('site');
Solution¶
You must retrieve the site configuration with getAttribute()
not getArgument
:
$site = $this->request->getAttribute('site');
TYPO3 12.4.3 - 24.07.23¶
Error
An argument "currentContentObject" does not exist for this request.
Situation¶
This error was thrown in the \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder
when calling it from a non-Extbase context
Solution¶
Pass the current request object to the UriBuilder:
$uri = $uriBuilder->reset()
->setRequest($this->getExtbaseRequest())
->setTargetPageUid(188)
// ...
->build();
See also URI builder (Extbase).