Problems updating from 5.5.3 to latest V6

Hi @all,

first of all … I´m not the PimCore expert … So be patient with me :slight_smile:

I try for days now updating our Pimcore 5.5.3 installation to the latest V6 release.
But I always run into some strange errors:

www-data@DE01PIMCORE:~$ cd pimcore/
www-data@DE01PIMCORE:~/pimcore$ COMPOSER_MEMORY_LIMIT=-1 composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package facebook/webdriver is abandoned, you should avoid using it. Use php-webdriver/webdriver instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Package zendframework/zend-paginator is abandoned, you should avoid using it. Use laminas/laminas-paginator instead.
Package zendframework/zend-servicemanager is abandoned, you should avoid using it. Use laminas/laminas-servicemanager instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
> Pimcore\Composer::postUpdate
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception


  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

www-data@DE01PIMCORE:

No matter what I do I always got these cache:clear errors. Can anyone give me a hint what I have to do now?

btw. my Update process is as follows:

  • Update System
  • Install PHP7.2
  • Login as user www-data
  • run COMPOSER_MEMORY_LIMIT=-1 composer update in /var/www/pimcore

It downloads some update files and then the first thing I got is the cache error.

Any help would be much appreciated. Thx

Dominik

Hi,
what happens if you directly call bin/console cache:clear … an more detailed error message would be good.

BR
Christian

Hi Christian,

running the command directly works just fine:

www-data@DE01PIMCORE:~/pimcore$ bin/console cache:clear
www-data@DE01PIMCORE:~/pimcore$

an more detailed error message would be good

Are there any logfiles I can attach to this thread?
The message in my initial post is almost anything I got in the console.

regards Dominik

Hi again … Just ran the composer command with -vvv.
Hope that gives some more information…

www-data@DE01PIMCORE:~/pimcore$ COMPOSER_MEMORY_LIMIT=-1 composer update -vvv
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www/pimcore): git branch --no-color --no-abbrev -v
Executing command (/var/www/pimcore): git describe --exact-match --tags
Executing command (/var/www/pimcore): git log --pretty="%H" -n1 HEAD
Executing command (/var/www/pimcore): hg branch
Executing command (/var/www/pimcore): fossil branch list
Executing command (/var/www/pimcore): fossil tag list
Executing command (/var/www/pimcore): svn info --xml
Reading /var/www/.composer/composer.json
Loading config file /var/www/.composer/composer.json
Reading /var/www/pimcore/vendor/composer/installed.json
Loading plugin UpdateHelper\ComposerPlugin
Loading plugin PackageVersions\Installer
Loading plugin Wikimedia\Composer\MergePlugin
Running 1.7.3 (2018-11-01 10:05:06) with PHP 7.2.27-1+0~20200123.34+debian8~1.gbp63c0bc on Linux / 3.16.0-10-amd64
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Downloading http://repo.packagist.org/p/provider-2018%24ebe3e539ead789625f006bcab95b7d6b1c265edb57034cab60d1ac0e746d12c9.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-04.json from cache
Downloading http://repo.packagist.org/p/provider-2019-07%24235bf94f169d5df6664c75f06613370ff4d540e4bd6b3b060551837f6e498343.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json into cache
Downloading http://repo.packagist.org/p/provider-2019-10%24d8f96ed6f90e4c31c58df8a16da2c9d73322b4cf93d54814932da702d1fb3568.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-10.json into cache
Downloading http://repo.packagist.org/p/provider-2020-01%24d0a7712e7e1a22a189814692d50f0a174c3bbb748cf744263a229eb7e088015e.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2020-01.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Downloading http://repo.packagist.org/p/provider-latest%24828ede98af89dc1be572cb7c2adbe4d128a6402bb8dc581c1cbef54da32556ee.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-amnuts$opcache-gui.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-dasprid$enum.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-bacon$bacon-qr-code.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-behat$gherkin.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-cache$tag-interop.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-psr$cache.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-cache$integration-tests.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-codeception$phpunit-wrapper.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-codeception$stub.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-facebook$webdriver.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-guzzlehttp$guzzle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-guzzlehttp$psr7.json from cache
Downloading http://repo.packagist.org/p/symfony/browser-kit%24ba097bdc799f935f86297bfbd897c5223bb45edea60654e644c09eb9a710585c.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$browser-kit.json into cache
Downloading http://repo.packagist.org/p/symfony/console%2430b753a303e6cc9e324ad2e8fe8c752b9989c4dceb9a8d8080d592389dbb26c4.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$console.json into cache
Downloading http://repo.packagist.org/p/symfony/css-selector%247b482ac3304d2baf92836e47e87e85c1845edd29b610d9c38f91aad974267119.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$css-selector.json into cache
Downloading http://repo.packagist.org/p/symfony/dom-crawler%24e3d37d82c38a53f7f6429b89e9f8b7b0409ddc5659f150f6758eee566a01f466.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$dom-crawler.json into cache
Downloading http://repo.packagist.org/p/symfony/event-dispatcher%24598e3b32d6e10c35ea349ff6ff9882d4b492bb6c9cdc5d10f68281da33cfe378.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$event-dispatcher.json into cache
Downloading http://repo.packagist.org/p/symfony/finder%24c62dbf8a4e87754f2eae29e88041df540615aa2d377fd370deebe510880db16c.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$finder.json into cache
Downloading http://repo.packagist.org/p/symfony/yaml%246b37b2c8d54aa1ce40b6da6a78dd864eb9f1f767cd997d6889dc49e583b018a4.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$yaml.json into cache
//CUT of some download...
Downloading http://repo.packagist.org/p/symfony/options-resolver%2408709795b60aa24d49026c636ee5912f982cd3fd1532b5a0f62914b63fece10d.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$options-resolver.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-endroid$qr-code.json from cache
Downloading http://repo.packagist.org/p/symfony/inflector%24d20b3be75f258726b9d42b33e961f8bcbd69a93486fd738c8c4e3ddcf4160daf.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$inflector.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-facebook$graph-sdk.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-psr$link.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-fig$link-util.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-firebase$php-jwt.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-maxmind-db$reader.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-maxmind$web-service-common.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-geoip2$geoip2.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-google$apiclient-services.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-google$auth.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-monolog$monolog.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-phpseclib$phpseclib.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-google$apiclient.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-paragonie$constant-time-encoding.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-paypal$rest-api-sdk-php.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-hybridauth$hybridauth.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-paypal$sdk-core-php.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-kylekatarnls$update-helper.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-lcobucci$jwt.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-league$csv.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-linfo$linfo.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-mjaschen$phpgeo.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-mpratt$embera.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-mustangostang$spyc.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-neitanod$forceutf8.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-nesbot$carbon.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$translation-contracts.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-pear$net-url2.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-twig$twig.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-phive$twig-extensions-deferred.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-pimcore$core-version.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-piwik$device-detector.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-presta$sitemap-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-ramsey$uuid.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$dav.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-scheb$two-factor-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sensio$distribution-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sensio$framework-extra-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sensio$generator-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sensiolabs$ansi-to-html.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony-cmf$routing-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$monolog-bundle.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$swiftmailer-bundle.json from cache
Downloading http://repo.packagist.org/p/symfony/symfony%2488716a9d4afe4f317f6005dca95a18ef1079be61c68d6c39447cce09a07ece61.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$symfony.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-tijsverkoyen$css-to-inline-styles.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-twig$extensions.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-umpirsky$country-list.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-vrana$adminer.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-vrana$jush.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-zendframework$zend-paginator.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-zendframework$zend-servicemanager.json from cache
Downloading http://repo.packagist.org/p/pimcore/pimcore%24fcfe16fae101a4cf61ae8d84dcf4426e6a20d81a5e35abb1610f8370ca50bfee.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-pimcore$pimcore.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-endroid$installer.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$vobject.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$event.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$xml.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$http.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sabre$uri.json from cache
Downloading http://repo.packagist.org/p/symfony/security-bundle%245cff7e79b4ba759a0a8ac66fba9f7012ab0fbfa295c984e54ac0fd286a36714b.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$security-bundle.json into cache
Downloading http://repo.packagist.org/p/symfony/twig-bundle%248c0f8a34b96f13e279cbb1ed91861aa586b0794b82228e2048c53eea23dd11ab.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$twig-bundle.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sonata-project$google-authenticator.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-sensiolabs$security-checker.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony-cmf$routing.json from cache
Downloading http://repo.packagist.org/p/symfony/monolog-bridge%24cffffbbdc96f28472010236d96399394fc48172e2ae651cede027a9231e998af.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$monolog-bridge.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-swiftmailer$swiftmailer.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-intl-icu.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$icu.json from cache
Downloading http://repo.packagist.org/p/symfony/security-guard%24a71aac4cdf4cddc961ea18680e0c556261344d54101a5494ca2336e309160b31.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$security-guard.json into cache
Downloading http://repo.packagist.org/p/symfony/security-http%2424d54868a6f046e8b3ce2800f9b86710436af36e7022e79e66ee93fe5b1393f8.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$security-http.json into cache
Downloading http://repo.packagist.org/p/symfony/twig-bridge%24c81a44b6ab401bfed0b8cd3c3d6890380a68936ac063de1f0cefc96331e8f564.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$twig-bridge.json into cache
Downloading http://repo.packagist.org/p/symfony/http-client%241aede867ac7fbdc70734f83d5c92c95f8cd7a82453359225d8c08f6360e33d6d.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$http-client.json into cache
Downloading http://repo.packagist.org/p/symfony/polyfill-iconv%24da995f944f68919feadbdafd9149ba996addfdc3c6bbe9a70c3857b0edb07a04.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-iconv.json into cache
Downloading http://repo.packagist.org/p/symfony/intl%24b9ab3b241fcb03933b5ccc407ec6fc98e29a87bf7a35a12d49b16c0ee4e27569.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$intl.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-symfony$http-client-contracts.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-wikimedia$composer-merge-plugin.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-pimcore$skeleton.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/provider-guzzle$guzzle.json from cache



Resolving dependencies through SAT
Looking at all rules.
Something's changed, looking at all rules again (pass #3)
Dependency resolution completed in 6.702 seconds
Analyzed 20410 packages to resolve dependencies
Analyzed 6216504 rules to resolve dependencies
Nothing to install or update
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package facebook/webdriver is abandoned, you should avoid using it. Use php-webdriver/webdriver instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Package zendframework/zend-paginator is abandoned, you should avoid using it. Use laminas/laminas-paginator instead.
Package zendframework/zend-servicemanager is abandoned, you should avoid using it. Use laminas/laminas-servicemanager instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Reading /var/www/pimcore/vendor/composer/installed.json
Reading ./composer.lock
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
> post-update-cmd: Pimcore\Composer::postUpdate
> post-update-cmd: @symfony-scripts
> symfony-scripts: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception


  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:


Exception trace:
 () at /var/www/pimcore/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:294
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /var/www/pimcore/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:144
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:292
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:215
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:81
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:195
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:96
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:323
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/UpdateCommand.php:162
 Composer\Command\UpdateCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:241
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:843
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:254
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:103
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:56
 require() at /usr/bin/composer:24

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

www-data@DE01PIMCORE:~/pimcore$

Hi !
Ok after using PHP 7.1 and trying the update guide to 5.x again I am done with the V5 Update.
But Now I get stuck with the V6 Update.

I followed this guide:
https://pimcore.com/docs/6.x/Development_Documentation/Installation_and_Upgrade/Updating_Pimcore/V5_to_V6.html
And I have no idea what I must do at this point:

Update your Config[¶]

If your’re using pimcore_admin.dataObjects in your config, please rename dataObjects to objects .

What does this mean?

If I ignore this step it ends in a fatal error:
PHP Fatal error: Cannot use Pimcore\Model\Object as Object because 'Object' is a special class name in /var/www/pimcore/src/AppBundle/Controller/AdvancedController.php on line 10

Any help or hint would be nice. Thx

@DomSchmHopp Pimcore\Model\Object doesn’t exist anymore, you have to replace it with Pimcore\Model\DataObject everywhere in your project.

Is there any script or Linux command to do this automatically ?

Dominik

Not that I know of… Just do a Find & Replace in your IDE, works just as good. :wink:

Problem is … I´m only the administrator … I don´t have any IDE running :slight_smile:
So could you please tell me where those files are located?
I will do some Linux Magic in my SSH session :wink:

Dominik

Hopefully all of those namespaces are used inside your PHP bundles in the /src folder. Also consider checking your views and migration files in /app/Resources.

Hi @all,
I managed to get my System updated to version 6.4.
Thx for the help [aarongerig].

Best regards
Dominik Schmidt