We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28883
    • 35 Posts
    I've just successfully installed a local copy of my site (2.1.1) and then started the upgrade process to install 2.2.0. I'm getting the db erros seen below.

    If I try to login to manager, I get an internal server error. My apache logs show:

    PHP Fatal error:  Undefined class constant 'OPT_CONN_INIT' in /path/to/site/manager/index.php on line 56
    


    I've since tried to view my site or return to setup but now log shows:

    PHP Fatal error: Class 'xPDODriver_' not found in /path/to/site/core/xpdo/xpdo.class.php on line 1456

    Is the jump for 2.1.1 to 2.2.0 too big? Is there something else I'm overlooking?

    Any help will be greatly appreciated!

    Here are the DB errors:

    Error updating table for class modEvent
    Array
    (
    [0] => 42000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modEvent
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modEvent
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modUserProfile
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    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] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modResource
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modTemplateVar
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modTemplateVarResource
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modUser
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    Error updating table for class modUser
    Array
    (
    [0] => 00000
    [1] => 1091
    [2] => Can't DROP 'name'; check that column/key exists
    )
    
    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'
    )
    [ed. note: supanick last edited this post 14 years, 7 months ago.]
      • 28883
      • 35 Posts
      ...I hear crickets...anyone else out there? wink
        • 22303 MODX Staff
        • 10,725 Posts
        Sounds like you have not put the 2.2.0-pl2 files in place. It is still using an older version of the core.
          • 28883
          • 35 Posts
          Thanks opengeek,

          I should have read the upgrade docs more carefully. I've got the site working, but get the following error message in my apache log:

          PHP Fatal error:  Call to a member function render() on a non-object in /path/to/site/manager/controllers/default/welcome.class.php on line 65


          In searching the forum and the web for answers, I came across this post:

          https://forums.modx.com/index.php?topic=67548.0

          I've downloaded the 2.2.0 again, uploaded all the files, re-run setup and get the same error. As in the post metioned above, I've renamed the welcome.class.php file in order to login.

          Any ideas? At least I can carry on working for the moment;)