# ./psh.phar plugin:install --activate CustomCMSBlock wift PHP Fehler, CMS Block wird nicht angezeigt

**URL:** <https://forum.shopware.com/t/psh-phar-plugin-install-activate-customcmsblock-wift-php-fehler-cms-block-wird-nicht-angezeigt/70796>\
**Category:** Programmierung\
**Created:** [10. November 2020 um 09:58 UTC](https://forum.shopware.com/t/psh-phar-plugin-install-activate-customcmsblock-wift-php-fehler-cms-block-wird-nicht-angezeigt/70796 "2020-11-10T09:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuro](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kuro](https://forum.shopware.com/u/Kuro)\
**Post date:** [10. November 2020 um 09:58 UTC](https://forum.shopware.com/t/psh-phar-plugin-install-activate-customcmsblock-wift-php-fehler-cms-block-wird-nicht-angezeigt/70796/1 "2020-11-10T09:58:11Z")

</div>

Hallo, ich bin ein Anfänger in Shopware und ziemlich am Verzweifeln, seit Wochen versuchte ich jetzt schon die Developer Edition aufzusetzen was jetzt erst vor kurzen ich hinbekommen habe, was zu meiner ersten Frage führt.  
Brauch ich überhaupt die Developer Version oder geht das auch ohne weil das Musterbeispiel konnte ich ohne die Befehle installieren über den Plugin Manager?

Ich habe von den Guide [Shopware 6: Adding a custom CMS block](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-block) so gut ich konnte nachgemacht und schon versucht das muster von github herunterzuladen und zu installieren (welches auch funktionierte und der Block auch eingebunden wurde).

Aber im Tutorial steht man muss diesen Befehl ausführen “`./psh.phar plugin:install --activate CustomCMSBlock`” dieser funktioniert bei mir aber nicht, weil er folgenden Fehler wirft (auch mit dem Musterbeispiel wird dieser Fehler geworfen)

_“PHP Fatal error:&nbsp; Uncaught RuntimeException: Missing required value for “NAME” in phar:///app/psh.phar/src/ScriptRuntime/TemplateEngine.php:55  
Stack trace:  
 #0 phar:///app/psh.phar/src/ScriptRuntime/TemplateEngine.php(26): Shopware\Psh\ScriptRuntime\TemplateEngine-\>getValue(’\_\_NAME\_\_’, Array)  
 #1 phar:///app/psh.phar/src/ScriptRuntime/ProcessExecutor.php(166): Shopware\Psh\ScriptRuntime\TemplateEngine-\>render(‘if [ -z "\_\_NAME…’, Array)  
 #2 phar:///app/psh.phar/src/ScriptRuntime/ProcessExecutor.php(88): Shopware\Psh\ScriptRuntime\ProcessExecutor-\>getParsedShellCommand(Object(Shopware\Psh\ScriptRuntime\ProcessCommand))  
 #3 phar:///app/psh.phar/src/ScriptRuntime/ProcessExecutor.php(70): Shopware\Psh\ScriptRuntime\ProcessExecutor-\>executeCommand(Object(Shopware\Psh\ScriptRuntime\ProcessCommand), 0, 5)  
 #4 phar:///app/psh.phar/src/Application/Application.php(170): Shopware\Psh\ScriptRuntime\ProcessExecutor-\>execute(Object(Shopware\Psh\Listing\Script), Array)  
 #5 phar:///app/psh.phar/src/Application/Application.php(92): Shopware\Psh\App in phar:///app/psh.phar/src/ScriptRuntime/TemplateEngine.php on line 55”_

&nbsp;

Ich habe auch schon versucht von swag-docs-custom-cms-block-master alle Dateien des Ordners in meinen zu kopieren, die Tests zu entfernen und dann versucht zu installieren was auch nicht ging.

&nbsp;

composer.json

```
{
    "name": "kuro/custom-blocks",
    "description": "Eigene CMS Blöcke",
    "version": "v1.0.0",
    "type": "shopware-platform-plugin",
    "authors": [
        {
            "name": "Kuro"
        }
    ],
    "extra": {
        "shopware-plugin-class": "Kuro\\CustomCmsBlock\\CustomCmsBlock",
        "label": {
            "de-DE": "Eigene Blöcke",
            "en-GB": "Own blocks"
        }
    },
    "autoload": {
        "psr-4": {
            "Kuro\\CustomCmsBlock\\": "src/"
        }
    }
}

```

src/CustomCmsBlock.php

&nbsp;

Im src/Resources/ ordner ist der app und views ordner wie im Muster 1 zu 1 übernommen

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [10. November 2020 um 13:15 UTC](https://forum.shopware.com/t/psh-phar-plugin-install-activate-customcmsblock-wift-php-fehler-cms-block-wird-nicht-angezeigt/70796/2 "2020-11-10T13:15:25Z")

</div>

Hallo,

bitte die Shopware Commands wie folgt aufrufen: `bin/console plugin:install --activate CustomCMSBlock`

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![lav](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@lav](https://forum.shopware.com/u/lav)\
**Post date:** [25. November 2020 um 08:48 UTC](https://forum.shopware.com/t/psh-phar-plugin-install-activate-customcmsblock-wift-php-fehler-cms-block-wird-nicht-angezeigt/70796/3 "2020-11-25T08:48:41Z")

</div>

&nbsp;

namespace Swag\CustomCmsBlock; is wrong

&nbsp;

&nbsp;

namespace Kuro\CustomCmsBlock; is right namespace
