Jump to content
  • Error when running upgrade from v4 to v5


     I have tried to upgrade my test v4 installation to v5. I've done this by uploading the v5 files in the same directory as suggested then going to  https://mydomain.com/admin/upgrade 

    After starting the upgrade (after logging in and following instructions), I see the following error after a few seconds on the Upgrade step

    Cannot assign string to property IPS\Extensions\QueueAbstract::$rebuild of type int
    TypeError: Cannot assign string to property IPS\Extensions\QueueAbstract::$rebuild of type int (0)
    #0 /var/www/vhosts/mydomain.com/beta.mydomain.com/applications/core/setup/upg_500001/upgrade.php(237): IPS\Task::queue()
    #1 /var/www/vhosts/mydomain.com/beta.mydomain.com/applications/core/sources/Setup/Upgrade.php(648): IPS\core\setup\upg_500001\Upgrade->step5()
    #2 /var/www/vhosts/mydomain.com/beta.mydomain.com/applications/core/sources/Setup/Upgrade.php(369): IPS\core\Setup\Upgrade->step1()
    #3 /var/www/vhosts/mydomain.com/beta.mydomain.com/applications/core/modules/setup/upgrade/upgrade.php(60): IPS\core\Setup\Upgrade->process()
    #4 /var/www/vhosts/mydomain.com/beta.mydomain.com/system/Helpers/MultipleRedirect/MultipleRedirect.php(104): IPS\core\modules\setup\upgrade\upgrade->IPS\core\modules\setup\upgrade\{closure}()
    #5 /var/www/vhosts/mydomain.com/beta.mydomain.com/applications/core/modules/setup/upgrade/upgrade.php(45): IPS\Helpers\MultipleRedirect->__construct()
    #6 /var/www/vhosts/mydomain.com/beta.mydomain.com/system/Dispatcher/Controller.php(139): IPS\core\modules\setup\upgrade\upgrade->manage()
    #7 /var/www/vhosts/mydomain.com/beta.mydomain.com/system/Dispatcher/Setup.php(261): IPS\Dispatcher\Controller->execute()
    #8 /var/www/vhosts/mydomain.com/beta.mydomain.com/admin/upgrade/index.php(38): IPS\Dispatcher\Setup->run()
    #9 {main}

    Any ideas how to proceed?


    User Feedback

    Recommended Comments

    Daniel F

    Posted

    Do you have a constants.php in your root forum directory?
    If yes, is there a line similar to

    define( 'IPS\REBUILD_NORMAL', 250 );

    but is the number between "" ? 

    If yes, remove the surrounding "

    TheLlamaman

    Posted

    Thanks that fixed it. For some reason I had some slightly different entries in my constant.php, e.g.

    \define( 'REBUILD_NORMAL', '1000' );

    I replaced this with what you suggested and was able to continue with the upgrade.


×
×
  • Create New...