Kunstmaan / KunstmaanBundlesCMS

An advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.
https://kunstmaancms.be
MIT License
406 stars 188 forks source link

[MediaBundle] Class 'KunstmaanMediaBundle:Folder' does not exist #3141

Open iknowfoobar opened 2 years ago

iknowfoobar commented 2 years ago

I have just tried upgrading a a couple of our sites from 6.1.3 to 6.1.4 however they all now have the following error:

In MappingException.php line 90:
Class 'KunstmaanMediaBundle:Folder' does not exist 

I have verified that this isn't specific to our projects by trying a fresh install using composer create-project kunstmaan/cms-skeleton myprojectname

the same error is given when the symfony cache is cleared at the end of the composer process.

PHP v8.0.19

acrobat commented 2 years ago

@iknowfoobar with updating the cms packages to the latest patch release, did other packages got an update too? Some doctrine package for example?

iknowfoobar commented 2 years ago

@acrobat I did just a general composer upgrade on our current projects so yes quite a few were upgraded. But it is happening for a fresh install too.

iknowfoobar commented 2 years ago

This was the complete package version change for one of our current projects:

  - Upgrading behat/transliterator (v1.3.0 => v1.5.0)
  - Upgrading composer/ca-bundle (1.3.1 => 1.3.2)
  - Upgrading doctrine/cache (2.1.1 => 2.2.0)
  - Upgrading doctrine/common (3.2.2 => 3.3.0)
  - Upgrading doctrine/data-fixtures (1.5.2 => 1.5.3)
  - Upgrading doctrine/dbal (2.13.7 => 2.13.9)
  - Upgrading doctrine/doctrine-bundle (2.5.6 => 2.6.3)
  - Upgrading doctrine/doctrine-fixtures-bundle (3.4.1 => 3.4.2)
  - Upgrading doctrine/instantiator (1.4.0 => 1.4.1)
  - Upgrading doctrine/lexer (1.2.2 => 1.2.3)
  - Upgrading doctrine/migrations (3.4.1 => 3.4.2)
  - Upgrading doctrine/orm (2.11.1 => 2.12.2)
  - Upgrading doctrine/persistence (2.3.0 => 3.0.2)
  - Upgrading friendsofphp/proxy-manager-lts (v1.0.5 => v1.0.12)
  - Upgrading friendsofsymfony/http-cache-bundle (2.11.2 => 2.12.1)
  - Upgrading gedmo/doctrine-extensions (v3.5.0 => v3.7.0)
  - Upgrading giggsey/libphonenumber-for-php (8.12.43 => 8.12.49)
  - Upgrading giggsey/locale (2.1 => 2.2)
  - Upgrading guzzlehttp/guzzle (6.5.5 => 6.5.6)
  - Upgrading imagine/imagine (1.2.4 => 1.3.2)
  - Upgrading knplabs/gaufrette (v0.9.0 => v0.10.0)
  - Upgrading knplabs/knp-gaufrette-bundle (v0.7.1 => v0.7.2)
  - Upgrading kunstmaan/admin-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/adminlist-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/article-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/config-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/dashboard-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/fixtures-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/form-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/generator-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/google-api-custom (1.0.2 => 1.0.3)
  - Upgrading kunstmaan/media-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/media-pagepart-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/menu-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/node-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/node-search-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/pagepart-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/redirect-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/search-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/sensio-generator-bundle (3.6.0 => 3.6.1)
  - Upgrading kunstmaan/seo-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/sitemap-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/translator-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/user-management-bundle (6.1.3 => 6.1.4)
  - Upgrading kunstmaan/utilities-bundle (6.1.3 => 6.1.4)
  - Upgrading laminas/laminas-code (4.5.1 => 4.5.2)
  - Upgrading liip/imagine-bundle (2.7.6 => 2.8.0)
  - Upgrading monolog/monolog (2.3.5 => 2.6.0)
  - Upgrading myclabs/deep-copy (1.10.2 => 1.11.0)
  - Upgrading nelmio/security-bundle (v2.11.0 => v2.12.0)
  - Upgrading nikic/php-parser (v4.13.2 => v4.14.0)
  - Upgrading odolbeau/phone-number-bundle (v3.6.1 => v3.6.2)
  - Upgrading pagerfanta/pagerfanta (v2.7.2 => v2.7.3)
  - Upgrading php-http/discovery (1.14.1 => 1.14.2)
  - Upgrading phpdocumentor/type-resolver (1.6.0 => 1.6.1)
  - Upgrading phpstan/phpdoc-parser (1.2.0 => 1.5.1)
  - Upgrading phpunit/php-code-coverage (9.2.11 => 9.2.15)
  - Upgrading phpunit/phpunit (9.5.14 => 9.5.20)
  - Upgrading ruflin/elastica (7.1.4 => 7.1.5)
  - Upgrading sebastian/environment (5.1.3 => 5.1.4)
  - Upgrading sebastian/type (2.3.4 => 3.0.0)
  - Upgrading sentry/sdk (3.1.1 => 3.2.0)
  - Upgrading sentry/sentry (3.3.7 => 3.5.0)
  - Upgrading sentry/sentry-symfony (4.2.6 => 4.3.0)
  - Upgrading symfony/asset (v5.4.3 => v5.4.7)
  - Upgrading symfony/cache (v5.4.3 => v5.4.9)
  - Upgrading symfony/cache-contracts (v2.5.0 => v2.5.1)
  - Upgrading symfony/config (v5.4.3 => v5.4.9)
  - Upgrading symfony/console (v5.4.3 => v5.4.9)
  - Upgrading symfony/dependency-injection (v5.4.3 => v5.4.9)
  - Upgrading symfony/deprecation-contracts (v2.5.0 => v2.5.1)
  - Upgrading symfony/doctrine-bridge (v5.4.3 => v5.4.9)
  - Upgrading symfony/dom-crawler (v5.4.3 => v5.4.9)
  - Upgrading symfony/dotenv (v5.4.3 => v5.4.5)
  - Upgrading symfony/error-handler (v5.4.3 => v5.4.9)
  - Upgrading symfony/event-dispatcher (v5.4.3 => v5.4.9)
  - Upgrading symfony/event-dispatcher-contracts (v3.0.0 => v3.0.1)
  - Upgrading symfony/expression-language (v5.4.3 => v5.4.8)
  - Upgrading symfony/filesystem (v5.4.3 => v5.4.9)
  - Upgrading symfony/finder (v5.4.3 => v5.4.8)
  - Upgrading symfony/flex (v2.1.6 => v2.2.1)
  - Upgrading symfony/form (v5.4.3 => v5.4.9)
  - Upgrading symfony/framework-bundle (v5.4.4 => v5.4.9)
  - Upgrading symfony/http-client (v5.4.3 => v5.4.9)
  - Upgrading symfony/http-client-contracts (v2.5.0 => v2.5.1)
  - Upgrading symfony/http-foundation (v5.4.3 => v5.4.9)
  - Upgrading symfony/http-kernel (v5.4.4 => v5.4.9)
  - Upgrading symfony/intl (v5.4.3 => v5.4.8)
  - Upgrading symfony/mailer (v5.4.3 => v5.4.8)
  - Upgrading symfony/mailgun-mailer (v5.4.3 => v5.4.7)
  - Upgrading symfony/maker-bundle (v1.37.0 => v1.43.0)
  - Upgrading symfony/mime (v5.4.3 => v5.4.9)
  - Upgrading symfony/monolog-bundle (v3.7.1 => v3.8.0)
  - Upgrading symfony/password-hasher (v5.4.3 => v5.4.8)
  - Upgrading symfony/phpunit-bridge (v6.0.3 => v6.1.0)
  - Upgrading symfony/polyfill-intl-grapheme (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-intl-icu (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-intl-idn (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-intl-normalizer (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-mbstring (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-php73 (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-php80 (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-php81 (v1.24.0 => v1.26.0)
  - Upgrading symfony/polyfill-uuid (v1.24.0 => v1.26.0)
  - Upgrading symfony/process (v5.4.3 => v5.4.8)
  - Upgrading symfony/property-access (v5.4.3 => v5.4.8)
  - Upgrading symfony/property-info (v5.4.3 => v5.4.9)
  - Upgrading symfony/proxy-manager-bridge (v5.4.3 => v5.4.6)
  - Upgrading symfony/routing (v5.4.3 => v5.4.8)
  - Upgrading symfony/runtime (v5.4.3 => v5.4.8)
  - Upgrading symfony/security-bundle (v5.4.3 => v5.4.9)
  - Upgrading symfony/security-core (v5.4.3 => v5.4.8)
  - Upgrading symfony/security-csrf (v5.4.3 => v5.4.9)
  - Upgrading symfony/security-guard (v5.4.3 => v5.4.9)
  - Upgrading symfony/security-http (v5.4.3 => v5.4.9)
  - Upgrading symfony/serializer (v5.4.3 => v5.4.9)
  - Upgrading symfony/service-contracts (v2.5.0 => v2.5.1)
  - Upgrading symfony/stopwatch (v5.4.3 => v5.4.5)
  - Upgrading symfony/string (v5.4.3 => v5.4.9)
  - Upgrading symfony/translation (v5.4.3 => v5.4.9)
  - Upgrading symfony/translation-contracts (v2.5.0 => v2.5.1)
  - Upgrading symfony/twig-bridge (v5.4.3 => v5.4.9)
  - Upgrading symfony/twig-bundle (v5.4.3 => v5.4.8)
  - Upgrading symfony/validator (v5.4.3 => v5.4.8)
  - Upgrading symfony/var-dumper (v5.4.3 => v5.4.9)
  - Upgrading symfony/var-exporter (v5.4.3 => v5.4.9)
  - Upgrading symfony/web-profiler-bundle (v5.4.3 => v5.4.8)
  - Upgrading twig/twig (v2.14.11 => v2.15.1)
  - Upgrading webmozart/assert (1.10.0 => 1.11.0)
acrobat commented 2 years ago

Can you try to keep doctrine/persistence in the 2.x version and see if this solves the problem?

iknowfoobar commented 2 years ago

@acrobat that fixes the problem for me, thanks!

acrobat commented 2 years ago

Great! I will check how we can fix this, either update all entity short notation usages or lock doctrine/persistence in 2.x. I will ping you to check the solution so we are sure it doesn't happen again!

iknowfoobar commented 2 years ago

@acrobat sounds good, thanks for looking at it so quickly for us