Project

General

Profile

Actions

Bug #76208

closed

showAction causes error

Added by Marc Hirdes almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The only feedback I get is like "An error occured while calling the \Clickstorm\CsExample\Domain\Model\Item->showAction()".

My workaround now is:

         /**
     * action show
     *
     * @param \Clickstorm\CsExample\Domain\Model\Item $item
     * @return void
     */
    public function showAction(\Clickstorm\CsExample\Domain\Model\Item $item) {
        $this->view->assign('item', $item);
    }

change in:

/**
     * action show
     *
     * @return void
     */
    public function showAction()
    {
        if($this->request->hasArgument('item')) {
            $concert = $this->citemRepository->findByUid($this->request->getArgument('item'));
            $this->view->assign('item', $item);
        }

    }

If I change this it works. I had the problem in two projects with TYPO3 6.2.21 with two different extensions. Other extensions that are installed and have a show action worked until now, that is confusing. 6.2.22 I can't install because of the broken select tree. Any solutions?

Actions #1

Updated by Christian Kuhn almost 8 years ago

Hey,

thanks for the report.

However, this looks like a problem within this specific extension, but no a typo3 core issue.

Please contact the authors of that extension to see on how to handle the issue.

On core side, we will close this report now.

Actions #2

Updated by Christian Kuhn almost 8 years ago

  • Status changed from New to Closed
Actions #3

Updated by Marc Hirdes almost 8 years ago

I am the Author of both extensions. It's not only one extension where the error occures.

Actions #4

Updated by Marc Hirdes almost 8 years ago

Please open the ticket again.

Actions #5

Updated by Wouter Wolters almost 8 years ago

Marc: Still this is an issue in your extension, not the core. You need to check if your model contains validation errors. Is all needed data really available in your model when calling showAction. We won't reopen this ticket.

Actions #6

Updated by Marc Hirdes almost 8 years ago

A better error message would be great at this point. So that I can see which validation fails. I will take a look at my validation rules. Thanks for your help.

Actions

Also available in: Atom PDF