SuiteCRM Upgrade 7.7.8 to 7.9.17

Good Evening,

at the update of SuiteCRM from 7.7.8 to 7.9.17 we get at the last part of the upgrading process an Error 500 and later on within the ErrorLog the following Error:
https://gist.github.com/crmwolf/925947aa43b90d8c487586b769a0aadf

Is there a way to fix this?

Greetz
se

Starting from 7.9, the only supported theme is SuiteP.

It looks like you have a different theme, for some reason the upgrader is failing to select the new theme for you. This might be caused by the way you’re specifying the theme.

What do you have in config_override.php (at the root of your installation)?

Within the config_override.php we got the following options:

$sugar_config['default_theme'] = 'SuiteP';
$sugar_config['disabled_themes'] = 'Suite7,SuiteR';

Remove those entries, at least during the upgrade. If you don’t override, default values will apply.

This Error seems to appear to, removing the options above seems not change anything

Wed Jul 31 15:31:07 2019 [362][-none-][FATAL] availableThemes() is returning an empty array! Check disabled_themes in config.php and config_override.php

Like the message says, check also config.php.

Checked both now it looks like this:

config_override.php

$sugar_config['hide_subpanels'] = false;
//$sugar_config['default_theme'] = 'SuiteP';
//$sugar_config['disabled_themes'] = '';
$sugar_config['CalendarColors']['Meetings']['border'] = '1C5FBD';
$sugar_config['CalendarColors']['Meetings']['body'] = 'D2E5FC';

config.php

  'default_subpanel_tabs' => true,
  'default_swap_last_viewed' => false,
  'default_swap_shortcuts' => false,
    //'default_theme' => 'SuiteP',
  'default_time_format' => 'h:ia',
  'default_user_is_admin' => false,
  'default_user_name' => '',
  'demoData' => 'no',
  'developerMode' => false,
  'disable_convert_lead' => false,
  'disable_count_query' => true,
  'disable_export' => false,
  'disable_persistent_connections' => 'false',
  'disabled_languages' => 'es_es,ru_ru',
    //  'disabled_themes' => 'Suite7,SuiteR',
  'display_email_template_variable_chooser' => false,

Error persists

As i understand, he loads all themes, looks which are disabled removes these from the availableThemes Array and then looks for the default theme.
seems like he isnt loading all themes at the beginning.

Sorry, my bad, in config.php leave this line there


$sugar_config['default_theme'] = 'SuiteP';

but I’m not sure if that needs to say “SuiteP” or “SuiteR”. Before 7.9, it has to be SuiteR; after, it has to be SuiteP; and I am not sure at which moment that message is coming.

tried both now:

$sugar_config['default_theme'] = 'SuiteR';

and

$sugar_config['default_theme'] = 'SuiteP';

You don’t say, but I assume it didn’t work, and with the same error as before…

I’m sorry, but I don’t know what could be particular about your system, in terms of theme configurations, that creates this problem. Other people don’t seem to be having it. If you can revert any changes you made related to themes, that might help. If necessary, get a developer to go through the code loading themes for you… I would like to help further, but it’s hard to do it from a distance…