Skip to content

unable to update #956

Open
Open
@anthology

Description

@anthology

Describe the bug
i follow the guide
When you want to upgrade to a newer version, then just copy the new files into the folder and repeat the steps 4. to 7.

copy files, ok
chmod all files to www-data ok
Install composer dependencies and generate autoload files: sudo -u www-data composer install -o --no-dev

Error

sudo -u www-data composer install -o --no-dev
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 44 removals

  • Removing theseer/tokenizer (1.2.3)
  • Removing symplify/easy-coding-standard (12.5.20)
  • Removing symfony/web-profiler-bundle (v6.4.19)
  • Removing symfony/phpunit-bridge (v6.4.16)
  • Removing symfony/maker-bundle (v1.63.0)
  • Removing symfony/debug-bundle (v6.4.13)
  • Removing symfony/browser-kit (v6.4.19)
  • Removing sebastian/version (3.0.2)
  • Removing sebastian/type (3.2.1)
  • Removing sebastian/resource-operations (3.0.4)
  • Removing sebastian/recursion-context (4.0.5)
  • Removing sebastian/object-reflector (2.0.4)
  • Removing sebastian/object-enumerator (4.0.4)
  • Removing sebastian/lines-of-code (1.0.4)
  • Removing sebastian/global-state (5.0.7)
  • Removing sebastian/exporter (4.0.6)
  • Removing sebastian/environment (5.1.5)
  • Removing sebastian/diff (4.0.6)
  • Removing sebastian/complexity (2.0.3)
  • Removing sebastian/comparator (4.0.8)
  • Removing sebastian/code-unit-reverse-lookup (2.0.3)
  • Removing sebastian/code-unit (1.0.8)
  • Removing sebastian/cli-parser (1.0.2)
  • Removing roave/security-advisories (dev-latest e3520a4)
  • Removing rector/rector (2.0.18)
  • Removing phpunit/phpunit (9.6.23)
  • Removing phpunit/php-timer (5.0.3)
  • Removing phpunit/php-text-template (2.0.4)
  • Removing phpunit/php-invoker (3.1.1)
  • Removing phpunit/php-file-iterator (3.0.6)
  • Removing phpunit/php-code-coverage (9.2.32)
  • Removing phpstan/phpstan-symfony (2.0.6)
  • Removing phpstan/phpstan-strict-rules (2.0.4)
  • Removing phpstan/phpstan-doctrine (2.0.3)
  • Removing phpstan/phpstan (2.1.17)
  • Removing phpstan/extension-installer (1.4.3)
  • Removing phar-io/version (3.2.1)
  • Removing phar-io/manifest (2.0.4)
  • Removing nikic/php-parser (v5.5.0)
  • Removing myclabs/deep-copy (1.13.1)
  • Removing jbtronics/translation-editor-bundle (v1.1.1)
  • Removing ekino/phpstan-banned-code (v3.0.0)
  • Removing doctrine/doctrine-fixtures-bundle (4.1.0)
  • Removing dama/doctrine-test-bundle (v8.2.2)
    Generating optimized autoload files
    composer/package-versions-deprecated: Generating version class...
    composer/package-versions-deprecated: ...done generating version class
    135 packages you are using are looking for funding.
    Use the composer fund command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!!
!! // Clearing the cache for the prod environment with debug false
!!
!! PHP Fatal error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array in /var/www/partdb/vendor/doctrine/persistence/src/Persistence/Mapping/StaticReflectionService.php on line 22
!! 16:30:06 CRITICAL [php] Fatal Compile Error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array ["exception" => Symfony\Component\ErrorHandler\Error\FatalError^ { …}] ["token" => null,"command" => ["name" => "cache:clear","arguments" => ["command" => "cache:clear"]]]
!!
!! In StaticReflectionService.php line 22:
!!
!! Compile Error: Declaration of Doctrine\Persistence\Mapping\StaticReflection
!! Service::getParentClasses(string $class) must be compatible with Doctrine\P
!! ersistence\Mapping\ReflectionService::getParentClasses(string $class): arra
!! y
!!
!!
!! cache:clear [--no-warmup] [--no-optional-warmers]
!!
!!
Script @auto-scripts was called via post-install-cmd

i have try "composer fund" because it is writed on the error, but the same error after
can you help me ?

Server Side

  • Part-DB Version: 1.14.4
  • PHP Version: 8.1.31 (SAPI: apache2handler)
  • Database Server sqlite 3.34.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions