TYPO3 Exception 1242292003

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.

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.

could not determine type of argument “section” of the render-method in ViewHelper “Tx_Fluid_ViewHelpers_RenderViewHelper”

This exception is thrown in extbase extensions if doc header is incorrect or if you use some PHP optimizer like eAccelerator because these optimizers remove the comments, extbase needs to determine the data type.

#1242292003: could not determine type of argument "section" of the render-method in ViewHelper "Tx_Fluid_ViewHelpers_RenderViewHelper".
Either the methods docComment is invalid or some PHP optimizer strips off comments.

Solution:

  1. check doc header, it must start with /** (two stars).
  2. attribute must be mentioned as @param type $variableName.
  3. alternatively use $this->registerArgument() in initializeArguments() method.
  4. compile eAccelerator with option “–with-eaccelerator-doc-comment-inclusion”: “If you want eAccelerator to retain doc-comments in internal php structures” (eAccelerator help)
  5. use another PHP optimizer. I use xCache on Debian Squeeze which seems to work fine.
  6. using the opcode cache of modern PHP versions, you can set opcache.save_comments=1 and opcache.load_comments=1.

Links: