# Fehler Console (SW 6.6.7) - PHP Parse error: syntax error, unexpected ':' , expecting ')' in .../bin/console on line 47

**URL:** <https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667>\
**Category:** Shopware 6 (German)\
**Created:** [27. Oktober 2024 um 15:50 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667 "2024-10-27T15:50:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narrenwerk](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@Narrenwerk](https://forum.shopware.com/u/Narrenwerk)\
**Post date:** [27. Oktober 2024 um 15:50 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/1 "2024-10-27T15:50:46Z")

</div>

Hallo Communitiy,

gerne würde ich in der Console typische Befehle ausführen um Plugins zu steuern.  
Wie z.B. bin/console plugin:refresh

Leider erhalte ich diesen Fehler

```auto
PHP Parse error: syntax error, unexpected ':', expecting ')' in blaa/bla/pafdanagabe/bin/console on line 47

```

Ich nutze php 8.3 Und in dieser Datei ist in der Zeile auch nichts besonderes zu sehen

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/b/9b6e7e7f6db89c2ab103c5c19f5db5e938793baa.png)

Hat jemand eine Idee an was das liegen kann?

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [27. Oktober 2024 um 15:51 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/2 "2024-10-27T15:51:49Z")

</div>

Sicher, dass du auch in der console PHP 8.3 nutzt? Ich glaube nicht.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Narrenwerk](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@Narrenwerk](https://forum.shopware.com/u/Narrenwerk)\
**Post date:** [27. Oktober 2024 um 15:55 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/3 "2024-10-27T15:55:00Z")

</div>

In der Console selber 8.3 nutzen?  
Wie meinst du das, bzw. wie könnte ich das herausfinden welche PHP Version der Console selber hinterlegt ist?

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [27. Oktober 2024 um 15:56 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/4 "2024-10-27T15:56:06Z")

</div>

`php -v`

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Narrenwerk](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@Narrenwerk](https://forum.shopware.com/u/Narrenwerk)\
**Post date:** [27. Oktober 2024 um 16:20 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/5 "2024-10-27T16:20:12Z")

</div>

vielen Dank, das hat geholfen,  
es spuckt php 7.4.33 aus.

… der Console beibringen 8.3 zu nutzen, hast du da auch schnell Hilfe parat?

---

<div class="post-metadata">

**Author:** ![Narrenwerk](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@Narrenwerk](https://forum.shopware.com/u/Narrenwerk)\
**Post date:** [27. Oktober 2024 um 18:35 UTC](https://forum.shopware.com/t/fehler-console-sw-6-6-7-php-parse-error-syntax-error-unexpected-expecting-in-bin-console-on-line-47/105667/6 "2024-10-27T18:35:15Z")

</div>

Habs gefunden,  
in den FAQ vom Webhoster war der entsprechende SSH Befehl um  
die PHP CLI Version zu ändern.

Danke, für deine erste Hilfe
