lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
419 stars 255 forks source link

DoctrineORMStorage uses a non existing doctrine function (even on master) #416

Open RobertIacoveciuc opened 2 years ago

RobertIacoveciuc commented 2 years ago

Hello,

I'm not sure if anyone else has this problem but i keep getting this error

[WARNING] Some commands could not be registered:

    In DoctrineORMStorage.php line 28:

      Call to undefined method Doctrine\DBAL\Logging\Driver::getName()

     [WARNING] Some commands could not be registered:

    In DoctrineORMStorage.php line 28:

      Call to undefined method Doctrine\DBAL\Logging\Driver::getName()

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

    06:00:42 CRITICAL  [php] Uncaught Error: Call to undefined method Doctrine\DBAL\Logging\Driver::getName() ["exception" => Error { …}]

    In DoctrineORMStorage.php line 28:

      Attempted to call an undefined method named "getName" of class "Doctrine\DBAL\Logging\Driver".

Is this Problem new ? Or does anyone else encouter this ?

RobertIacoveciuc commented 2 years ago

Here is my json file

`"require": {
    "php": "^8.1",
    "ext-ctype": "*",
    "ext-iconv": "*",
    "ext-json": "*",
    "doctrine/annotations": "*",
    "doctrine/doctrine-bundle": "2.5.*",
    "doctrine/doctrine-migrations-bundle": "3.0.2",
    "doctrine/orm": "2.8.2",
    "easycorp/easyadmin-bundle": "*",
    "jms/serializer": "^3.12",
    "jms/serializer-bundle": "^3.9",
    "lexik/jwt-authentication-bundle": "*",
    "lexik/translation-bundle": "5.2.0",
    "nelmio/api-doc-bundle": "^4.2",
    "nelmio/cors-bundle": "^2.1",
    "phpdocumentor/reflection-docblock": "^5.4",
    "phpstan/phpdoc-parser": "^1.4",
    "sensio/framework-extra-bundle": "^5.4",
    "symfony/asset": "5.4.*",
    "symfony/console": "5.4.*",
    "symfony/doctrine-bridge": "5.3.*",
    "symfony/dotenv": "5.4.*",
    "symfony/flex": "^1.3.1",
    "symfony/form": "5.4.*",
    "symfony/framework-bundle": "5.4.*",
    "symfony/mailer": "5.4.*",
    "symfony/monolog-bundle": "^3.1",
    "symfony/property-access": "5.4.*",
    "symfony/property-info": "5.4.*",
    "symfony/proxy-manager-bridge": "5.4.*",
    "symfony/security-bundle": "*",
    "symfony/security-guard": "*",
    "symfony/serializer": "5.4.*",
    "symfony/swiftmailer-bundle": "^3.5",
    "symfony/twig-bundle": "5.4.*",
    "symfony/validator": "5.4.*",
    "symfony/yaml": "5.4.*",
    "symfonycasts/reset-password-bundle": "*",
    "vich/uploader-bundle": "^1.17"`

I "fixed" this issue by downgrading to

"doctrine/doctrine-bundle": "2.5.*",
"doctrine/doctrine-migrations-bundle": "3.0.2",
biegacz1 commented 2 years ago

I have the same problem, my temporary solution is using 5.2.x-dev version

RobertIacoveciuc commented 2 years ago

Anyone have a solution ?

Here are my versions, problems still occurs.

api-platform/core v2.6.8 Build a fully-featured hypermedia or GraphQL API in minutes! doctrine/annotations 1.13.2 Docblock Annotations Parser doctrine/cache 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memc... doctrine/collections 1.6.8 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays. doctrine/common 3.3.0 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend o... doctrine/dbal 3.3.6 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management. doctrine/deprecations v1.0.0 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or... doctrine/doctrine-bundle 2.6.3 Symfony DoctrineBundle doctrine/doctrine-migrations-bundle 3.0.2 Symfony DoctrineMigrationsBundle doctrine/event-manager 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects. doctrine/inflector 2.0.4 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and si... doctrine/instantiator 1.4.1 A small, lightweight utility to instantiate objects in PHP without invoking their constructors doctrine/lexer 1.2.3 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers. doctrine/migrations 3.5.1 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for ve... doctrine/orm 2.12.2 Object-Relational-Mapper for PHP doctrine/persistence 2.5.3 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object m... doctrine/sql-formatter 1.1.2 a PHP SQL highlighting library easycorp/easyadmin-bundle v3.5.21 Admin generator for Symfony applications egulias/email-validator 3.1.2 A library for validating emails against several RFCs fig/link-util 1.2.0 Common utility implementations for HTTP links friendsofphp/proxy-manager-lts v1.0.12 Adding support for a wider range of PHP versions to ocramius/proxy-manager jms/metadata 2.6.1 Class/method/property metadata management in PHP jms/serializer 3.17.1 Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML. jms/serializer-bundle 3.10.0 Allows you to easily serialize, and deserialize data of any complexity justinrainbow/json-schema 5.2.12 A library to validate a json schema. laminas/laminas-code 4.5.1 Extensions to the PHP Reflection API, static code scanning, and code generation lcobucci/clock 2.2.0 Yet another clock abstraction lcobucci/jwt 4.1.5 A simple library to work with JSON Web Token and JSON Web Signature lexik/jwt-authentication-bundle v2.15.1 This bundle provides JWT authentication for your Symfony REST API lexik/translation-bundle v5.2.0 This bundle allows to import translation files content into the database and provide a GUI to edit translations. monolog/monolog 2.6.0 Sends your logs to files, sockets, inboxes, databases and various web services myclabs/deep-copy 1.11.0 Create deep copies (clones) of your objects namshi/jose 7.2.3 JSON Object Signing and Encryption library for PHP. nelmio/api-doc-bundle v4.9.0 Generates documentation for your REST API from annotations nelmio/cors-bundle 2.2.0 Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application nikic/php-parser v4.13.2 A PHP parser written in PHP phar-io/manifest 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR) phar-io/version 3.2.1 Library for handling version information and constraints phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure phpdocumentor/reflection-docblock dev-master 9455bde With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information th... phpdocumentor/type-resolver 1.6.1 A PSR-5 based resolver of Class names, Types and Structural Element Names phpspec/prophecy v1.15.0 Highly opinionated mocking framework for PHP 5.3+ phpstan/phpdoc-parser 1.5.1 PHPDoc parser with support for nullable, intersection and generic types phpunit/php-code-coverage 9.2.15 Library that provides collection, processing, and rendering functionality for PHP code coverage information. phpunit/php-file-iterator 3.0.6 FilterIterator implementation that filters files based on a list of suffixes. phpunit/php-invoker 3.1.1 Invoke callables with a timeout phpunit/php-text-template 2.0.4 Simple template engine. phpunit/php-timer 5.0.3 Utility class for timing phpunit/phpunit 9.5.20 The PHP Unit Testing framework. psr/cache 2.0.0 Common interface for caching libraries psr/container 1.1.2 Common Container Interface (PHP FIG PSR-11) psr/event-dispatcher 1.0.0 Standard interfaces for event handling. psr/link 1.1.1 Common interfaces for HTTP links psr/log 2.0.0 Common interface for logging libraries sebastian/cli-parser 1.0.1 Library for parsing CLI options sebastian/code-unit 1.0.8 Collection of value objects that represent the PHP code units sebastian/code-unit-reverse-lookup 2.0.3 Looks up which function or method a line of code belongs to sebastian/comparator 4.0.6 Provides the functionality to compare PHP values for equality sebastian/complexity 2.0.2 Library for calculating the complexity of PHP code units sebastian/diff 4.0.4 Diff implementation sebastian/environment 5.1.4 Provides functionality to handle HHVM/PHP environments sebastian/exporter 4.0.4 Provides the functionality to export PHP variables for visualization sebastian/global-state 5.0.5 Snapshotting of global state sebastian/lines-of-code 1.0.3 Library for counting the lines of code in PHP source code sebastian/object-enumerator 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects sebastian/object-reflector 2.0.4 Allows reflection of object attributes, including inherited and non-public ones sebastian/recursion-context 4.0.4 Provides functionality to recursively process PHP variables sebastian/resource-operations 3.0.3 Provides a list of PHP built-in functions that operate on resources sebastian/type 3.0.0 Collection of value objects that represent the types of the PHP type system sebastian/version 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects sensio/framework-extra-bundle v5.6.1 This bundle provides a way to configure your controllers with annotations stella-maris/clock 0.1.4 A pre-release of the proposed PSR-20 Clock-Interface swiftmailer/swiftmailer v6.3.0 Swiftmailer, free feature-rich PHP mailer symfony/asset v5.4.7 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files symfony/browser-kit v5.4.3 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically symfony/cache v5.4.9 Provides an extended PSR-6, PSR-16 (and tags) implementation symfony/cache-contracts v2.5.1 Generic abstractions related to caching symfony/config v5.4.9 Helps you find, load, combine, autofill and validate configuration values of any kind symfony/console v5.4.9 Eases the creation of beautiful and testable command line interfaces symfony/css-selector v5.4.3 Converts CSS selectors to XPath expressions symfony/debug-bundle v5.4.3 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the ... symfony/dependency-injection v5.4.9 Allows you to standardize and centralize the way objects are constructed in your application symfony/deprecation-contracts v2.5.1 A generic function and convention to trigger deprecation notices symfony/doctrine-bridge v5.3.14 Provides integration for Doctrine with various Symfony components symfony/dom-crawler v5.4.9 Eases DOM navigation for HTML and XML documents symfony/dotenv v5.4.5 Registers environment variables from a .env file symfony/error-handler v5.4.9 Provides tools to manage errors and ease debugging PHP code symfony/event-dispatcher v5.4.9 Provides tools that allow your application components to communicate with each other by dispatching events and listen... symfony/event-dispatcher-contracts v3.1.0 Generic abstractions related to dispatching event symfony/filesystem v5.4.9 Provides basic utilities for the filesystem symfony/finder v5.4.8 Finds files and directories via an intuitive fluent interface symfony/flex v1.18.7 Composer plugin for Symfony symfony/form v5.4.9 Allows to easily create, process and reuse HTML forms symfony/framework-bundle v5.4.9 Provides a tight integration between Symfony components and the Symfony full-stack framework symfony/http-client v5.4.9 Provides powerful methods to fetch HTTP resources synchronously or asynchronously symfony/http-client-contracts v2.5.1 Generic abstractions related to HTTP clients symfony/http-foundation v5.4.9 Defines an object-oriented layer for the HTTP specification symfony/http-kernel v5.4.9 Provides a structured process for converting a Request into a Response symfony/intl v5.4.8 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library symfony/mailer v5.4.8 Helps sending emails symfony/maker-bundle v1.43.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writ... symfony/mime v5.4.9 Allows manipulating MIME messages symfony/monolog-bridge v5.4.3 Provides integration for Monolog with various Symfony components symfony/monolog-bundle v3.8.0 Symfony MonologBundle symfony/options-resolver v5.4.3 Provides an improved replacement for the arrayreplace PHP function symfony/password-hasher v5.4.8 Provides password hashing utilities symfony/phpunit-bridge v5.4.8 Provides utilities for PHPUnit, especially user deprecation notices management symfony/polyfill-intl-grapheme v1.25.0 Symfony polyfill for intl's grapheme* functions symfony/polyfill-intl-icu v1.25.0 Symfony polyfill for intl's ICU-related data and classes symfony/polyfill-intl-idn v1.25.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions symfony/polyfill-intl-normalizer v1.25.0 Symfony polyfill for intl's Normalizer class and related functions symfony/polyfill-mbstring v1.25.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php72 v1.25.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/polyfill-php73 v1.25.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions symfony/polyfill-php80 v1.25.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions symfony/polyfill-php81 v1.25.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions symfony/polyfill-uuid v1.25.0 Symfony polyfill for uuid functions symfony/property-access v5.4.8 Provides functions to read and write from/to an object or array using a simple string notation symfony/property-info v5.4.9 Extracts information about PHP class' properties using metadata of popular sources symfony/proxy-manager-bridge v5.4.6 Provides integration for ProxyManager with various Symfony components symfony/routing v5.4.8 Maps an HTTP request to a set of configuration variables symfony/security-bundle v5.4.9 Provides a tight integration of the Security component into the Symfony full-stack framework symfony/security-core v5.4.8 Symfony Security Component - Core Library symfony/security-csrf v5.4.9 Symfony Security Component - CSRF Library symfony/security-guard v5.4.9 Symfony Security Component - Guard symfony/security-http v5.4.9 Symfony Security Component - HTTP Integration symfony/serializer v5.4.9 Handles serializing and deserializing data structures, including object graphs, into array structures or other format... symfony/service-contracts v2.5.1 Generic abstractions related to writing services symfony/stopwatch v5.4.5 Provides a way to profile code symfony/string v5.4.9 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified... symfony/swiftmailer-bundle v3.5.4 Symfony SwiftmailerBundle symfony/translation v5.4.9 Provides tools to internationalize your application symfony/translation-contracts v2.5.1 Generic abstractions related to translation symfony/twig-bridge v5.4.9 Provides integration for Twig with various Symfony components symfony/twig-bundle v5.4.8 Provides a tight integration of Twig into the Symfony full-stack framework symfony/uid v5.4.3 Provides an object-oriented API to generate and represent UIDs symfony/validator v5.4.8 Provides tools to validate values symfony/var-dumper v5.4.9 Provides mechanisms for walking through any arbitrary PHP variable symfony/var-exporter v5.4.9 Allows exporting any serializable PHP data structure to plain PHP code symfony/web-link v5.4.3 Manages links between resources symfony/web-profiler-bundle v5.4.8 Provides a development tool that gives detailed information about the execution of any request symfony/yaml v5.4.3 Loads and dumps YAML files symfonycasts/reset-password-bundle v1.13.0 Symfony bundle that adds password reset functionality. theseer/tokenizer 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats twig/twig v3.4.1 Twig, the flexible, fast, and secure template language for PHP vich/uploader-bundle 1.19.1 Ease file uploads attached to entities webmozart/assert 1.10.0 Assertions to validate method input/output with nice error messages. willdurand/negotiation 3.1.0 Content Negotiation tools for PHP provided as a standalone library. zircote/swagger-php 4.4.3 swagger-php - Generate interactive documentation for your RESTful API using phpdoc annotations

Sorry about the misclick, didn't mean to close the ticket.

RobertIacoveciuc commented 2 years ago

@biegacz1

I have the same problem, my temporary solution is using 5.2.x-dev version

This didn't help me, sadly.