Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-9518

Extensions not enabled in 3.9rc1 upgrade scripts

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.9.0rc2
    • 3.9.0rc1
    • Misc
    • None
    • Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')
      Database and version:

    Description

      If you have database settings stored in an extension the upgrade scripts in /update/common/scripts/3.9 won't be able to connect to the database. The fix is to simply enable extensions when initializing eZScript.

      Index: update/common/scripts/3.9/updatetypedrelation.php
      ===================================================================
      --- update/common/scripts/3.9/updatetypedrelation.php   (revision 17531)
      +++ update/common/scripts/3.9/updatetypedrelation.php   (working copy)
      @@ -44,7 +44,7 @@
       $script =& eZScript::instance( array( 'description' => ( "\nAdd 'embed' & 'link' contentobject relations.\n"  ),
                                             'use-session' => false,
                                             'use-modules' => false,
      -                                      'use-extensions' => false ) );
      +                                      'use-extensions' => true ) );
       
       $script->startup();
       
      
      Index: update/common/scripts/3.9/correctxmltext.php
      ===================================================================
      --- update/common/scripts/3.9/correctxmltext.php        (revision 17531)
      +++ update/common/scripts/3.9/correctxmltext.php        (working copy)
      @@ -47,7 +47,7 @@
                                                              "\nYou can optionally perform only some of these tasks.",
                                             'use-session' => false,
                                             'use-modules' => false,
      -                                      'use-extensions' => false ) );
      +                                      'use-extensions' => true ) );
       
       $script->startup();
      
      Steps to reproduce

      Try to run update/common/scripts/3.9/updatetypedrelation.php or update/common/scripts/3.9/correctxmltext.php when your database settings is inside an extension.

      Attachments

        Activity

          People

            unknown unknown
            oh oh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: