OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM OroCRM – Installation/Technical Issues or Problems error upgrade orocrm 1.10.12 to 2.0

This topic contains 47 replies, has 5 voices, and was last updated by  dynamicssquareau 5 months ago.

  • Creator
    Topic
  • #27555

    fred33
    Participant

    I try to upgrade my version 1.10.12 in version 2.0, I use the procedure
    https://github.com/orocrm/crm/blob/master/UPGRADE-2.0.md and but when i upgrade I have the following message

    My ui is in french

    thanks

Viewing 15 replies - 31 through 45 (of 47 total)
  • Author
    Replies
  • #27586
    Mike Kudelya
    Mike Kudelya
    Participant

    but in English

    Are we talking about language in System -> Configuration? If yes, could you please tell me which Language/Locale you use ? Did you try to remove your custom bundles on non-working version?

    #27587

    fred33
    Participant

    i’m using all french parameters in Localization and French Language. I am obliged to remove my bundles for migration as they extend bundles like account or contact

    #27588

    fred33
    Participant

    this my error.log in apache2

    #27589
    Mike Kudelya
    Mike Kudelya
    Participant

    Hi

    You said that you had two OroCRM instances (English and French). Could you tell me if these instances use the same environment? (php/mysql/apache, etc…) Are these instances identical in terms of code/database,and you just copied the first instance and then changed the language from english to french? These are normal apache errors that happen because migration did not execute

    #27590

    fred33
    Participant

    All orocrm instances are on my pc so i use the same environment, php7 mysql apache2…I only change language

    #27591

    Dima Makaruk
    Participant

    Hi

    i’ve had the same issue like fred33 and got the error SQLSTATE[HY000]: General error: 1364 Field ‘key’ doesn’t have a default value.

    Some how the migration Oro\Bundle\TranslationBundle\Migrations\Schema\v1_3\UpdateTranslationColumns wasn’t executed. The columns locale, domain, key in the table oro_translation should be dropped,but they exist also after successful update.
    Also the unique key for columns language_id, translation_key_id is not created. So i suppose the migration wasn’t executed at all.

    #27592

    Dima Makaruk
    Participant

    My problem was , that i didn’t run php app/console oro:platform:update before php app/console oro:platform:upgrade20

    #27593

    fred33
    Participant

    Hi,
    if i run php app/console oro:platform:update before upgrade i have the same issue that Dima

    #27594
    msulima
    msulima
    Moderator

    If you’d like to upgrade from 1.10 to 2.0 version you do not need to execute “oro:platform:update” because “oro:platform:upgrade20” already contain sub call of this command, please see here: https://github.com/orocrm/platform/blob/2.0/src/Oro/Bundle/InstallerBundle/Command/UpgradeCommand.php#L66

    To successfully upgrade you just need to run “oro:platform:upgrade20” as it was described here:

    https://github.com/orocrm/crm/blob/master/UPGRADE-2.0.md


    #27595

    fred33
    Participant

    This is exactly the procedure that I have followed since the beginning, I only made this command to test. My starting topic is well following an error when executing the procedure you give

    #27596

    Dima Makaruk
    Participant

    @msulima thank you for correction.

    @fred33 before you update try to find out if you have duplicates in oro_translation table. This would look like this :

    Before running the upgrade ,try to clean up the duplicates in the table, if they exist. I’ve also done it , when the DB was in 1.10 state.

    #27597

    fred33
    Participant

    @Dima I’m trying to execute your request, error message

    #27598

    fred33
    Participant

    I reply to myself i forgot the quotes key….

    #27599

    fred33
    Participant

    Another question, is that the domain field is important because I have duplicates with key and value equal but with a different domain

    #27600

    Dima Makaruk
    Participant

    try to add domain field to group by

Viewing 15 replies - 31 through 45 (of 47 total)

You must be logged in to reply to this topic.

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

Yes No