[TYPO3-english] An error occurred while trying to call any action
Anja Leichsenring
aleichsenring at ab-softlab.de
Wed Jun 18 10:07:33 CEST 2014
Hi Sejal,
this looks like a validation error. Meaning: the category object passed
to your view action is not complete and violates any Model Validators.
Short term cure is to add a @dontvalidate to the docheader of your view
action.
Then most probably you want to check whats wrong with your data.
You can define a initializeViewAction in your controller, that takes the
object no matter valid or not, so you can do a var_dump on it there.
Then compare the data you get with your Model and any @validate
Annotations there.
I hope this helps?
Kind regards
Anja
On 17.06.2014 08:38, Sejal wrote:
> Hi,
>
> I have an error while trying to call action.
> In my index.html file, <f:for each="{categories}" as="category"
> iteration="categoryIterator">
> <f:link.action action="view" arguments="{category: category}">
> And when this link is clicked it shows an error "An error occurred while
> trying to call Tx_IapPremium_Controller_CategoryController->viewAction(). "
>
> In the controller,
> /**
> * @param Tx_IapPremium_Domain_Model_Category $category
> * @return the rendered view
> */
> public function viewAction(Tx_IapPremium_Domain_Model_Category
> $category) {
> }
>
> But it is not going inside this function when I removed model from
> argument then it is going in the function.
>
> Can anyone tell me what is wrong here?
>
> Thanks
More information about the TYPO3-english
mailing list