We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4055
    • 7 Posts
    I am upgrading from 2.1.5 to 2.2.0-pl2 and getting the following errors.

    The only options i have a re back and retry, going back didn't give me any other options and retrying doesn't change anything.

    Any thoughts?


    Error creating table for class modDashboard

    Error creating table for class modDashboardWidget

    Error creating table for class modDashboardWidgetPlacement

    Error creating table for class sources.modAccessMediaSource

    Error creating table for class sources.modMediaSource

    Error creating table for class sources.modMediaSourceElement

    Error creating table for class sources.modMediaSourceContext

    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Successfully upgraded table for class modTemplateVar
    Modified column `default_text` from `TEXT` to `MEDIUMTEXT` on table ``modx_site_tmplvars``

    Successfully upgraded table for class modTemplateVarResource
    Modified column `value` from `TEXT` to `MEDIUMTEXT` on table ``modx_site_tmplvar_contentvalues``

    Error updating table for class modUser
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Error updating table for class modUser
    Array
    (
    [0] => 00000
    [1] =>
    [2] =>
    )

    Error updating table for class modUser
    Array
    (
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modUserGroup
    Array
    (
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modUserGroup
    Array
    (
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modContext
    Array
    (
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modContext
    Array
    (
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modChunk
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modChunk
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modChunk
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modChunk
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modChunk
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modPlugin
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modPlugin
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modPlugin
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modPlugin
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modPlugin
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modSnippet
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modSnippet
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modSnippet
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modSnippet
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modSnippet
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplate
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplate
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplate
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplate
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplate
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class sources.modMediaSource
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class sources.modMediaSource
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modDashboard
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )

    Error updating table for class modDashboard
    Array
    (
    [0] => 00000
    [1] => 1054
    [2] => Unknown column 'primary_group' in 'where clause'
    )
      Bret Bouchard
      518 Designs
      http://518designs.com
      • 3749
      • 24,544 Posts
      It looks like maybe your DB user has permission to update tables but not to create them. This may be a restriction created by the host or possibly you didn't give the DB user full permissions when creating the user.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 22427
        • 793 Posts
        Similar question:
        Made a successful upgrade from 2.1.5-pl to 2.2.0-pl2, and the site is running correctly, like before.
        But at the end of the installation process I got this Message:
        Error updating table for class sources.modMediaSource
            Array
            (
            [0] => 42S21
            [1] => 1060
            [2] => Duplicate column name 'is_stream'
            )
        
            Error updating table for class sources.modMediaSource
            Array
            (
            [0] => 42000
            [1] => 1061
            [2] => Duplicate key name 'is_stream'
            )
        
            Error updating table for class modDashboard
            Array
            (
            [0] => 42S21
            [1] => 1060
            [2] => Duplicate column name 'hide_trees'
            )
        
            Error updating table for class modDashboard
            Array
            (
            [0] => 42000
            [1] => 1061
            [2] => Duplicate key name 'hide_trees'
            )
        

        There was no change in the DB permissions (I'm the only user).

        What should I do?

          • 3749
          • 24,544 Posts
          Those are normal and can be ignored.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 22427
            • 793 Posts
            Thanks.
              • 27106
              • 147 Posts
              FYI, updating from 2.1.? to 2.2.0 I got the same four closing error messages as ottogal. I carried on and haven't seen any problems.
                David Walker
                Principal, Shorewalker DMS
                Phone: 03 8899 7790
                Mobile: 0407 133 020
                • 28432
                • 372 Posts
                Hi all,

                I got the same problem and i solve it in a different way (update MODx Revolution 2.0.8-pl (traditional) to MODX Revolution 2.5.0-pl (traditional)).

                After seen all this errors i run again the setup and only one error stay there (duplicate column in database).
                Empty the cache, refresh the page and all fine (I haven't test everything so don't forget to make a backup before an update !!!).

                Many thanks to the MODX team to make it possible !
                Hope this help.

                [ed. note: Steeve last edited this post 10 years, 2 months ago.]