Ergebnis 1 bis 17 von 17

Thema: Nach Update auf 5.3.8 (von 5.3.7) contao-manager nur noch im abgesicherten Mode

  1. #1
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard Nach Update auf 5.3.8 (von 5.3.7) contao-manager nur noch im abgesicherten Mode

    Hallo zusammen,
    ich habe heute eine laufende Version 5.3.7 auf 5.3.8 über den Contao-Manager upgedated.
    Danach bekomme ich den Contao-Manager nur noch im abgesicherten Modus zum Laufen.
    Meldung:
    Code:
    vendor/bin/contao-console list
    20:41:16 CRITICAL  [console] Error thrown while running command "list --format=json". Message: "Call to a member function getParameter() on null" ["exception" => Error { …},"command" => "list --format=json","message" => "Call to a member function getParameter() on null"]
    In System.php line 455:
                                                        
      Call to a member function getParameter() on null  
                                                        
    list [--raw] [--format FORMAT] [--short] [--] [<namespace>]
    Das Frontend zeigt nur noch den Maintanance Modus an.
    Per ssh auf den Server und per
    Code:
    vendor/bin/contao-console contao:maintenance-mode off
    den Maintanance Mode abgeschaltet, dann wird das Frontend auch sauber dargestellt. Auch ins Backend komme ich ganz normal.
    Im Backend wird angezeigt, dass ich die Version 5.3.8 hätte.

    Was habe ich schon versucht:
    composer.lock gelöscht und erneut erstellen lassen -> keine Änderung
    Verzeichnis "vendor" gelöscht und erneut erstellen lassen -> keine Änderung
    Im Contao-Manager "Prod.-Cache" erneuert. -> keine Änderung
    Provider ist netcup
    PHP Version ist 8.3.6
    Seit zig Jahren habe ich die Domain schon bei netcup.
    Dieses Jahr habe ich komplett neu aufgebaut und mit Contao 5.3 angefangen.
    Lief an sich auch ohne Probleme. Bis heute nach dem Update.

    Ich weiß nicht mehr weiter. Kann mir hier jemand auf die Sprünge helfen?

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Hast du SSH Zugriff? Wenn ja führe bspw. mal
    Code:
    bin/console list -v
    aus und poste die Ausgabe.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard SSH Zugriff ist möglch

    Ich denke, du meinst:
    Code:
    vendor/bin/contao-console list -v
    Das Ergebnis ist erst einmal positiv:
    Code:
    Contao Managed Edition 5.3.8 (env: prod, debug: false)
    
    Usage:
      command [options] [arguments]
    
    Options:
      -h, --help            Display help for the given command. When no command is given display help for the list command
      -q, --quiet           Do not output any message
      -V, --version         Display this application version
          --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
      -n, --no-interaction  Do not ask any interactive question
      -e, --env=ENV         The Environment name. [default: "prod"]
          --profile         Enables profiling (requires debug).
      -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
    
    Available commands:
      about                                   Display information about the current project
      completion                              Dump the shell completion script
      help                                    Display help for a command
      list                                    List commands
     assets
      assets:install                          Install bundle's web assets under a public directory
     cache
      cache:clear                             Clear the cache
      cache:pool:clear                        Clear cache pools
      cache:pool:delete                       Delete an item from a cache pool
      cache:pool:invalidate-tags              Invalidate cache tags for all or a specific pool
      cache:pool:list                         List available cache pools
      cache:pool:prune                        Prune cache pools
      cache:warmup                            Warm up an empty cache
     config
      config:dump-reference                   Dump the default configuration for an extension
     contao
      contao:automator                        Runs automator tasks on the command line.
      contao:backup:create                    Creates a new database backup.
      contao:backup:list                      Lists the existing database backups.
      contao:backup:restore                   Restores a database backup.
      contao:crawl                            Crawls the Contao root pages with the desired subscribers.
      contao:cron                             Runs cron jobs on the command line.
      contao:cron:list                        Lists all available cron jobs and their intervals.
      contao:filesync                         Synchronizes the registered DBAFS with the virtual filesystem.
      contao:install                          Installs the required Contao directories.
      contao:maintenance-mode                 Changes the state of the system maintenance mode.
      contao:migrate                          Executes migrations and updates the database schema.
      contao:resize-images                    Resizes deferred images that have not been processed yet.
      contao:setup                            Sets up a Contao Managed Edition. This command will be run when executing the "contao-setup" binary.
      contao:supervise-workers                Supervises the Contao workers.
      contao:symlinks                         Symlinks the public resources into the public directory.
      contao:user:create                      Create a new Contao back end user.
      contao:user:list                        Lists Contao back end users.
      contao:user:password                    Changes the password of a Contao back end user.
     dbal
      dbal:run-sql                            Executes arbitrary SQL directly from the command line.
     debug
      debug:autowiring                        List classes/interfaces you can use for autowiring
      debug:config                            Dump the current configuration for an extension
      debug:container                         Display current services for an application
      debug:contao-twig                       Displays the Contao template hierarchy.
      debug:dca                               Dumps the DCA configuration for a table.
      debug:dotenv                            List all dotenv files with variables and values
      debug:event-dispatcher                  Display configured listeners for an application
      debug:firewall                          Display information about your security firewall(s)
      debug:fragments                         Displays the fragment controller configuration.
      debug:messenger                         List messages you can dispatch using the message buses
      debug:pages                             Displays the page controller configuration.
      debug:plugins                           Displays the Contao Manager plugin configurations.
      debug:router                            Display current routes for an application
      debug:translation                       Display translation messages information
      debug:twig                              Show a list of twig functions, filters, globals and tests
     doctrine
      doctrine:cache:clear-collection-region  Clear a second-level cache collection region
      doctrine:cache:clear-entity-region      Clear a second-level cache entity region
      doctrine:cache:clear-metadata           Clear all metadata cache of the various cache drivers
      doctrine:cache:clear-query              Clear all query cache of the various cache drivers
      doctrine:cache:clear-query-region       Clear a second-level cache query region
      doctrine:cache:clear-result             Clear all result cache of the various cache drivers
      doctrine:database:create                Creates the configured database
      doctrine:database:drop                  Drops the configured database
      doctrine:ensure-production-settings     Verify that Doctrine is properly configured for a production environment
      doctrine:mapping:convert                [orm:convert:mapping] Convert mapping information between supported formats
      doctrine:mapping:import                 Imports mapping information from an existing database
      doctrine:mapping:info                   Show basic information about all mapped entities
      doctrine:query:dql                      Executes arbitrary DQL directly from the command line
      doctrine:query:sql                      Executes arbitrary SQL directly from the command line.
      doctrine:schema:create                  Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output
      doctrine:schema:drop                    Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output
      doctrine:schema:update                  Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata
      doctrine:schema:validate                Validate the mapping files
     dotenv
      dotenv:dump                             Compile .env files to .env.local.php
     fos
      fos:httpcache:clear                     Clear the HTTP cache.
      fos:httpcache:invalidate:path           Invalidate cached paths on all configured caching proxies
      fos:httpcache:invalidate:regex          Invalidate everything matching a regular expression on all configured caching proxies
      fos:httpcache:invalidate:tag            Invalidate cached content matching the specified tags on all configured caching proxies
      fos:httpcache:refresh:path              Refresh paths on all configured caching proxies
     lint
      lint:container                          Ensure that arguments injected into services match type declarations
      lint:twig                               Lint a Twig template and outputs encountered errors
      lint:xliff                              Lint an XLIFF file and outputs encountered errors
      lint:yaml                               Lint a YAML file and outputs encountered errors
     mailer
      mailer:test                             Test Mailer transports by sending an email
     messenger
      messenger:consume                       Consume messages
      messenger:failed:remove                 Remove given messages from the failure transport
      messenger:failed:retry                  Retry one or more messages from the failure transport
      messenger:failed:show                   Show one or more messages from the failure transport
      messenger:setup-transports              Prepare the required infrastructure for the transport
      messenger:stats                         Show the message count for one or more transports
      messenger:stop-workers                  Stop workers after their current message
     router
      router:match                            Help debug routes by simulating a path info match
     secrets
      secrets:decrypt-to-local                Decrypt all secrets and stores them in the local vault
      secrets:encrypt-from-local              Encrypt all local secrets to the vault
      secrets:generate-keys                   Generate new encryption keys
      secrets:list                            List all secrets
      secrets:remove                          Remove a secret from the vault
      secrets:set                             Set a secret in the vault
     security
      security:hash-password                  Hash a user password
     skeleton
      skeleton:install                        [contao:install-web-dir] Installs the skeleton files of the manager bundle.
     translation
      translation:extract                     Extract missing translations keys from code to translation files
      translation:pull                        Pull translations from a given provider.
      translation:push                        Push translations to a given provider.
    Aber
    Code:
    bin/console list -v
    bringt das gleiche Ergebnis. Also erst einmal in Ordnung
    Geändert von mammut (08.05.2024 um 05:57 Uhr)

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Zitat Zitat von mammut Beitrag anzeigen
    Ich denke, du meinst:
    Code:
    vendor/bin/contao-console list -v
    Nein, bin/console ist schon richtig (unter Contao 5)
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    bringt ja das gleiche Ergebnis. Beides funktioniert.

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Dann scheint alles in Ordnung zu sein . Was genau möchtest du im Contao Manager machen?
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    Schön wäre es, wenn alles in Ordnung wäre.
    Aber wenn ich im Contao-Manager mich anmelde kommt:
    Systemwiederherstellung
    Es wurden Dateien erkannt, die nach einer Contao-Installation aussehen, aber die Kommandozeile scheint nicht korrekt zu funktionieren.
    2024-05-08 12_32_01-Contao Manager _ lug-aalen.de.png
    Dann die Meldung, wie ich weiter oben schon rein kopiert habe.

    Nur mit abgesicherten Modus kann ich starten.
    Reparatur ausführen löscht wohl nur den Prod.Cache
    Danach läuft alles wieder auf die gleiche Meldung hinaus.

  8. #8
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    »»
    Zitat Zitat von Spooky Beitrag anzeigen
    Was genau möchtest du im Contao Manager machen?
    » sponsor me via GitHub or PayPal or Revolut

  9. #9
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    Ich möchte
    - den fehlenden Datenbankupdate durchführen.
    - Wartungsmodus abschalten können

    Im Abgesicherten Modus geht das nicht.

  10. #10
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Zitat Zitat von mammut Beitrag anzeigen
    - den fehlenden Datenbankupdate durchführen.
    Code:
    bin/console contao:migrate --no-interaction

    Zitat Zitat von mammut Beitrag anzeigen
    - Wartungsmodus abschalten können
    Code:
    bin/console contao:maintenance-mode disable
    » sponsor me via GitHub or PayPal or Revolut

  11. #11
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    Vielen Dank für die Info.
    Das mit dem migrate hatte ich dank deinem letzten Hinweis auch schon gefunden.
    Komischerweise meldet der aber nichts zum migrieren.
    Den maintanance-mode abschalten funktioniert so. Das ist zwar in Ordnung.
    Das würde ich auch gerne im Contao-Manger per WEB-Browser erledigen. Da ssh Zugang manchmal etwas schwieriger ist.
    Außerdem würde ich auch gerne Pakete verwalten. Löschen und neue einfügen.
    Dazu war der Contao-Manager einfach nur super.
    Für mich ist derzeit der Contao-Manger unbenutzbar. (Fast)

  12. #12
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Es gab vermutlich keine fehlenden Datenbank Updates. Der Fehler, der über den Contao Manager über die Konsole aufscheint manifestiert sich im Contao Manager dann aber so.

    Führe mal ein
    Code:
    php public/contao-manager.phar.php composer install -o --prefer-dist --no-dev
    aus (php ggf. mit dem richtigen Pfad zum korrekten PHP CLI ersetzen).
    Geändert von Spooky (08.05.2024 um 12:28 Uhr)
    » sponsor me via GitHub or PayPal or Revolut

  13. #13
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    Code:
    bash-5.1$ php public/contao-manager.phar.php composer install -o --prefer-dist --no-dev
    Installing dependencies from lock file
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
    Generating optimized autoload files
    Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping.
    122 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    contao/manager-plugin: Dumping generated plugins file...
    contao/manager-plugin: ...done dumping generated plugins file
    > @php vendor/bin/contao-setup
    
    Warning: Class "Memo\BackendOptimBundle\EventListener\DataContainerListener" not found in /hosting197944.ae90f.netcup.net/vendor/mediamotionag/contao-backend-optim-bundle/src/EventListener/DataContainerListener.php on line 19
    Added the bin/console file.
    Added the public/index.php file.
    Added the public/preview.php file.
    
     Trying to install assets as relative symbolic links.
    
     --- -------------------------------------- ------------------
          Bundle                                 Method / Error
     --- -------------------------------------- ------------------
      ?   ContaoCoreBundle                       relative symlink
      ?   TrilobitWorldofimagesBundle            relative symlink
      ?   MultiColumnWizardBundle                relative symlink
      ?   ContaoFaqBundle                        relative symlink
      ?   CodefogHasteBundle                     relative symlink
      ?   Terminal42DcawizardBundle              relative symlink
      ?   ThemeHelperBundle                      relative symlink
      ?   PdirContaoStickyFooterBundle           relative symlink
      ?   ContaoNewsBundle                       relative symlink
      ?   MemoBackendOptimBundle                 relative symlink
      ?   PdirContaoKlaroConsentManager          relative symlink
      ?   RockSolidFrontendHelperBundle          relative symlink
      ?   OneupContaoBackendLimitedWidthBundle   relative symlink
      ?   PdirContaoWebtoolsBundle               relative symlink
      ?   Terminal42NotificationCenterBundle     relative symlink
      ?   ContaoCalendarBundle                   relative symlink
      ?   ContaoNewsletterBundle                 relative symlink
      ?   CgoitContaoCalendarIcalBundle          relative symlink
      ?   ContaoDDAdvancedClassesBundle          relative symlink
      ?   ContaoCommentsBundle                   relative symlink
      ?   ThemeComponentsBundle                  relative symlink
      ?   ContaoThemesNetOddThemeBundle          relative symlink
     --- -------------------------------------- ------------------
    
    
     [OK] All assets were successfully installed.
    
    
    
     --- ------------------------------------------- --------------------------------------------------
          Symlink                                     Target / Error
     --- ------------------------------------------- --------------------------------------------------
      ?   public/files/LUG-Projekte                   files/LUG-Projekte
      ?   public/files/LUG                            files/LUG
      ?   public/files/odd                            files/odd
      ?   public/files/lug-aalen                      files/lug-aalen
      ?   public/files/Termine                        files/Termine
      ?   system/themes/flexible                      vendor/contao/core-bundle/contao/themes/flexible
      ?   public/assets                               assets
      ?   public/system/themes                        system/themes
      ?   system/logs                                 var/logs
      ?   public/vendor/scrivo/highlight_php/styles   vendor/scrivo/highlight.php/styles
     --- ------------------------------------------- --------------------------------------------------
    
    
     // 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
    
    
     [OK] Cache for the "prod" environment (debug=false) was successfully warmed.
    
    
     [INFO] Done! Please run the contao:migrate command to make sure the database is
            up-to-date.
    Nachdem sieht an sich alles in Ordnung aus.
    Die dargestellen Fragezeichen sind an sich grüne Haken.
    Der Contao-Manager bringt aber immer noch die gleiche Meldung

  14. #14
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.261
    Partner-ID
    10107

    Standard

    Du hast sehr viele Erweiterungen installiert - ggf. wird das von einer davon verursacht. Du könntest versuchen nacheinander Erweiterungen über die Konsole zu deinstallieren und jedes mal danach prüfen, ob der Fehler im Contao Manager danach noch auftritt.
    » sponsor me via GitHub or PayPal or Revolut

  15. #15
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Daumen hoch

    Schon bei der zweiten Extension hat es wieder funktioniert.
    Die Extension
    ics-Feeds importieren und exportieren
    scheint hier ein Problem zu haben.
    Auf diese Extension kann ich derzeit verzichten.
    Das ist kein Problem derzeit.
    Herzlichen Dank für die Unterstützung

  16. #16
    Community-Moderatorin & Contao-Urgestein Avatar von mlweb
    Registriert seit
    10.07.2011.
    Beiträge
    6.801
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Du solltest bitte den Entwickler der Erweiterung per Github über den Fehler informieren.
    Ich habe Dir mit meinen Hinweisen geholfen und Du möchtest Dich bedanken?
    Unterstütze bitte das Contao-Projekt (Button Links)
    Weitere Spendenmöglichkeiten
    ------------------------------------------------------------------------------------------------------
    Contao-Dokumentation: Contao-Handbuch und Contao-Entwickler-Doku
    Contao-Online-Video-Kurse: Contao Academy
    Funktionalität erweitern: Contao-Erweiterungen

    Für Dinge die man mit html5 und css3 lösen kann, braucht man kein javascript.




  17. #17
    Contao-Nutzer
    Registriert seit
    05.09.2014.
    Ort
    Aalen
    Beiträge
    22

    Standard

    Das habe ich tatsächlich vor.
    Dazu muss ich das Ganze etwas anders aufbereiten

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •