Class Error when Upgrading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blockhouse_IT
    Junior Member
    • Jan 2024
    • 3

    #1

    Class Error when Upgrading

    Hi all,

    We’re running into an issue while trying to upgrade EspoCRM from version 8.4.2 to the latest version. During the upgrade process, it fails with the error:

    Class "Espo\Core\Utils\Database\Orm\Fields\PersonNam e" not found

    This error only occurs on our production instance, which has several customizations. It does not occur on our development environment, which is a clean install without any customizations. Both environments have the same extensions installed but the dev system upgrades without issue.

    We did find that the production system contains a custom class at custom/Espo/Custom/Core/Utils/Database/Orm/Fields/PersonName.php that tries to extend Espo\Core\Utils\Database\Orm\Fields\PersonName.

    We remove all of the extensions when we are updating because they need updated as well.

    Looking to see if anyone has had this issue before or if this is some weird customization we inherited from the previous admin.

    Additionally we are running the Advanced Pack, Google Integration, Sales Pack and VoIP Integration extensions.

    If there is anymore info I can provide let me know but this is all i'm working with at the moment.

    Thanks in advance!
    Last edited by Blockhouse_IT; 05-23-2025, 05:00 PM.
  • lazovic
    Super Moderator
    • Jan 2022
    • 1065

    #2
    Hi Blockhouse_IT,

    This is definitely a customization left over from the previous admin. If you can't fix the custom code yourself, you can try removing the problematic file, then make a rebuild and check if the upgrade goes through, but I highly recommend backing up your production instance before doing this.

    Comment


    • Blockhouse_IT
      Blockhouse_IT commented
      Editing a comment
      We were able to remove that file and then the upgrade worked perfectly. Thank you!!
Working...