Skip to content

upgrade warnings vt 8.0 -> 8.2

hello devs

While upgrading our vt instance from 8.0 into 8.1 I have noticed a lot of php warnings in the logs. Mainly these but repeated many times:

PHP Warning: Undefined array key "exclude" in \vtigercrm\vtlib\Vtiger\Unzip.php on line 76

PHP Warning: Undefined array key "include" in \vtigercrm\vtlib\Vtiger\Unzip.php on line 71

PHP Warning: Undefined array key "Migration" in \vtigercrm\vtlib\Vtiger\Functions.php on line 167

PHP Warning: Undefined array key 1 in \vtigercrm\modules\Migration\views\Index.php on line 116

PHP Warning: Undefined array key 1 in \vtigercrm\modules\Migration\views\Index.php on line 121

PHP Warning: Undefined property: Vtiger_Package::$_migrations in \vtigercrm\vtlib\Vtiger\PackageUpdate.php on line 189

PHP Warning: Undefined variable $extensionfile_found in \vtigercrm\vtlib\Vtiger\PackageImport.php on line 255

PHP Warning: Undefined variable $reach in \vtigercrm\modules\Migration\views\Index.php on line 103

PHP Warning: Undefined variable $reach in \vtigercrm\modules\Migration\views\Index.php on line 108

PHP Warning: foreach() argument must be of type array|object, bool given in \vtigercrm\include\database\PearDatabase.php on line 363

So I have done fresh install of vTiger 8.0 and upgraded it to 8.1 and then 8.2 which resulted in the same warnings in the logs.

My env: PHP 8.1.29 MariaDB 10.6.17 Apache 2.4.59

Upgrading our vtiger instance gave me these additional warnings:

PHP Warning: Undefined array key 13 in vtigercrm\modules\Users\CreateUserPrivilegeFile.php on line 152

PHP Warning: Undefined array key 32 in vtigercrm\include\utils\UserInfoUtil.php on line 979

Installing 8.1 from scratch is free from warnings, it only happens with the upgrade.

I have searched forums but have not found this issue and was just wondering if you have noticed it on your vt instances?

Edited by Code80