error in Doctrine\UserManager::__construct() in new installation
gentooza opened this issue · comments
Hi again!
Please could you help me with what is wrong in my installation?
I think it's totally fresh, following the steps provided for symfony 4 and everything updated. But when I go to http://127.0.0.1:8000/ or http://127.0.0.1:8000/shop I get this exception:
Argument 3 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in /home/joa/dev/sumak/sumak/var/cache/dev/ContainerJO6Yt8E/srcApp_KernelDevDebugContainer.php on line 1426
Something missconfigured in doctrine? or fos_user?
thanks and sorry!
ok!
I've downgraded doctrine/orm from ^2.7 to
"doctrine/orm": "2.6.*",
in my composer.json
and now it works
is it ok?
joa@joa-HP-Pavilion-15-Notebook-PC:~/dev/sumak/sumak$ php7.4 ../composer.phar show
aimeos/ai-admin-jqadm 2020.07.4 Aimeos Vue.js+Bootstrap admi...
aimeos/ai-admin-jsonadm 2020.07.2 Aimeos ai-admin-jsonadm exte...
aimeos/ai-client-html 2020.07.3 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi 2020.07.2 Aimeos JSON API extension
aimeos/ai-controller-frontend 2020.07.2 Aimeos ai-controller-fronten...
aimeos/ai-controller-jobs 2020.07.2 Aimeos ai-controller-jobs ex...
aimeos/ai-fosuser 2020.07.2 Aimeos ai-fosuser extension
aimeos/ai-gettext 2020.07.1 Aimeos Gettext extension
aimeos/ai-monolog 2020.07.1 Monolog adapter for Aimeos w...
aimeos/ai-swiftmailer 2020.07.1 SwiftMailer adapter for Aime...
aimeos/ai-symfony 2020.07.1 Symfony 2 adapter for Aimeos...
aimeos/ai-twig 2020.07.1 Twig template engine adapter...
aimeos/aimeos-core 2020.07.3 Full-featured e-commerce com...
aimeos/aimeos-symfony 2020.07.1 Professional, full-featured ...
aimeos/map 1.7.0 Easy and elegant handling of...
composer/installers v1.9.0 A multi-framework Composer l...
composer/package-versions-deprecated 1.10.99.1 Composer plugin that provide...
doctrine/annotations 1.10.4 Docblock Annotations Parser
doctrine/cache 1.10.2 PHP Doctrine Cache library i...
doctrine/collections 1.6.7 PHP Doctrine Collections lib...
doctrine/common 2.13.3 PHP Doctrine Common project ...
doctrine/dbal 2.10.3 Powerful PHP database abstra...
doctrine/doctrine-bundle 2.1.2 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.0.1 Symfony DoctrineMigrationsBu...
doctrine/event-manager 1.1.1 The Doctrine Event Manager i...
doctrine/inflector 1.4.3 PHP Doctrine Inflector is a ...
doctrine/instantiator 1.3.1 A small, lightweight utility...
doctrine/lexer 1.2.1 PHP Doctrine Lexer parser li...
doctrine/migrations 3.0.1 PHP Doctrine Migrations proj...
doctrine/orm v2.6.6 Object-Relational-Mapper for...
doctrine/persistence 1.3.8 The Doctrine Persistence pro...
doctrine/reflection 1.2.1 The Doctrine Reflection proj...
doctrine/sql-formatter 1.1.1 a PHP SQL highlighting library
egulias/email-validator 2.1.19 A library for validating ema...
friendsofsymfony/user-bundle v2.1.2 Symfony FOSUserBundle
laminas/laminas-code 3.4.1 Extensions to the PHP Reflec...
laminas/laminas-eventmanager 3.3.0 Trigger and listen to events...
laminas/laminas-zendframework-bridge 1.1.0 Alias legacy ZF class names ...
monolog/monolog 1.25.5 Sends your logs to files, so...
nikic/php-parser v4.9.1 A PHP parser written in PHP
nyholm/psr7 1.3.0 A fast PHP7 implementation o...
ocramius/proxy-manager 2.8.0 A library providing utilitie...
php-http/message-factory v1.0.2 Factory interfaces for PSR-7...
phpdocumentor/reflection-common 2.2.0 Common reflection classes us...
phpdocumentor/reflection-docblock 5.2.1 With this component, a libra...
phpdocumentor/type-resolver 1.3.0 A PSR-5 based resolver of Cl...
psr/cache 1.0.1 Common interface for caching...
psr/container 1.0.0 Common Container Interface (...
psr/http-factory 1.0.1 Common interfaces for PSR-7 ...
psr/http-message 1.0.1 Common interface for HTTP me...
psr/link 1.0.0 Common interfaces for HTTP l...
psr/log 1.1.3 Common interface for logging...
sensio/framework-extra-bundle v5.6.1 This bundle provides a way t...
swiftmailer/swiftmailer v6.2.3 Swiftmailer, free feature-ri...
symfony/apache-pack v1.0.1 A pack for Apache support in...
symfony/asset v4.4.13 Symfony Asset Component
symfony/browser-kit v4.4.13 Symfony BrowserKit Component
symfony/cache v4.4.13 Symfony Cache component with...
symfony/cache-contracts v2.1.3 Generic abstractions related...
symfony/config v4.4.13 Symfony Config Component
symfony/console v4.4.13 Symfony Console Component
symfony/css-selector v4.4.13 Symfony CssSelector Component
symfony/debug v4.4.13 Symfony Debug Component
symfony/debug-bundle v4.4.13 Symfony DebugBundle
symfony/dependency-injection v4.4.13 Symfony DependencyInjection ...
symfony/doctrine-bridge v4.4.13 Symfony Doctrine Bridge
symfony/dom-crawler v4.4.13 Symfony DomCrawler Component
symfony/dotenv v4.4.13 Registers environment variab...
symfony/error-handler v4.4.13 Symfony ErrorHandler Component
symfony/event-dispatcher v4.4.13 Symfony EventDispatcher Comp...
symfony/event-dispatcher-contracts v1.1.9 Generic abstractions related...
symfony/expression-language v4.4.13 Symfony ExpressionLanguage C...
symfony/filesystem v4.4.13 Symfony Filesystem Component
symfony/finder v4.4.13 Symfony Finder Component
symfony/flex v1.9.3 Composer plugin for Symfony
symfony/form v4.4.13 Symfony Form Component
symfony/framework-bundle v4.4.13 Symfony FrameworkBundle
symfony/http-client v4.4.13 Symfony HttpClient component
symfony/http-client-contracts v2.1.3 Generic abstractions related...
symfony/http-foundation v4.4.13 Symfony HttpFoundation Compo...
symfony/http-kernel v4.4.13 Symfony HttpKernel Component
symfony/inflector v4.4.13 Symfony Inflector Component
symfony/intl v4.4.13 A PHP replacement layer for ...
symfony/mailer v4.4.13 Symfony Mailer Component
symfony/maker-bundle v1.21.1 Symfony Maker helps you crea...
symfony/mime v4.4.13 A library to manipulate MIME...
symfony/monolog-bridge v4.4.13 Symfony Monolog Bridge
symfony/monolog-bundle v3.5.0 Symfony MonologBundle
symfony/options-resolver v4.4.13 Symfony OptionsResolver Comp...
symfony/phpunit-bridge v5.1.5 Symfony PHPUnit Bridge
symfony/polyfill-intl-icu v1.18.1 Symfony polyfill for intl's ...
symfony/polyfill-intl-idn v1.18.1 Symfony polyfill for intl's ...
symfony/polyfill-intl-normalizer v1.18.1 Symfony polyfill for intl's ...
symfony/polyfill-mbstring v1.18.1 Symfony polyfill for the Mbs...
symfony/polyfill-php72 v1.18.1 Symfony polyfill backporting...
symfony/polyfill-php73 v1.18.1 Symfony polyfill backporting...
symfony/polyfill-php80 v1.18.1 Symfony polyfill backporting...
symfony/process v4.4.13 Symfony Process Component
symfony/property-access v4.4.13 Symfony PropertyAccess Compo...
symfony/property-info v4.4.13 Symfony Property Info Component
symfony/psr-http-message-bridge v1.3.0 PSR HTTP message bridge
symfony/routing v4.4.13 Symfony Routing Component
symfony/security-bundle v4.4.13 Symfony SecurityBundle
symfony/security-core v4.4.13 Symfony Security Component -...
symfony/security-csrf v4.4.13 Symfony Security Component -...
symfony/security-guard v4.4.13 Symfony Security Component -...
symfony/security-http v4.4.13 Symfony Security Component -...
symfony/serializer v4.4.13 Symfony Serializer Component
symfony/service-contracts v2.1.3 Generic abstractions related...
symfony/stopwatch v4.4.13 Symfony Stopwatch Component
symfony/swiftmailer-bundle v3.4.0 Symfony SwiftmailerBundle
symfony/templating v4.4.13 Symfony Templating Component
symfony/translation v4.4.13 Symfony Translation Component
symfony/translation-contracts v2.1.3 Generic abstractions related...
symfony/twig-bridge v4.4.13 Symfony Twig Bridge
symfony/twig-bundle v4.4.13 Symfony TwigBundle
symfony/validator v4.4.13 Symfony Validator Component
symfony/var-dumper v4.4.13 Symfony mechanism for explor...
symfony/var-exporter v4.4.13 A blend of var_export() + se...
symfony/web-link v4.4.13 Symfony WebLink Component
symfony/web-profiler-bundle v4.4.13 Symfony WebProfilerBundle
symfony/yaml v4.4.13 Symfony Yaml Component
tecnickcom/tcpdf 6.3.5 TCPDF is a PHP class for gen...
twig/extra-bundle v3.0.5 A Symfony bundle for extra T...
twig/twig v2.13.1 Twig, the flexible, fast, an...
voku/portable-ascii 1.5.3 Portable ASCII library - per...
webimpress/safe-writer 2.1.0 Tool to write files safely, ...
webmozart/assert 1.9.1 Assertions to validate metho...
Yes, that should be OK
thanks!
closing