markocupic / newsletter-notify-on-subscription-activation-bundle

Send notifications on newsletter subscription activation.
MIT License
0 stars 0 forks source link

Palette "default" not found in table "tl_newsletter_channel" #1

Open dp-designpilot opened 4 years ago

dp-designpilot commented 4 years ago

Hallo

Ich habe folgendes Problem, wenn ich die Version 4.9.4 probiere auf die 4.9.5 zu aktualisieren erhalte ich folgende Fehlermeldung (beim Testlauf ging alles wunderbar durch) nur wenn ich auf Änderungen anwenden klicke kommt es zu diesem Fehler.

Resolving dependencies using Composer Cloud v2.4.3

Job ID BciC00Nh13Q9HKtiKys9B3KCXJkNvtS4PQdDlIeg8oVt1ABRl14nROYQdrQ6b089iSd completed in 63 seconds

Memory usage: 548.01MB (peak: 2483.04MB), time: 62.91s.

$ /opt/php74/bin/php -q -d memory_limit=-1 /var/www/vhosts/badcompanyjewelry.ch/httpdocs/webseite/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader

composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated: ...done generating version class contao/manager-plugin: Generating plugin class... contao/manager-plugin: ...done generating plugin class Added the web/app.php file. Added the web/index.php file. Added the web/preview.php file.

// Clearing the cache for the prod environment with debug
// false

[OK] Cache for the "prod" environment (debug=false) was successfully cleared.

// Clearing the cache for the dev environment with debug
// true

[OK] Cache for the "dev" environment (debug=true) was successfully cleared.

// Warming up the cache for the prod environment with debug
// false

20:24:10 ERROR [console] Error thrown while running command "cache:warmup --env=prod". Message: "Palette "default" not found in table "tl_newsletter_channel"" ["exception" => Contao\CoreBundle\DataContainer\PaletteNotFoundException { …},"command" => "cache:warmup --env=prod","message" => "Palette "default" not found in table "tl_newsletter_channel""]

In PaletteManipulator.php line 116:

Palette "default" not found in table "tl_newsletter_channel"

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--]

Loading composer repositories with package information Installing dependencies from lock file Package operations: 0 installs, 21 updates, 1 removal

In ScriptHandler.php line 89:

An error occurred while executing the "cache:warmup" command: 20:24:10 ERRO
R [console] Error thrown while running command "cache:warmup --env=prod
". Message: "Palette "default" not found in table "tl_newsletter_channel""
["exception" => Contao\CoreBundle\DataContainer\PaletteNotFoundException {
…},"command" => "cache:warmup --env=prod","message" => "Palette "default" n
ot found in table "tl_newsletter_channel""]

In PaletteManipulator.php line 116:

Palette "default" not found in table "tl_newsletter_channel"               

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--
verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en
v ENV] [--]

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [...]

Process terminated with exit code 1

Result: General error


Der Hintergrundprozess wurde unerwartet beendet

Mit Ausi's Hilfe (danke nochmal für deine Hilfe) konnte er herausfinden das bei dieser Zeile https://github.com/markocupic/newsletter-notify-on-subscription-activation-bundle/blob/master/src/ContaoManager/Plugin.php#L30 <- hier der Eintrag für das newsletter bundle fehlt.

markocupic commented 4 years ago

Fixed in fac6a2d but untested!

Please try https://github.com/markocupic/newsletter-notify-on-subscription-activation-bundle/tree/1.0.4 and send me a feedback.