Contao-Camp 2024
Ergebnis 1 bis 4 von 4

Thema: Console: Compile Error: Cannot declare class tl_slick_spread

  1. #1
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard Console: Compile Error: Cannot declare class tl_slick_spread

    hallo,

    auf der console bekomme ich beim update auf C4.9.10 den fehler

    "Compile Error: Cannot declare class tl_slick_spread, because the name is already in use"



    Code:
    /home/sisafdbn$ /usr/local/pd-admin2/bin/php-7.4-cli -c /home/sisafdbn/php.ini composer.phar update
    Loading composer repositories with package information
    Updating dependencies
    Nothing to modify in lock file
    Installing dependencies from lock file (including require-dev)
    Nothing to install, update or remove
    Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Generating autoload files
    89 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    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
    > Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
    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                                                                       
    
    PHP Fatal error:  Cannot declare class tl_slick_spread, because the name is already in use in /home/sisafdbnvendor/heimrichhannot/contao-slick-bundle/src/Resources/contao/dca/tl_slick_spread.php on line 756
    
    In tl_slick_spread.php line 756:
                                                                                   
      Compile Error: Cannot declare class tl_slick_spread, because the name is al  
      ready in use                                                                 
                                                                                   
    
    cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>
    
    Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception
    
                                                                                                                                                                                                                                                                                                      
      [RuntimeException]                                                                                                                                                                                                                                                                              
      An error occurred while executing the "cache:warmup" command: PHP Fatal error:  Cannot declare class tl_slick_spread, because the name is already in use in /home/sisafdbn/vendor/heimrichhannot/contao-slick-bundle/src/Resources/contao/dca/tl_slick_spread.php on line 756  
                                                                                                                                                                                                                                                                                                      
      In tl_slick_spread.php line 756:                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                      
        Compile Error: Cannot declare class tl_slick_spread, because the name is al                                                                                                                                                                                                                   
        ready in use                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                      
      cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>                                                                                                                     
                                                                                                                                                                                                                                                                                                      
    
    update [--with WITH] [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-scripts] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
    meine composer.json sieht so aus:

    Code:
    {
        "name": "contao/managed-edition",
        "type": "project",
        "description": "Contao Open Source CMS",
        "license": "LGPL-3.0-or-later",
        "authors": [
            {
                "name": "Leo Feyer",
                "homepage": "https://github.com/leofeyer"
            }
        ],
        "require": {
            "php": "^7.1",
            "contao/listing-bundle": "^4.9",
            "contao/manager-bundle": "4.9.*",
    	"contao/calendar-bundle": "^4.9",
            "contao/news-bundle": "^4.9",
    	 "contao/faq-bundle": "^4.9",
             "craffft/css-style-selector-bundle": "^1.6",
    	"madeyourday/contao-rocksolid-custom-elements": "^2.2",
    	"madeyourday/contao-rocksolid-columns": "^2.0",
    	"madeyourday/contao-rocksolid-icon-picker": "^2.0",
    	"omosde/contao-om-backend": "^1.6",
    	"heimrichhannot/contao-slick-bundle": "^1.5",
    	"do-while/contao-backupdb-bundle": "^1.4",
            "jrgregory/m17-sticky-backend-footer": "^2.0",
            "codefog/contao-mobile_menu": "^2.7"
        },
        "conflict": {
            "contao-components/installer": "<1.3",
            "contao/core-bundle": "<4.4.8"
        },
        "extra": {
            "branch-alias": {
                "dev-4.4": "4.4.x-dev"
            },
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        }
    }
    wo kann ich da ansetzen?
    ich komme nicht mehr ins system.
    slick-slider wird auch tatsächlich verwendet, so dass ich das paket nicht einfach 'rausnehmen kann...

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

    Standard

    Ich kann das Problem mit PHP 7.4 und Composer 1.10.19 sowie Composer 2.0.8 nicht nachvollziehen.

    Du könntest aber die Entwickler dennoch kontaktieren bzw. ein Ticket auf GitHub erstellen und darauf hinweisen, dass diese Zeilen in der composer.json der Extension entfernt werden sollten, da sie überflüssig sind (aber unter Umständen genau solche Probleme verursachen).

  3. #3
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard

    danke, spooky,

    ticket ist erstellt.

  4. #4
    Contao-Fan Avatar von herr rilke
    Registriert seit
    29.01.2011.
    Ort
    Münster
    Beiträge
    401

    Standard

    mmh:
    ich glaube es liegt eher daran, dass in der installation noch eine altes slick modul unter system/modules/slick lag. daher dann auch die meldung name is already in use
    sorry.

    melde mich als honk ab

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
  •