8000 updating to version 4.1.1 breaks cache:clear on composer update/install · Issue #27713 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

updating to version 4.1.1 breaks cache:clear on composer update/install #27713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gmponos opened this issue Jun 25, 2018 · 7 comments
Closed

Comments

@gmponos
Copy link
Contributor
gmponos commented Jun 25, 2018

Symfony version(s) affected: 4.1.1

Description
I am currently at version 4.1.0 and I run composer update and then this is the output that I am getting:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  
!!   // Clearing the cache for the dev environment with debug                       
!!   // true                                                                        
!!  
!!  19:34:27 CRITICAL  [php] Too few arguments to function Symfony\Bridge\Twig\Extension\CsrfExtension::__construct(), 0 passed in /vhosts/myproject/sf/var/cache/dev/ContainerH4ugX5h/srcDevDebugProjectContainer.php on line 853 and exactly 1 expected ["exception" => Symfony\Component\Debug\Exception\FatalThrowableError { …}] ["file" => "/vhosts/myproject/sf/vendor/symfony/debug/ErrorHandler.php","line" => 540,"class" => "Symfony\Component\Debug\ErrorHandler","function" => "handleException","unique_id" => "e0ed1ace-a969-469f-9eeb-d4cfa3f8633a"]
!!  
!!  In CsrfExtension.php line 25:
!!                                                                                 
!!    Too few arguments to function Symfony\Bridge\Twig\Extension\CsrfExtension::  
!!    __construct(), 0 passed in /vhosts/myproject/sf/var/cache/dev/Contain  
!!    erH4ugX5h/srcDevDebugProjectContainer.php on line 853 and exactly 1 expecte  
!!    d                                                                            
!!                                                                                 
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

I have also deleted var/cache and run again and the same thing happens.

How to reproduce

Not sure how.

Possible Solution
Not sure.

@xabbuh
Copy link
Member
xabbuh commented Jun 25, 2018

Can you show the output of composer show?

@gmponos
Copy link
Contributor Author
gmponos commented Jun 25, 2018
``` beberlei/assert v2.9.6 Thin assertion library for input validation in business models. doctrine/annotations v1.6.0 Docblock Annotations Parser doctrine/cache v1.7.1 Caching library offering an object-oriented API for many cache backends doctrine/collections v1.5.0 Collections Abstraction library doctrine/common v2.8.1 Common Library for Doctrine projects doctrine/dbal v2.7.1 Database Abstraction Layer doctrine/doctrine-bundle 1.9.1 Symfony DoctrineBundle doctrine/doctrine-cache-bundle 1.3.3 Symfony Bundle for Doctrine Cache doctrine/doctrine-migrations-bundle v1.3.1 Symfony DoctrineMigrationsBundle doctrine/inflector v1.3.0 Common String Manipulations with regard to casing and singular/plural rules. doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers. doctrine/migrations v1.8.1 Database Schema migrations using Doctrine DBAL doctrine/orm v2.6.1 Object-Relational-Mapper for PHP easycorp/easy-log-handler v1.0.5 A handler for Monolog that optimizes log messages to be processed by humans instead of software. Improve your productivity... egulias/email-validator 2.1.4 A library for validating emails against several RFCs fig/link-util 1.0.0 Common utility implementations for HTTP links graylog2/gelf-php 1.5.5 A php implementation to send log-messages to a GELF compatible backend like Graylog2. guzzlehttp/guzzle 6.3.3 Guzzle is a PHP HTTP client library guzzlehttp/promises v1.3.1 Guzzle promises library guzzlehttp/psr7 1.4.2 PSR-7 message implementation that also provides common utility methods jangregor/phpstan-prophecy 0.1.1 jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library jean85/pretty-package-versions 1.1 A wrapper for ocramius/pretty-package-versions to get pretty versions strings moneyphp/money v3.0.9 PHP implementation of Fowler's Money pattern monolog/monolog 1.23.0 Sends your logs to files, sockets, inboxes, databases and various web services myclabs/deep-copy 1.8.0 Create deep copies (clones) of your objects nette/bootstrap v2.4.6 🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application. nette/di v2.4.12 💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and s... nette/finder v2.4.1 Nette Finder: Files Searching nette/neon v2.4.2 Nette NEON: parser & generator for Nette Object Notation nette/php-generator v3.0.4 🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.2 features. nette/robot-loader v3.0.3 🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your appl... nette/utils v2.5.2 🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, vali... nikic/php-parser v3.1.5 A PHP parser written in PHP ocramius/package-versions 1.3.0 Composer plugin that provides efficient querying for installed package versions (no runtime IO) ocramius/proxy-manager 2.2.0 A library providing utilities to generate, instantiate and generally operate with Object Proxies paragonie/random_compat v2.0.14 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7 phar-io/manifest 1.0.1 Component for reading phar.io manifest information from a PHP Archive (PHAR) phar-io/version 1.0.1 Library for handling version information and constraints phpdocumentor/reflection-common 1.0.1 Common reflection classes used by phpdocumentor to reflect the code structure phpdocumentor/reflection-docblock 4.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is... phpdocumentor/type-resolver 0.4.0 phpspec/prophecy 1.7.6 Highly opinionated mocking framework for PHP 5.3+ phpstan/phpdoc-parser 0.2 PHPDoc parser with support for nullable, intersection and generic types phpstan/phpstan 0.9.2 PHPStan - PHP Static Analysis Tool phpstan/phpstan-phpunit 0.9.4 PHPUnit extensions and rules for PHPStan phpunit/php-code-coverage 5.3.2 Library that provides collection, processing, and rendering functionality for PHP code coverage information. phpunit/php-file-iterator 1.4.5 FilterIterator implementation that filters files based on a list of suffixes. phpunit/php-text-template 1.2.1 Simple template engine. phpunit/php-timer 1.0.9 Utility class for timing phpunit/php-token-stream 2.0.2 Wrapper around PHP's tokenizer extension. phpunit/phpunit 6.5.8 The PHP Unit Testing framework. phpunit/phpunit-mock-objects 5.0.6 Mock Object library for PHPUnit predis/predis v1.1.1 Flexible and feature-complete Redis client for PHP and HHVM psr/cache 1.0.1 Common interface for caching libraries psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11) psr/http-message 1.0.1 Common interface for HTTP messages psr/link 1.0.0 Common interfaces for HTTP links psr/log 1.0.2 Common interface for logging libraries psr/simple-cache 1.0.1 Common interfaces for simple caching ramsey/uuid 3.7.3 Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (U... roave/security-advisories dev-master 0e4ea9f Prevents installation of composer packages with known security vulnerabilities: no API, simply require it sebastian/code-unit-reverse-lookup 1.0.1 Looks up which function or method a line of code belongs to sebastian/comparator 2.1.3 Provides the functionality to compare PHP values for equality sebastian/diff 2.0.1 Diff implementation sebastian/environment 3.1.0 Provides functionality to handle HHVM/PHP environments sebastian/exporter 3.1.0 Provides the functionality to export PHP variables for visualization sebastian/global-state 2.0.0 Snapshotting of global state sebastian/object-enumerator 3.0.3 Traverses array structures and object graphs to enumerate all referenced objects sebastian/object-reflector 1.1.1 Allows reflection of object attributes, including inherited and non-public ones sebastian/recursion-context 3.0.0 Provides functionality to recursively process PHP variables sebastian/resource-operations 1.0.0 Provides a list of PHP built-in functions that operate on resources sebastian/version 2.0.1 Library that helps with managing the version number of Git-hosted PHP projects sensio/framework-extra-bundle v5.1.6 This bundle provides a way to configure your controllers with annotations squizlabs/php_codesniffer 3.3.0 PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. swiftmailer/swiftmailer v6.0.2 Swiftmailer, free feature-rich PHP mailer symfony/asset v4.1.1 Symfony Asset Component symfony/browser-kit v4.0.10 Symfony BrowserKit Component symfony/cache v4.1.0 Symfony Cache component with PSR-6, PSR-16, and tags symfony/config v4.1.1 Symfony Config Component symfony/console v4.1.1 Symfony Console Component symfony/css-selector v4.1.1 Symfony CssSelector Component symfony/debug v4.1.0 Symfony Debug Component symfony/debug-bundle v4.1.1 Symfony DebugBundle symfony/debug-pack v1.0.5 A debug pack for Symfony projects symfony/dependency-injection v4.1.1 Symfony DependencyInjection Component symfony/doctrine-bridge v4.1.0 Symfony Doctrine Bridge symfony/dom-crawler v4.0.10 Symfony DomCrawler Component symfony/dotenv v4.1.1 Registers environment variables from a .env file symfony/event-dispatcher v4.1.0 Symfony EventDispatcher Component symfony/expression-language v4.1.1 Symfony ExpressionLanguage Component symfony/filesystem v4.1.0 Symfony Filesystem Component symfony/finder v4.1.0 Symfony Finder Component symfony/flex v1.0.80 symfony/form v4.1.1 Symfony Form Component symfony/framework-bundle v4.1.1 Symfony FrameworkBundle symfony/http-foundation v4.1.1 Symfony HttpFoundation Component symfony/http-kernel v4.1.0 Symfony HttpKernel Component symfony/inflector v4.1.0 Symfony Inflector Component symfony/intl v4.1.1 A PHP replacement layer for the C intl extension that includes additional data from the ICU library. symfony/lts dev-master 6de50b2 Enforces Long Term Supported versions of Symfony components symfony/maker-bundle v1.2.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing b... symfony/monolog-bridge v4.1.0 Symfony Monolog Bridge symfony/monolog-bundle v3.3.0 Symfony MonologBundle symfony/options-resolver v3.4.12 Symfony OptionsResolver Component symfony/orm-pack v1.0.5 A pack for the Doctrine ORM symfony/phpunit-bridge v4.1.1 Symfony PHPUnit Bridge symfony/polyfill-ctype v1.8.0 Symfony polyfill for ctype functions symfony/polyfill-intl-icu v1.8.0 Symfony polyfill for intl's ICU-related data and classes symfony/polyfill-mbstring v1.8.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php72 v1.8.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/process v4.1.1 Symfony Process Component symfony/profiler-pack v1.0.3 A pack for the Symfony web profiler symfony/property-access v4.1.0 Symfony PropertyAccess Component symfony/property-info v4.1.1 Symfony Property Info Component symfony/routing v4.1.1 Symfony Routing Component symfony/security v4.1.1 Symfony Security Component symfony/security-bundle v4.1.1 Symfony SecurityBundle symfony/serializer v4.1.1 Symfony Serializer Component symfony/serializer-pack v1.0.1 A pack for the Symfony serializer symfony/stopwatch v3.4.10 Symfony Stopwatch Component symfony/swiftmailer-bundle v3.2.2 Symfony SwiftmailerBundle symfony/test-pack v1.0.2 A pack for functional testing within a Symfony app symfony/translation v4.1.0 Symfony Translation Component symfony/twig-bridge v4.1.0 Symfony Twig Bridge symfony/twig-bundle v4.1.1 Symfony TwigBundle symfony/validator v4.1.1 Symfony Validator Component symfony/var-dumper v4.1.1 Symfony mechanism for exploring and dumping PHP variables symfony/web-link v4.1.1 Symfony WebLink Component symfony/web-profiler-bundle v4.1.1 Symfony WebProfilerBundle symfony/web-server-bundle v4.1.1 Symfony WebServerBundle symfony/webpack-encore-pack v1.0.2 A pack for Symfony Encore symfony/yaml v4.1.1 Symfony Yaml Component theseer/tokenizer 1.1.0 A small library for converting tokenized PHP source code into XML and potentially other formats twig/twig v2.4.8 Twig, the flexible, fast, and secure template language for PHP webmozart/assert 1.3.0 Assertions to validate method input/output with nice error messages. zendframework/zend-code 3.3.0 provides facilities to generate arbitrary code using an object oriented interface zendframework/zend-eventmanager 3.2.1 Trigger and listen to events within a PHP application ```

@nicolas-grekas
Copy link
Member

Why aren't all components at 4.1.1? Any idea?

@gmponos
8000 Copy link
Contributor Author
gmponos commented Jun 25, 2018

ok ty.. most probably it is something internal it has to do with caching/network issues. I will look at it.

@gmponos gmponos closed this as completed Jun 25, 2018
@BigShanJohn
Copy link

I am experiencing the same issue, just upgraded to 4.1 and i run this composer update --with-dependencies symfony/framework-bundle

@BigShanJohn
Copy link

Then I used composer update --with-dependencies symfony/framework-bundle, it solved the problem

@nicolas-grekas
Copy link
Member

Don't update only framework-bundle. Instead do composer update "symfony/*"

nicolas-grekas added a commit that referenced this issue Jul 4, 2018
…idge version (xabbuh)

This PR was merged into the 4.1 branch.

Discussion
----------

[FrameworkBundle] add conflict for non-compatible TwigBridge version

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27713
| License       | MIT
| Doc PR        |

The argument was dropped in #27454.

Commits
-------

251e684 add conflict for non-compatible TwigBridge version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0