OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems Error when clearing cache after upgrade

This topic contains 17 replies, has 2 voices, and was last updated by  zach1 10 months, 1 week ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #40437


    I’ve recently upgraded an Oro CRM install from 2.4.1 to 3.1.14. Running oro:platform:upgrade worked and that process completed, but trying to clear/warmup the cache afterwards generates this error each time, even after manually deleting the var/cache:

    // Clearing the cache for the prod environment with debug false

    In AbstractManagerRegistry.php line 166:
    Class Oro\Bundle\MailChimpBundle\Entity\Campaign does not exist

    cache:clear [–no-warmup] [–no-optional-warmers] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–disabled-listeners DISABLED-LISTENERS] [–current-user CURRENT-USER] [–current-organization CURRENT-ORGANIZATION] [–] <command>

    Also, when attempting to access the web frontend, I get this error; probably a result of the incomplete cache warmup, but included just in case:

    Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: “Attempted to call an undefined method named “getGuestRole” of class “Oro\Bundle\WebsiteBundle\Entity\Website”.” at /data/websites/upgrading/oro31.local/vendor/oro/customer-portal/src/Oro/Bundle/CustomerBundle/Security/Firewall/AnonymousCustomerUserAuthenticationListener.php line 137

    The only item that turns up in searching for MailChimpBundle in the Oro directory is a migration removing it. Is there any way to get some insight into why it might be looking for it, or how to successfully get the cache warmed up and functional?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Author
  • #40885


    Thank you for your help so far. I have found part of the issue. This form, customerAddress, is being added as non-compound:


    For some reason, my install wants to add a “email” field to customerAddress as a child field. I can set the customerAddress field as compound in that file, but now when I save the form it complains “This value is not valid” for the address book style field on the order form, so it’s not a full fix. Tracing it further, this is the line that is trying to add the email field to customerAddress:


    This seems to get a collection of dynamic fields and adds them to forms. Could you point me to where these dynamic fields are added? If it’s sourcing from the database, is there some front-end option that may have carried over an incompatible field from the 2.4.1 install?



    This happened due to setting the form as compound; it was expecting an array, and got a string. So the root problem ends up being simply that there is a dynamic field being added where it should not be, to customerAddress. Is there any way to edit those fields?

    • This reply was modified 10 months, 1 week ago by  zach1. Reason: Further researched error
    1. pic-128x72
Viewing 2 replies - 16 through 17 (of 17 total)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No