Error on 7.4.6 => 7.5.6 upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vfadeev
    Junior Member
    • Apr 2023
    • 2

    Error on 7.4.6 => 7.5.6 upgrade

    Hello

    I got following error on 7.4.6 => 7.5.6 upgrade attempt

    HTML Code:
    % php command.php upgrade
    Current version is 7.4.6.
    EspoCRM will be upgraded to version 7.5.6 now. Enter [Y] to continue.
    Y
    This may take a while. Do not close the terminal.
    Downloading...
    Upgrading...
      Initialization...
      Copying before upgrade files...
      Rebuilding...
      Before upgrade script execution...
      Reverting...
    Error: Call to undefined method Espo\Core\Container::getByClass()
    ​
    Would someone please advise the solution?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    Is it on windows?
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Seems your instance is not fully 7.4.6. Some files are from an older version. There's the method getByClass in 7.4.6: https://github.com/espocrm/espocrm/b...ainer.php#L152

      I suggest to download 7.4.6 from GitHub releases and replace the application and client folders. Then try to upgrade again.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • vfadeev
        Junior Member
        • Apr 2023
        • 2

        #4
        Yes, this helped, thank you.
        Also my composer.json content was outdated.

        I've successfully upgraded to 7.5.6, but on attempt to upgrade to 8.0.5 I've got following error:
        Code:
        Failed to rebuild database schema. Details: Incomplete or invalid index definition `primary` on table preferences at /usr/local/.../espocrm/vendor/doctrine/dbal/src/Platforms/AbstractPlatform.php:2474
        DB version = 11.0.3-MariaDB-1:11.0.3+maria~ubu2204

        Would you please tell what is wrong?

        Comment

        Working...