Details
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.