OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM Unable to install demo datas

This topic contains 9 replies, has 2 voices, and was last updated by  voidandany 9 years ago.

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

  • Creator
    Topic
  • #30147

    voidandany
    Participant

    I tried to install ORO-CRM and when I try to insert demo datas, throught web interface or command line (php app/console oro:migration:data:load –fixtures-type=demo –env=prod) the installation fail.

    When I launch througth command line the error returned is :
    PHP Fatal error: Call to a member function getOwner() on a non-object in /var/www/esashare-crm/prod/vendor/oro/crm/src/OroCRM/Bundle/DemoDataBundle/Migrations/Data/Demo/ORM/LoadUsersCalendarData.php on line 66

    It occur during this step : Loading OroCRM\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadUsersCalendarData.

    Something strange I don’t have any previous insertion (BusinessUnitData, UserData, etc).
    Are they rollbacked when a fixture fail ?

    Thanks a lot.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • #30148

    ignat
    Participant

    Hi voidandany,

    What are specifications of your environment? We have same issue from another user but didn’t reproduce it at the moment.

    Thanks,
    Ignat

    #30149

    voidandany
    Participant

    Hi,

    thanks for your answer.
    The environment where the problem occurs is quite special.

    The frontend is a LXC container with NGINX and PHP-FPM, MySQL is installed on the physical server which host the containers.
    The physical server also host an NGINX which is used to proxify requests to the correct LXC container.

    I think the problem doesn’t came from LXC or the NGINX proxy, I think it’s due to the distant MySQL database.

    For the moment and for our test we installed ORO CRM on a physical server (apache, php as module and Mysql on the same server) but the target is the first architecture.

    Let me know if I can make test for you.
    Yoann

    #30150

    ignat
    Participant

    Hi voidandany,

    Please send the output of command

    It seems like the issue depends on the order of fixtures load which can be different on different environments.

    Thanks,
    Ignat

    #30151

    voidandany
    Participant

    I will try tomorrow.

    #30152

    voidandany
    Participant

    Here is the result :

    #30153

    ignat
    Participant

    Hi voidandany,

    Please check install on 1.6.2, it should be fixed there.

    Thanks,
    Ignat

    #30154

    voidandany
    Participant

    Hello, I can’t found 1.6.2 tag

    #30155

    ignat
    Participant

    Hi voidandany,

    Please switch to 1.6.1 and run composer update. It will update oro/crm and oro/platform to latest stable version.

    Thanks,
    Ignat

    #30156

    voidandany
    Participant

    Thanks a lot it works now.

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

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top