heimrichhannot / contao-categories-bundle

This bundle allows to assign nestable categories to arbitrary entities in Contao-driven systems.
4 stars 1 forks source link

fehlendes require contao-filter-bundle #5

Closed srhinow closed 5 years ago

srhinow commented 5 years ago

Contao4.4.40, PHP7.2 seit heute läuft ein composer update/install nicht mehr durch da dieser Fehler erscheint

  [RuntimeException]                                                                                                                                                                                                                   
  An error occurred while executing the "contao:install-web-dir" command: PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class HeimrichHannot\FilterBundle\Choice\FieldOptionsChoice not found in /var/www/[PFAD]/htdocs/vendor/heimrichhannot/contao-categories-bundle/src/Filter/Choice/CategoriesChoice.php:17     

und sobald ich das contao-filter-bundle manuell require mit

composer require heimrichhannot/contao-filter-bundle

kommt folgender Fehler: PHP Fatal error: During class fetch: Uncaught ReflectionException: Class Controller not found in /var/www/[PFAD]/htdocs/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:31

srhinow commented 5 years ago

Das scheint ein Problem vom letzten PHP7.2-Update unter ubuntu 18.04 zu sein. Denn mir ist eingefallen das die Pakete heute aktualisiert wurden und wenn ich auf php7.3 switche dann läuft composer install/update durch.

Defcon0 commented 5 years ago

Die Vermutung habe ich auch. Ich habe es gerade getestet und es lief reibungslos durch mit php 7.3. Wenn du die Klassen nicht aufrufst, die auf Filter Bezug nehmen, passiert auch nichts.

composer.json

{
    "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"
        }
    ],
    "prefer-stable": true,
    "minimum-stability": "dev",
    "require": {
        "php": "^5.6 || ^7.0",
        "contao/calendar-bundle": "4.4.*",
        "contao/comments-bundle": "4.4.*",
        "contao/conflicts": "@dev",
        "contao/faq-bundle": "4.4.*",
        "contao/listing-bundle": "4.4.*",
        "contao/manager-bundle": "4.4.*",
        "contao/news-bundle": "4.4.*",
        "contao/newsletter-bundle": "4.4.*",
        "heimrichhannot/contao-categories-bundle": "^1.0"
    },
    "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"
        ]
    }
}

composer update

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 127 installs, 0 updates, 0 removals
  - Installing contao-components/installer (1.3.1): Loading from cache
  - Installing paragonie/random_compat (v9.99.99): Loading from cache
  - Installing symfony/polyfill-php70 (v1.11.0): Loading from cache
  - Installing symfony/polyfill-util (v1.11.0): Loading from cache
  - Installing symfony/polyfill-php56 (v1.11.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.11.0): Loading from cache
  - Installing symfony/symfony (v3.4.29): Loading from cache
  - Installing contao/manager-plugin (2.7.1): Loading from cache
  - Installing contao/conflicts (dev-master a3fd5c0)
  - Installing symfony/polyfill-intl-icu (v1.11.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.11.0): Loading from cache
  - Installing symfony/polyfill-apcu (v1.11.0): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing psr/log (1.1.0): Loading from cache
  - Installing psr/link (1.0.0): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing twig/twig (v1.42.2): Loading from cache
  - Installing fig/link-util (1.0.0): Loading from cache
  - Installing doctrine/lexer (1.0.2): Loading from cache
  - Installing doctrine/annotations (v1.6.1): Loading from cache
  - Installing doctrine/reflection (v1.0.0): Loading from cache
  - Installing doctrine/event-manager (v1.0.0): Loading from cache
  - Installing doctrine/collections (v1.6.2): Loading from cache
  - Installing doctrine/cache (v1.8.0): Loading from cache
  - Installing doctrine/persistence (1.1.1): Loading from cache
  - Installing doctrine/inflector (v1.3.0): Loading from cache
  - Installing doctrine/common (v2.10.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.11.0): Loading from cache
  - Installing symfony/polyfill-php72 (v1.11.0): Loading from cache
  - Installing symfony/polyfill-intl-idn (v1.11.0): Loading from cache
  - Installing symfony/mime (v4.3.2): Loading from cache
  - Installing webmozart/assert (1.4.0): Loading from cache
  - Installing webmozart/path-util (2.3.0): Loading from cache
  - Installing true/punycode (v2.1.1): Loading from cache
  - Installing php-http/discovery (1.7.0): Loading from cache
  - Installing clue/stream-filter (v1.4.1): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing php-http/message-factory (v1.0.2): Loading from cache
  - Installing php-http/message (1.7.2): Loading from cache
  - Installing php-http/promise (v1.0.0): Loading from cache
  - Installing php-http/httplug (v1.1.0): Loading from cache
  - Installing php-http/client-common (1.9.1): Loading from cache
  - Installing symfony/http-client-contracts (v1.1.5): Loading from cache
  - Installing ralouphie/getallheaders (3.0.3): Loading from cache
  - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.3): Loading from cache
  - Installing php-http/guzzle6-adapter (v1.1.1): Loading from cache
  - Installing friendsofsymfony/http-cache (2.7.0): Loading from cache
  - Installing friendsofsymfony/http-cache-bundle (2.7.0): Loading from cache
  - Installing terminal42/header-replay-bundle (1.5.3): Loading from cache
  - Installing tecnickcom/tcpdf (6.2.26): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.12): Loading from cache
  - Installing symfony/swiftmailer-bundle (v2.6.7): Loading from cache
  - Installing simplepie/simplepie (1.5.2): Loading from cache
  - Installing phpunit/php-token-stream (3.0.2): Loading from cache
  - Installing phpspec/php-diff (v1.1.0): Loading from cache
  - Installing patchwork/utf8 (v1.3.1): Loading from cache
  - Installing oyejorge/less.php (v1.7.0.14): Loading from cache
  - Installing nelmio/cors-bundle (1.5.6): Loading from cache
  - Installing michelf/php-markdown (1.8.0): Loading from cache
  - Installing matthiasmullie/path-converter (1.1.2): Loading from cache
  - Installing matthiasmullie/minify (1.3.61): Loading from cache
  - Installing jeremykendall/php-domain-parser (4.0.3-alpha): Loading from cache
  - Installing league/uri (4.2.3): Loading from cache
  - Installing leafo/scssphp (v0.7.8): Loading from cache
  - Installing knplabs/knp-time-bundle (v1.9.1): Loading from cache
  - Installing knplabs/knp-menu (2.3.0): Loading from cache
  - Installing knplabs/knp-menu-bundle (2.2.2): Loading from cache
  - Installing imagine/imagine (1.2.2): Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.5): Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17): Loading from cache
  - Installing doctrine/dbal (v2.8.1): Loading from cache
  - Installing doctrine/doctrine-bundle (1.11.2): Loading from cache
  - Installing contao/imagine-svg (0.2.2): Loading from cache
  - Installing contao/image (0.3.9): Loading from cache
  - Installing contao-components/tinymce4 (4.6.7.3): Loading from cache
  - Installing contao-components/tablesorter (2.1.0): Loading from cache
  - Installing contao-components/tablesort (3.4.11): Loading from cache
  - Installing contao-components/swipe (2.1.2): Loading from cache
  - Installing contao-components/simplemodal (2.1.0): Loading from cache
  - Installing contao-components/respimage (1.4.2): Loading from cache
  - Installing contao-components/mootools (1.6.0.5): Loading from cache
  - Installing contao-components/mediaelement (4.2.10): Loading from cache
  - Installing contao-components/mediabox (1.5.4.2): Loading from cache
  - Installing contao-components/jquery-ui (1.12.1.1): Loading from cache
  - Installing contao-components/jquery (1.12.4): Loading from cache
  - Installing contao-components/html5shiv (3.7.3): Loading from cache
  - Installing contao-components/highlight (8.9.1): Loading from cache
  - Installing contao-components/dropzone (4.3.0): Loading from cache
  - Installing contao-components/datepicker (2.3.0): Loading from cache
  - Installing contao-components/contao (7.1.5): Loading from cache
  - Installing contao-components/compass (0.12.2.1): Loading from cache
  - Installing contao-components/colorpicker (1.5.0): Loading from cache
  - Installing contao-components/colorbox (1.6.4.1): Loading from cache
  - Installing contao-components/chosen (1.2.1): Loading from cache
  - Installing contao-components/ace (1.4.4): Loading from cache
  - Installing contao/core-bundle (4.4.40): Loading from cache
  - Installing contao/calendar-bundle (4.4.40): Loading from cache
  - Installing contao/comments-bundle (4.4.40): Loading from cache
  - Installing contao/faq-bundle (4.4.40): Loading from cache
  - Installing contao/listing-bundle (4.4.40): Loading from cache
  - Installing monolog/monolog (1.24.0): Loading from cache
  - Installing symfony/monolog-bundle (v3.4.0): Loading from cache
  - Installing composer/ca-bundle (1.1.4): Loading from cache
  - Installing ua-parser/uap-php (v3.9.0): Loading from cache
  - Installing nelmio/security-bundle (2.7.0): Loading from cache
  - Installing lexik/maintenance-bundle (v2.1.5): Loading from cache
  - Installing sensiolabs/ansi-to-html (v1.1.3): Loading from cache
  - Installing symfony/http-client (v4.3.2): Loading from cache
  - Installing sensiolabs/security-checker (v6.0.1): Loading from cache
  - Installing sensio/distribution-bundle (v5.0.25): Loading from cache
  - Installing contao/installation-bundle (4.4.40): Loading from cache
  - Installing contao/manager-bundle (4.4.40): Loading from cache
  - Installing contao/news-bundle (4.4.40): Loading from cache
  - Installing contao/newsletter-bundle (4.4.40): Loading from cache
  - Installing wa72/htmlpagedom (v1.4.1): Loading from cache
  - Installing heimrichhannot/contao-request-bundle (1.0.8): Loading from cache
  - Installing soundasleep/html2text (1.1.0): Loading from cache
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
  - Installing hackzilla/password-generator (1.4.1): Loading from cache
  - Installing heimrichhannot/contao-utils-bundle (2.101.0): Loading from cache
  - Installing heimrichhannot/contao-ajax-bundle (1.0.7): Loading from cache
  - Installing heimrichhannot-contao-components/sortablejs (1.8.4): Loading from cache
  - Installing heimrichhannot/contao-multi-column-editor-bundle (2.2.0): Loading from cache
  - Installing heimrichhannot/contao-categories-bundle (1.0.0-beta24): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
friendsofsymfony/http-cache-bundle suggests installing sensio/framework-extra-bundle (For Tagged Cache Invalidation)
simplepie/simplepie suggests installing mf2/mf2 (Microformat module that allows for parsing HTML for microformats)
patchwork/utf8 suggests installing ext-wfio (Use WFIO for UTF-8 filesystem access on Windows)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
doctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)
doctrine/doctrine-bundle suggests installing doctrine/orm (The Doctrine ORM integration is optional in the bundle.)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
wa72/htmlpagedom suggests installing wa72/html-pretty-min (Minify or indent HTML documents)
heimrichhannot/contao-utils-bundle suggests installing mpdf/mpdf (Required by huh.utils.pdf.writer service in version ^7.0)
heimrichhannot/contao-utils-bundle suggests installing spatie/pdf-to-image (Optional requirement for huh.utils.pdf.preview in version ^1.8. Please read the docs.)
heimrichhannot/contao-utils-bundle suggests installing alchemy/ghostscript (Optional requirement for huh.utils.pdf.preview in version ^4.1. Please read the docs.)
heimrichhannot/contao-multi-column-editor-bundle suggests installing heimrichhannot/contao-encore-bundle (Provide webpack encore asset support.)
heimrichhannot/contao-categories-bundle suggests installing heimrichhannot/contao-categories-multilingual-bundle (Adds multilanguage support for categories bundle.)
Generating autoload files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

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

 [OK] Cache for the "prod" environment (debug=false) 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.   

 Trying to install assets as relative symbolic links.

 --- --------------------------------------------- ------------------ 
      Bundle                                        Method / Error    
 --- --------------------------------------------- ------------------ 
  ✔   ContaoCoreBundle                              relative symlink  
  ✔   ContaoFaqBundle                               relative symlink  
  ✔   ContaoNewsBundle                              relative symlink  
  ✔   ContaoNewsletterBundle                        relative symlink  
  ✔   CategoriesBundle                              relative symlink  
  ✔   HeimrichHannotContaoUtilsBundle               relative symlink  
  ✔   ContaoCalendarBundle                          relative symlink  
  ✔   ContaoCommentsBundle                          relative symlink  
  ✔   HeimrichHannotContaoMultiColumnEditorBundle   relative symlink  
 --- --------------------------------------------- ------------------ 

 [OK] All assets were successfully installed.                                   

Added the system/initialize.php file.
Symlinked the system/config/tcpdf.php file.

 --- ------------------------ ---------------------------------------------------------------- 
      Symlink                  Target / Error                                                  
 --- ------------------------ ---------------------------------------------------------------- 
  ✔   system/themes/flexible   vendor/contao/core-bundle/src/Resources/contao/themes/flexible  
  ✔   web/assets               assets                                                          
  ✔   web/system/themes        system/themes                                                   
  ✔   system/logs              var/logs                                                        
 --- ------------------------ ----------------------------------------------------------------