Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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

Forum Replies Created

Viewing 15 replies - 16 through 30 (of 66 total)
  • Author
    Replies
  • in reply to: How to set conditional first step / transition in workflow #28665

    ignat
    Participant

    Would you be able to provide respective content with this error and stack trace from your log file (app/logs/prod.log)?

    in reply to: Process Sales Issue #26748

    ignat
    Participant

    Hi adrianllopis,

    Maybe it’s already not an actual issue. But it looks like the problem with schema migration. Application is expecting to have relation between comment and sales process entity in your DB but you don’t have it.

    Do you have such schema migration and how it looks like? If you don’t have it maybe this is a problem of your development environment and you need to reinstall your application.

    Thanks,
    Ignat

    in reply to: custom login #35258

    ignat
    Participant

    Hi dimitri.seguin17,

    Would be helpful to know what is the class of this object which you’re calling method setPassword. I’m sure it’s not Oro user. Maybe it’s Symfony\Component\Security\Core\User\User. I see it’s used by Symfony when you are using so called “in-memory user provider”: security.user.provider.in_memory (Symfony\Component\Security\Core\User\InMemoryUserProvider).

    Thanks,
    Ignat

    in reply to: oro with docker #26858

    ignat
    Participant

    Hi pauloasterio,

    Are you sure app/console oro:install drops DB? When I need to re-install Oro during development I usually run simple script like that:

    I guess oro:install is not dropping DB by default. There is an option “–drop-database” in this command, but you should be able just to not pass it.

    Just in case run app/console oro:install –help to see other options.

    Thanks,
    Ignat

    in reply to: Calls to API result in 500 Error #26855

    ignat
    Participant

    Hi Tom,

    This behavior is not correct. As you described when you either choose WSSE authentication or pass WSSE headers manually your current user login session will be broken in same browser. WSSE authentication option just generates these WSSE headers for you.

    I’ll create a bug for that and follow up when it will be fixed. At the moment please consider to use one of 2 workarounds:
    1) use api/doc in another browser session
    2) use authentication “none” and pass header X-CSRF-Header: 1

    Thanks,
    Ignat

    in reply to: DataAudit issue. #33996

    ignat
    Participant

    Hi Konstantin,

    Please provide output of command:

    My guess is AuditFieldExtension::addType doesn’t do a good job for you, because it adds column using ExtendScope::OWNER_SYSTEM: https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/DataAuditBundle/Migration/Extension/AuditFieldExtension.php#L22

    ExtendScope::OWNER_SYSTEM must be used only in case when field exist in original entity class and has declared Doctrine mapping. In your case you are adding new extend fields (old_status, new_status), which are not exist in entity AuditField. To check this assumptions you can try to do the same as AuditFieldExtension::addType but with owner ExtendScope::OWNER_CUSTOM, for example: https://gist.github.com/ignat-s/bd33854cd762d63307da#file-someclass-php-L7

    If this is the case then it might be a good reason to fix it in Oro to cover such cases as yours.

    Thanks,
    Ignat

    in reply to: How to set conditional first step / transition in workflow #28662

    ignat
    Participant

    Hi lapino,

    At the moment it is not possible to have several start steps.

    You can try to follow next option. You already have a workflow with some step. Keep it as is for cases when start step is appropriate. So at this point all you need to do is move workflow item of entity to another step. It can be done via Doctrine listener. If you will use postFlush event it should work because workflow item of entity will already exist.

    Otherwise you can try to use “processes”. Here are some references: http://oroinc.com/orocrm/doc/current/user-guide/processes, https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/WorkflowBundle/Resources/doc/reference/processes/index.md.

    Process use same actions and conditions like workflow does. To cover your case you could implement process that will be triggered when entity is created. This process can change transition of workflow if some condition is true. Check this example: https://gist.github.com/ignat-s/36d844ac0cbb063edfb7.

    Thanks,
    Ignat

    in reply to: Calls to API result in 500 Error #26853

    ignat
    Participant

    Hi Tom,

    Did you pass any WSSE-related headers in these API requests?

    Seems to me like an issue of WSSE authentication breaking existing session of logged in user. I think there was a similar issue a while ago. Based on your post it still exists. If this is the case I’ll create a bug and follow up when it will be fixed.

    As a temporary solution at this moment you could use different browser session to send API requests through /api/doc/. Another option is to pass header with value “X-CSRF-Header: 1” in your API request instead of passing WSSE headers. This trick should work only in case if you are sending API request in browser while your user is logged in to Oro in same browser session.

    Thanks,
    Ignat

    in reply to: Blank page after log-in #26851

    ignat
    Participant

    Hi detomaso,

    I assume it is possible that your instance has some time limit for script execution and during install of package it stuck in maintenance mode. I’m going to check this use case and follow up if I’ll find something.

    The way to resolve this issue would to extend limit of PHP execution time on your web server (http://php.net/manual/en/info.configuration.php#ini.max-execution-time). Also it could help to try to install package using PHP CLI, in some environments there is no max execution time limit in CLI settings of PHP. This command could help:

    Regards blank page. If you just removed everything from your folder app/cache/prod then application won’t be able to work correctly. You need to run command

    To avoid issues with file permissions make sure commands run by user running web server.

    Regards log files. You could check either app/logs/prod.log or yours server PHP error log file

    Thanks,
    Ignat

    in reply to: OroCRM Application – 500 ERROR (CALLS) #30110

    ignat
    Participant

    Seems like your instance is in maintenance mode. In this case you should not be able to use web entry point of your application. It’s hard to say what caused your instance to be in maintenance mode. Oro set this mode when doing package installation or oro:platform:update. So I guess one of these operations was failed because of some other error. To disable maintenance mode you can use command app/console lexik:maintenance:unlock –env prod.

    in reply to: Server error 500 when tryign to access OROcrm #30248

    ignat
    Participant

    Hi newtonsun,

    Did you run cache clear command after you have deleted cache files?
    Are these files exist (/var/www/orocrm/app/cache/prod/doctrine/orm/Proxies/__CG__OroBundleOrganizationBundleEntityBusinessUnit.php)?

    If they are exist the issue might be with permissions these files. For example if webserver user is something like “nginx” or “www-data” and files in application cache are owned by other user then web server running PHP application won’t be able to open these files and these error will trigger.

    Here is some information from Symfony website regards setup of file permissions: http://symfony.com/doc/current/book/installation.html#book-installation-permissions

    Thanks,
    Ignat

    in reply to: Additional fields for BusinessUnit, Group #36169

    ignat
    Participant

    Hi maksold,

    There is no way in Oro to add field to Doctrine entity which is not extendable. Might be a good thing to have these entities extendable. Especially if take into account this is not a big deal to do. I’ll create an improvement for that and follow up when this will be assigned for implementation. PRs in GitHub is always appreciated too.

    Alternative quick solution would be to store additional fields in other entity in your bundle.

    Thanks,
    Ignat

    in reply to: Change Address validation #33948

    ignat
    Participant

    Hi cardiac,

    As an option please follow next steps to override validation of existing entity:

    1) Locate validation rules of entity in existing bundles. For your case it will be this file https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/AddressBundle/Resources/config/validation.yml (use appropriate version, current link is for master branch)

    2) In your bundle add yours Resources/config/validation.yml and copy validation rules from original source.

    3) Add some unique validation group to your validation rules in Resources/config/validation.yml and comment out rules that you want to ignore. I guess in your case your file would look like this: https://gist.github.com/ignat-s/09170db64544ed9a95b2.

    4) Add form extension for form type of your entity and inject custom validation group.

    For more information please check this webinar that includes topic of overriding of validation using this approach: https://youtu.be/GNNU0veNmks?t=1775

    For reference you could use this repository and branch: https://github.com/orocrm/training-crm-application/tree/webinar/customize.

    You would be able to find where form extension injects custom validation group here: https://github.com/orocrm/training-crm-application/blob/webinar/customize/src/Webinar/Bundle/AccountBundle/Form/Extension/AddB2bCustomer.php#L38

    And you would be able to find where validation is overridden here: https://github.com/orocrm/training-crm-application/blob/webinar/customize/src/Webinar/Bundle/AccountBundle/Resources/config/validation.yml#L11

    Thanks,
    Ignat

    in reply to: Mailchimp Cannot install #26686

    ignat
    Participant

    Hi Brian,

    Please try next cli command and provide result:

    php app/console oro:package:install --env=prod -vvv oro/crm-mail-chimp

    It’s the same as yours but in your case there is incorrect “–” instead of “-“.

    Thanks,
    Ignat

    in reply to: Error when viewing a User in ORO BAP #33888

    ignat
    Participant

    Hi Ashley,

    I wasn’t able to reproduce this issue out of the box. But after changing priority of oro_ui.view.listener to -1 this issue appeared. I guess in some environment order or oro_ui.view.listener and sensio_framework_extra.view.listener can be different and it causes this issue.

    I have created PR with fix. It will available in master after merge or in 1.7.5 when it will be released.

    Thanks,
    Ignat

Viewing 15 replies - 16 through 30 (of 66 total)
Back to top

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

Yes No

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

Yes No