# Fehlermeldung bei Mailversand

**URL:** <https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227>\
**Category:** Administration\
**Created:** [28. November 2019 um 10:46 UTC](https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227 "2019-11-28T10:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![herzschlag](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@herzschlag](https://forum.shopware.com/u/herzschlag)\
**Post date:** [28. November 2019 um 10:46 UTC](https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227/1 "2019-11-28T10:46:28Z")

</div>

Nach einem Plugin-Update erhalten wir folgende Fehlermeldung. Die aktualisierten Plugins haben wir alle deaktiviert. Der Fehler bleibt. Egal ob Statusänderung (+ Mailversand) oder Bestellbestätigung. Die Fehlermeldung erscheint überall.

&nbsp;

Parse error: syntax error, unexpected ‚;‘, expecting identifier (T\_STRING) or variable (T\_VARIABLE) or ‚{‘ or ‚$‘ in /var/www/vhosts/mxxxxx/httpdocs/xxxxx/var/cache/production\_201909250854/doctrine/attributes/Mail.php on line 87

&nbsp;

An der genannten Stelle sind getID und setID als Duplikate drin. Außerdem einige Fehler bei der Rückgabe. An welcher Stelle werden diese Cachedateien erzeugt? Ich kann den Fehler temporär (zumindest) unterdrücken. Aber mit der nächsten Erzeugung ist es wieder dahin.

&nbsp;

&nbsp;

&nbsp; &nbsp; public function getId()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>id;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function setId($id)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; $this-\>id = $id;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }  
&nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; public function getId()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>id;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function setId($id)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; $this-\>id = $id;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }  
&nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; public function get()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function set($)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; this-\\> = ;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }

---

<div class="post-metadata">

**Author:** ![herzschlag](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@herzschlag](https://forum.shopware.com/u/herzschlag)\
**Post date:** [28. November 2019 um 10:48 UTC](https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227/2 "2019-11-28T10:48:24Z")

</div>

Ich habe mir eine Originalinstallation angeguckt. Es müsste eigentlich so aussehen:

Das sieht aus wie wenn das Wort “Mail” einfach gestrichen ist.

&nbsp;

&nbsp; &nbsp;public function getId()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>id;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function setId($id)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; $this-\>id = $id;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }  
&nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; public function getMailId()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>mailId;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function setMailId($mailId)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; $this-\>mailId = $mailId;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }  
&nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; public function getMail()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; return $this-\>mail;  
&nbsp; &nbsp; }

&nbsp; &nbsp; public function setMail($mail)  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; $this-\>mail = $mail;  
&nbsp; &nbsp; &nbsp; &nbsp; return $this;  
&nbsp; &nbsp; }

---

<div class="post-metadata">

**Author:** ![herzschlag](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@herzschlag](https://forum.shopware.com/u/herzschlag)\
**Post date:** [28. November 2019 um 11:01 UTC](https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227/3 "2019-11-28T11:01:58Z")

</div>

Im Log erscheint jetzt eine weitere Meldung:&nbsp;[2019-11-28 11:51:53] core.CRITICAL: Class ‚Shopware\Models\Attribute\Mail‘ does not exist {„uid“:„2a6cec6“}

---

<div class="post-metadata">

**Author:** ![herzschlag](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@herzschlag](https://forum.shopware.com/u/herzschlag)\
**Post date:** [28. November 2019 um 12:26 UTC](https://forum.shopware.com/t/fehlermeldung-bei-mailversand/63227/4 "2019-11-28T12:26:49Z")

</div>

Fehler gelöst. ForeignKey-Reparatur durchgeführt. Jetzt läufts wieder!! 🙂
