Upgrade 1.8.9 to 1.9.6 fails silently

anton1

New Member
Hello,
Trying to upgrade mailwizz from 1.8.9 to 1.9.6

~$ /usr/bin/php /home/mailwizz/apps/console/console.php update
Are you sure you want to update your Mailwizz application from version 1.8.9 to version 1.9.6 ? (yes|no) [no]:yes
[2020-04-23 20:41:21] - Updating to version 1.9.0.
~$ //Nothing happens here. Asking to upgrade to 1.9.0 instead of 1.9.6. Executes immediately and fails without any errors....

How is it possible to debug this?
Thanks in advance.
 
you can open apps/console/console.php which looks like:
PHP:
<?php

/**
 * Console application bootstrap file
 *
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com>
 * @link https://www.mailwizz.com/
 * @copyright MailWizz EMA (https://www.mailwizz.com)
 * @license https://www.mailwizz.com/license/
 * @since 1.0
 */

// make sure we have enough time and memory.
ini_set('memory_limit', -1);
ini_set('max_execution_time', 0);
set_time_limit(0);

// for some fcgi installs
if (empty($_SERVER['SCRIPT_FILENAME'])) {
    $_SERVER['SCRIPT_FILENAME'] = __FILE__;
}

// define the type of application we are creating.
define('MW_APP_NAME', 'console');

// and start an instance of it.
require_once(dirname(__FILE__) . '/../init.php');

And make it:
PHP:
<?php

/**
 * Console application bootstrap file
 *
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com>
 * @link https://www.mailwizz.com/
 * @copyright MailWizz EMA (https://www.mailwizz.com)
 * @license https://www.mailwizz.com/license/
 * @since 1.0
 */

// make sure we have enough time and memory.
ini_set('memory_limit', -1);
ini_set('max_execution_time', 0);
set_time_limit(0);

// for some fcgi installs
if (empty($_SERVER['SCRIPT_FILENAME'])) {
    $_SERVER['SCRIPT_FILENAME'] = __FILE__;
}

// DEBUG HERE
define('MW_FORCE_DEBUG_MODE', true);

// define the type of application we are creating.
define('MW_APP_NAME', 'console');

// and start an instance of it.
require_once(dirname(__FILE__) . '/../init.php');

Which will enable debug only for command line so people in the web interface using the app will not see this.
 
Back
Top