# PHP Parse Error bei Importversuch via Konsole

**URL:** <https://forum.shopware.com/t/php-parse-error-bei-importversuch-via-konsole/62357>\
**Category:** Administration\
**Created:** [14. Oktober 2019 um 11:35 UTC](https://forum.shopware.com/t/php-parse-error-bei-importversuch-via-konsole/62357 "2019-10-14T11:35:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manatwork81](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@manatwork81](https://forum.shopware.com/u/manatwork81)\
**Post date:** [14. Oktober 2019 um 11:35 UTC](https://forum.shopware.com/t/php-parse-error-bei-importversuch-via-konsole/62357/1 "2019-10-14T11:35:38Z")

</div>

Ich arbeite mit einer leeren Neuinstallation.&nbsp;Lediglich die Kategorien wurden bereits über das Backend importiert.&nbsp;  
System:&nbsp;  
Shopware 5.6.2  
PHP-Version: 7.2.23  
MySQL: 10.2.27

Doch schon bei der bloßen Abfrage der vorhandenen Profile („php bin/console sw:importexport:profiles“) kommt es zum Fehler:

PHP Parse error: &nbsp;syntax error, unexpected ‚$value‘ (T\_VARIABLE) in …/httpdocs/vendor/aws/aws-sdk-php/src/functions.php on line 36  
-bash: syntax error near unexpected token `(’

Hier der Code, Line 36 ist „yield $value;“&nbsp;  
(auch wenn ich hier nichts Verdächtiges entdecke)

/\*\*  
&nbsp;\* Filters values that do not satisfy the predicate function $pred.  
&nbsp;\*  
&nbsp;\* @param mixed &nbsp;&nbsp;&nbsp;$iterable Iterable sequence of data.  
&nbsp;\* @param callable $pred Function that accepts a value and returns true/false  
&nbsp;\*  
&nbsp;\* @return \Generator  
&nbsp;\*/  
function filter($iterable, callable $pred)  
{  
&nbsp;&nbsp;&nbsp;&nbsp;foreach ($iterable as $value) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($pred($value)) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yield $value;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;}  
}

Insgesamt geht es um&nbsp;roundabout 12.000 Artikel.&nbsp;  
Diese sollen künftig zumindest täglich optimiert und aktualisiert werden.&nbsp;  
Daher der Funktionstest auf der Konsole.  
&nbsp;

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [14. Oktober 2019 um 11:43 UTC](https://forum.shopware.com/t/php-parse-error-bei-importversuch-via-konsole/62357/2 "2019-10-14T11:43:49Z")

</div>

Möglich das die PHP-Version auf der Konsole eine ganz andere ist. Für alle Fälle dies mal überprüfen.
