Console SW5.6.9

Guten Tag und hallo,

ich habe seit dem ich Shopware im Einsatz habe viel über doe Console gelesen.

Leider funktioniert diese nicht bei mir…
Alle Versuche einen Befehl dort zu starten scheitern.

Was mache ich falsch oder ws fehlt ?
PHP Version 7.4 - Shopware Version 5.6.9

Ich möchte ein Plugin einsetzten wozu ich diesen Befehl ausführen möchte:

  • Alle Thumbnails neu generieren (./bin/console sw:thumbnail:generate -f)
  • Alle Bilder als Webp generieren (./bin/console frosh:webp:generate)

Lieben Gruß Thomas 

Bist du im richtigen Pfad? Normalerweise kommt nach /www/htdocs/ACCOUNTID/DOMAIN/ (und hier liegt bei den meisten der SHop)

1 „Gefällt mir“

Ich bin im Pad: /www/htdocs/w019af24/meinedomain.de/bin/

Dort liegen 2 Dateien: 1x htaccess 1x console

console allerdings ohne Endung.

Inhalt der console:

#!/usr/bin/env php

<?php
/\*\*  \* Shopware 5  \* Copyright (c) shopware AG  \*  \* According to our dual licensing model, this program can be used either  \* under the terms of the GNU Affero General Public License, version 3,  \* or under a proprietary license.  \*  \* The texts of the GNU Affero General Public License with an additional  \* permission and of our proprietary license can be found at and  \* in the LICENSE file you have received along with this program.  \*  \* This program is distributed in the hope that it will be useful,  \* but WITHOUT ANY WARRANTY; without even the implied warranty of  \* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  \* GNU Affero General Public License for more details.  \*  \* "Shopware" is a registered trademark of shopware AG.  \* The licensing of the program under the AGPLv3 does not imply a  \* trademark license. Therefore any rights, title and interest in  \* our trademarks remain entirely with us.  \*/ set\_time\_limit(0); require \_\_DIR\_\_ . '/../autoload.php'; use Symfony\Component\Console\Input\ArgvInput; $input = new ArgvInput(); $env = $input-\>getParameterOption(array('--env', '-e'), getenv('SHOPWARE\_ENV') ?: 'production'); $kernel = new Shopware\Kernel($env, false); $application = new Shopware\Components\Console\Application($kernel); $application-\>run($input);  

Als Fehler bekomme ich immer:

Could not open input file: bin/console  Gasp
 

Habe ich aucn versucht:

Befehl: php bin/console sw:thumbnail:generate

 

Fehler: Could not open input file: bin/console

Hallo,

Du musst ein Verzeichnis höher wechseln (also ins Shopware Hauptverzeichnis) - versuch mal

cd …
php bin/console

Viele Grüße

Kannst du dir den Inhalt nicht mal per Console auflisten lassen?

OK Fehler gefunden.

ichwar immner in dem bin Verzeichnis.

Nur im Shop Verzeichnis geht es  Smile

 

Perfekt, oben hatte ich mich vertan, deshalb den Kommentar wieder gelöscht.

1 „Gefällt mir“