---
title: "Weshalb der Fehler: The value must be of type ...... ???"
url: "https://www.typo3.net/d/101692-weshalb-der-fehler-the-value-must-be-of-type"
source: "typo3.net"
tags: ["Archiv","Flow","Frage"]
created: "2010-10-09"
last_reply: "2010-10-17"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Weshalb der Fehler: The value must be of type ...... ???

Archiv › Flow · 1 Antwort · gestartet 2010-10-09

## Eröffnungsbeitrag

**mmbln** · 2010-10-09 · [Beitrag #1](https://www.typo3.net/d/101692-weshalb-der-fehler-the-value-must-be-of-type/1)

Hallo zusammen,

irgendwie stehe ich nach ca. 5 Std. Fehlersuche aufm Schlauch. Ich habe ein Formular das ich abschicke und der Controller gibt mir folgende Fehlermeldung zurück:

```php
Tx_Extbase_MVC_Exception_InvalidArgumentValue

The value must be of type "Tx_MmosEventservice_Domain_Model_Booking", but was of type "NULL".
```

So sieht die Action aus:

```php
/**
	 * Update a booking
	 *
	 * @param Tx_MmosEventservice_Domain_Model_Booking $booking
	 * @return void
	 */
	public function bookingupdateAction(Tx_MmosEventservice_Domain_Model_Booking $booking){
	    $this -> bookingRepository -> update($booking);
        $this -> redirect('index');
	}
```

Folgende Werte werden vom Formular abgeschickt:

```php
[tx_mmoseventservice_pi1] => Array
        (
            [action] => update
            [controller] => Booking
            [booking] => Array
                (
                    [__identity] => 12
                    [price] => 30
                    [paid] => 33
                    [paidate] => 
                    [invoiceno] => 0
                    [participated] => 1
                    [notice] => 
                )

            [__referrer] => Array
                (
                    [extensionName] => MmosEventservice
                    [controllerName] => Event
                    [actionName] => bookings
                )

            [__hmac] => a:3:{s:7:\"booking\";a:7:{s:5:\"price\";i:1;s:4:\"paid\";i:1;s:7:\"paidate\";i:1;s:9:\"invoiceno\";i:1;s:12:\"participated\";i:1;s:6:\"notice\";i:1;s:10:\"__identity\";i:1;}s:6:\"action\";i:1;s:10:\"controller\";i:1;}3915881d739d43f0a715ef1ec07b6ac738f7bf68
        )
```

Hat jemand eine Idee, weshalb die Meldung "The value must be of type "Tx_MmosEventservice_Domain_Model_Booking", but was of type "NULL"." erscheint? Habe ich irgend etwas im Formular nicht abgeschickt?

Würde mich über jeden Hinweis freun.

Viele Grüße micha

## Antworten

### [#2](https://www.typo3.net/d/101692-weshalb-der-fehler-the-value-must-be-of-type/2) · super-mario · 2010-10-17

da schickst du in deinem formular sicher die falsche daten los, zeig mal dein html/fluid code von dem Formular...

---

Quelle: „Weshalb der Fehler: The value must be of type ...... ???“, typo3.net, https://www.typo3.net/d/101692-weshalb-der-fehler-the-value-must-be-of-type
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
