OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems Class 'Extend\Entity\category' does not exist"

This topic contains 4 replies, has 3 voices, and was last updated by  jfarbiarz 9 years, 10 months ago.

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

  • Creator
    Topic
  • #26080

    jfarbiarz
    Participant

    Hello,

    When I am trying to create a new segment (http://www.orocrm.tld/entity/config/#url=/segment/create) i got this error after changing the select field Entity.

    Can you help me to resolve this problem? Thanks you.

    [2014-06-17 17:00:32] security.DEBUG: Invoked controller “FOS\RestBundle\Controller\ExceptionController::showAction”. (SUB_REQUEST) [] []
    [2014-06-17 17:00:32] security.DEBUG: Write SecurityContext in the session [] []
    [2014-06-17 17:00:44] request.INFO: Matched route “oro_api_fields_entity” (parameters: “_controller”: “Oro\Bundle\EntityBundle\Controller\Api\Rest\EntityController::fieldsAction”, “_format”: “json”, “version”: “latest”, “_route”: “oro_api_fields_entity”) [] []
    [2014-06-17 17:00:44] security.DEBUG: Read SecurityContext from the session [] []
    [2014-06-17 17:00:44] security.DEBUG: Reloading user from user provider. [] []
    [2014-06-17 17:00:44] security.DEBUG: Username “onibi29” was reloaded from user provider. [] []
    [2014-06-17 17:00:44] security.DEBUG: Invoked controller “Oro\Bundle\EntityBundle\Controller\Api\Rest\EntityController::fieldsAction”. (MASTER_REQUEST) [] []
    [2014-06-17 17:00:44] request.CRITICAL: Uncaught PHP Exception Doctrine\Common\Persistence\Mapping\MappingException: “Class ‘Extend\Entity\category’ does not exist” at /var/www/orocrm.onibi.fr/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php line 96 {“exception”:”[object] (Doctrine\\Common\\Persistence\\Mapping\\MappingException: Class ‘Extend\\Entity\\category’ does not exist at /var/www/orocrm.onibi.fr/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php:96)”} []
    [2014-06-17 17:00:44] security.DEBUG: Invoked controller “FOS\RestBundle\Controller\ExceptionController::showAction”. (SUB_REQUEST) [] []
    [2014-06-17 17:00:44] security.DEBUG: Write SecurityContext in the session [] []

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #26081

    Ale Cerutti
    Participant

    Hi,

    I just tried to create a new segment in my OroCRM project and i don’t had any problem.
    Reading your error output, i can realise that you have a MappingException.

    category should be Category, with uppercase, shouldn’t it?

    Hope this help!

    #26082

    Vova Soroka
    Participant

    Hi jfarbiarz,
    It seems that you’ve created category entity via GUI, but did not press Update Schema button.
    Please check and let me know the status of your entity on System > Entities page (SCHEMA STATUS column).
    It seems that it is an issue in ORO platform and it will be great if you will help us to find the cause of it.

    #26083

    jfarbiarz
    Participant

    Hi,
    Yes the schema was not updated.

    I press Update Schema button but now i got the following error on all page :

    [2014-06-18 05:38:07] request.INFO: Matched route “oro_api_get_sidebars” (parameters: “_controller”: “Oro\Bundle\SidebarBundle\Controller\Api\Rest\SidebarController::getAction”, “_format”: “json”, “version”: “latest”, “position”: “SIDEBAR_RIGHT”, “_route”: “oro_api_get_sidebars”) [] []
    [2014-06-18 05:38:07] security.DEBUG: Invoked controller “Oro\Bundle\SidebarBundle\Controller\Api\Rest\SidebarController::getAction”. (SUB_REQUEST) [] []
    [2014-06-18 05:38:07] request.INFO: Matched route “oro_api_get_sidebarwidgets” (parameters: “_controller”: “Oro\Bundle\SidebarBundle\Controller\Api\Rest\WidgetController::cgetAction”, “_format”: “json”, “version”: “latest”, “placement”: “right”, “_route”: “oro_api_get_sidebarwidgets”) [] []
    [2014-06-18 05:38:07] security.DEBUG: Invoked controller “Oro\Bundle\SidebarBundle\Controller\Api\Rest\WidgetController::cgetAction”. (SUB_REQUEST) [] []
    [2014-06-18 05:38:07] security.DEBUG: Check class based an access using “oro_entityconfig_manage” ACL annotation. [] []
    [2014-06-18 05:38:07] security.DEBUG: ACL found, permission granted. Voting to grant access [] []
    [2014-06-18 05:38:07] security.DEBUG: Check class based an access using “oro_entityconfig_manage” ACL annotation. [] []
    [2014-06-18 05:38:07] security.DEBUG: ACL found, permission granted. Voting to grant access [] []
    [2014-06-18 05:38:07] security.DEBUG: Write SecurityContext in the session [] []
    [2014-06-18 05:38:07] request.CRITICAL: Uncaught PHP Exception Doctrine\Common\Persistence\Mapping\MappingException: “Class ‘OroEntityProxy\OroEmailBundle\EmailAddressProxy’ does not exist” at /var/www/orocrm.onibi.fr/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php line 96 {“exception”:”[object] (Doctrine\\Common\\Persistence\\Mapping\\MappingException: Class ‘OroEntityProxy\\OroEmailBundle\\EmailAddressProxy’ does not exist at /var/www/orocrm.onibi.fr/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php:96)”} []
    [2014-06-18 05:38:07] security.DEBUG: Invoked controller “FOS\RestBundle\Controller\ExceptionController::showAction”. (SUB_REQUEST) [] []
    [2014-06-18 05:38:07] security.DEBUG: Write SecurityContext in the session [] []

    I try to run the following commmand line “php app/console doctrine:schema:update –force” but no effect. :(

    Any idea?
    Thanks :)

    #26084

    jfarbiarz
    Participant

    I found the solution thanks for all quick and dirty solution :)

    So :

    #Update schema
    php app/console doctrine:schema:update –force

    #Clear cache
    rm -rf app/cache/*

Viewing 4 replies - 1 through 4 (of 4 total)

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

Back to top