Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing error with non existent class #1052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dblancaster
Copy link

$entityClass was updating from:

"Oro_Bundle_OrganizationBundle_Entity_BusinessUnit"

to:

"Proxies/CG/Oro_Bundle_OrganizationBundle_Entity_BusinessUnit"

Which causes

Fatal error: require(): Failed opening required '/var/www/html/demo/var/cache/prod/doctrine/orm/Proxies/___CG___Oro_Bundle_OrganizationBundle_Entity_BusinessUnit.php'

When attempting to add an attachment on a Business Unit, reproduced here:
First add attachments to business units in the entity configuration:
https://demo.orocrm.com/index.php/organization/business_unit/view/1

Once an attachment has been added to the Business Unit, this incorrect URL is generated:
https://demo.orocrm.com/index.php/attachment/create/Proxies___CG___Oro_Bundle_OrganizationBundle_Entity_BusinessUnit/1?_widgetContainer=dialog&_wid=ee7ba2d3-5903-4207-a15a-3bebce87ff1f&_widgetInit=1

@orocla
Copy link

orocla commented Jan 21, 2021

Thank you for your pull request.

It looks like this may be your first contribution to an Oro, Inc. open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://oroinc.com/b2b-ecommerce/contributor-license-agreement/

If you've already signed the CLA, it's possible we don't have your GitHub username or you're using a different email address. GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account. Please sign the CLA again using the correct GitHub username and email address or see this help article on setting the email on your git commits.

Once you've signed the CLA, please allow for some time for the submission to be processed.

@mbessolov
Copy link
Member

Thank you for the report and the proposed fix!

(internal reference: BAP-20386)

@anyt anyt added the bug label Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

5 participants