Installation Wizard (SuiteCRM 7.13.4) failing at the Configuration stage

Hi all,

Iā€™m attempting to setup SuiteCRM 7.13.4 for the very first time on an Ubuntu 22.04 LTS VM. The System Environment page (Step 1 of 2 - Pre-installation requirements) comes up with all checks as OK

However step 2 fails after correcly entering the database information and clicking next.

The error message at the browser is:

The page isnā€™t working ā€¦ currently unable to handle this request.

If I look at /var/log/apache2/suitecrm_error.log, I get:

[Wed Aug 30 12:27:06.310021 2023] [php:warn] [pid 1722] [client 192.168.100.163:64847] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/SuiteCRM-7.13.4/include/utils.php on line 1873
[Wed Aug 30 12:29:46.847868 2023] [php:error] [pid 1724] [client 192.168.100.163:65098] PHP Fatal error:  $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/html/SuiteCRM-7.13.4/install/performSetup.php on line 715, referer: http://suitecrm.aosgrp.net/install.php

Here are more details:

  • The version of Apache is 2.4.52
  • The version of PHP is 8.1.2-1ubuntu 2.14
  • Checked the version of the database (MariaDB)
mysql --version
mysql  Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper

Iā€™ve also checked the compatibility matrix at Compatibility Matrix :: SuiteCRM Documentation and I satisfy the requirements.

Interestingly I found the following link:

After I made the suggested change to the file performSetup.php, i.e.

//$GLOBALS = $varStack['GLOBALS'];
// foreach ($varStack['defined_vars'] as $__key => $__value) {
//    $$__key = $__value;
// }
foreach($varStack[ā€˜GLOBALSā€™] as $key => $value) {
        $GLOBALS[$key] = $value;
}

ā€¦ I was able to run the installation wizard to completion.

It seems I can log, access all menus and create a contact with no issues.

However there are numerous warnings being reported in the file /var/log/apache2/suitecrm_error.log:

[Wed Aug 30 14:37:50.679874 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "customCode" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.679887 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "tabindex" in /var/www/html/SuiteCRM-7.13.4/include/Smarty/plugins/function.sugar_field.php on line 104, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.680073 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "url" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%74^74F^74FBB9DE%%DashletGenericAutoRefresh.tpl.php on line 29, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.680779 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "done" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%AE^AE9^AE9373ED%%SugarFeedScript.tpl.php on line 32, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.680952 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "script" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%36^364^364F619D%%MySugar2.tpl.php on line 58, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.680985 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "script" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%36^364^364F619D%%MySugar2.tpl.php on line 58, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.680994 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "script" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%36^364^364F619D%%MySugar2.tpl.php on line 58, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.681075 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "script" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%36^364^364F619D%%MySugar2.tpl.php on line 58, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Wed Aug 30 14:37:50.681150 2023] [php:warn] [pid 1385] [client 192.168.100.163:57403] PHP Warning:  Undefined array key "lock_homepage" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%36^364^364F619D%%MySugar2.tpl.php on line 124, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui

Is it possible this is a known bug ? I donā€™t know if I should push ahead with the current setup taking into account it seems to work fine (so far)

You can safely remove the entire cache/smarty directory, files in there are re-created automatically, as needed. I woulndā€™t worry too much about those warnings.

Thanks for the tip. Iā€™ve removed the cache/smarty directory but still get a ton of these messages:

[Fri Sep 01 10:30:21.513925 2023] [php:warn] [pid 1012] [client 192.168.100.163:60143] PHP Warning:  Undefined array key "moduleList" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php on line 28, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Fri Sep 01 10:30:21.513928 2023] [php:warn] [pid 1012] [client 192.168.100.163:60143] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php on line 28, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Fri Sep 01 10:30:21.513934 2023] [php:warn] [pid 1012] [client 192.168.100.163:60143] PHP Warning:  Undefined array key "moduleList" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php on line 28, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Fri Sep 01 10:30:21.513938 2023] [php:warn] [pid 1012] [client 192.168.100.163:60143] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php on line 28, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui
[Fri Sep 01 10:30:21.515244 2023] [php:warn] [pid 1012] [client 192.168.100.163:60143] PHP Warning:  Undefined array key "LBL_SEARCH_BUTTON" in /var/www/html/SuiteCRM-7.13.4/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php on line 662, referer: http://suitecrm.aosgrp.net/index.php?action=ajaxui

Iā€™m happy to avoid these warnings provided I donā€™t get issues in the future. The instance Iā€™ve installed will eventually go into production and want to avoid future issues where possible.

Iā€™m new to SuiteCRM. Can I at least report the change that is required to the file performSetup.php as a required bug fix ?

I think you can safely ignore those warnings.

The changes are already in the latest code, I believe:
https://github.com/salesagility/SuiteCRM-Core/blame/master/public/legacy/install/performSetup.php#L781

I see. Admittedly I downloaded the latest version that was available from the main download page: Download - SuiteCRM which didnā€™t have these updates.

In any case good to see this has been included in the source code at least.

Does this mean that if I attempt to upgrade at some stage in the future, the latest source code is included in later versions ?

These releases are very recent.

Whatever reaches the master branch on GitHub is in included in the latest release.

Thanks for that. Nevertheless, I downloaded the latest version (7.13) from the main download page (as per the previous link I posted) which didnā€™t have the bug fixes in the file performSetup.php

7.13 is not the latest versionā€¦ I didnā€™t check the download pages, itā€™s possibly they are lagging a bit behind

Yes. I agree. An update only came through recently. Iā€™ve upgraded to 7.14 and it seems to have solved a number of issues.

1 Like

So you upgraded to 7.14 from 7.13 with PHP 8.x? Is it working perfectly for you? What others precautions you took while upgradation?