We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27167
    • 31 Posts
    Hi!
    I'm unable to upgrade from 2.2.10 to 2.3.2 (advanced installation)

    When I'm running /setup I'm getting the following error at the installation summary page:

    > Checking if /var/modx_common/modx/manager/ directory is writable: Failed!

    I've spent the last 4 hours trying to find the problem so obviously I've tried things like
    chmod -R 777 /var/modx_common/modx/manager/
    chown www-data:www-data -R /var/modx_common/modx/manager/
    

    and yes I'm 100% sure the folder exists wink

    My server setup is as follows:
    /var/www/modx
    /var/www/modx/assets
    /var/www/modx/connectors
    /var/www/modx/setup (<-- this is also where I extracted the setup directory for 2.3.2)

    For enhanced security I put these files outside the www DocRoot
    /var/modx_common/modx/core/
    /var/modx_common/modx/manager/

    Everything else in the installation summary is "OK".
    some examples:
    > Checking if /var/www/modx/ directory is writable: OK!
    > Checking if /var/www/modx/connectors/ directory is writable: OK!

    There is one error in the install.config.log - however I don't know what it means - doesn't look like it has anything to do with write-permissions:
    [2014-11-06 16:11:33] (ERROR @ /modx/setup/index.php) Error 42S22 executing statement: 
    Array
    (
        [0] => 42S22
        [1] => 1054
        [2] => Unknown column 'modContext.name' in 'field list'
    )
    
    [2014-11-06 16:11:33] (ERROR @ /modx/setup/index.php) Could not prepare context: mgr
    


    There are no log entries in apache error log

    What I have done so far:
    I downloaded modx-2.3.2-pl-advanced.zip, and extracted the two folders
    1. /core I merged into the "old" core folder (/var/modx_common/modx/core/) following the Upgrading guide by using the "humble cp" command:
    \cp -fr modx-2.3.2-pl/core/* /var/modx_common/modx/core

    2. /setup I moved to the corresponding path that is accessible via the webserver (/var/www/modx/setup/)

    -> Like I said, running setup is fine up to the installation summary, where the only thing that fails is the check for write access to the /manager folder...

    Any help is greatly appreciated!

    Cheers,

    Siar
      • 3749
      • 24,544 Posts
      Did you try 755 for the directory? Using 777 won't work on many hosts.
        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
        • 27167
        • 31 Posts
        Hi Bob,
        thanks for your quick reply -
        It's my own (dedicated) server where I do have root access - however I tried 755 anyway and the result was negative - the issue is still there...

        Do you have any other idea?
          • 3749
          • 24,544 Posts
          This message:

          Unknown column 'modContext.name' in 'field list'


          Means that at least one step was missed in the upgrade. The addition of the 'name' column to the modx_contexts table didn't take place. I'm guessing you made too big a jump when you upgraded. All the intermediate upgrade steps are supposed to occur, but I've seen several reports like yours. I believe that the 2.3 install is not performing all of the upgrade steps between 2.2.10 and 2.3.

          If you can revert to 2.2.10, I would perform all the intermediate upgrades between there and 2.3. You probably only need one of them, but we don't know which one.
            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
            • 27167
            • 31 Posts
            Thanks Bob, I will try this and get back to you!

            Cheers,

            Siar
              • 27167
              • 31 Posts
              Looks like I'm completely stuck now:

              First I tried to upgrade to 2.2.15 -> same issue
              Then I tried to go up just one release to 2.2.11. -> same issue...

              Do you have any other idea?

              I'm wondering about 2 things:

              1. How do you actually upgrade the /manager directory? As in the advanced packages there are only 2 directories (core, setup)
              2. Does setup do any database-modifications BEFORE the installation summary page? Because so far I have only reverted each failed upgrade by restoring a backup for the core directory.

              Cheers,

              Siar [ed. note: SiarAneas last edited this post 11 years, 10 months ago.]
                • 3749
                • 24,544 Posts
                I don't really understand how the advanced package works, and I'm not sure when setup modifies the DB, but I can tell you that you haven't really reverted if all you did was copy the old core files. You haven't reverted the Manager files, the connector files, or any changes to the database.
                  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