[BACKUPFILE] Error generated if no source package exist in install manager source packages directory #1

Closed
opened 2020-12-07 14:45:21 +01:00 by Ghost · 3 comments

If no package exist in data/upload/install/packagesrc, the backupfile and installmanager generate an error :

Fichier : /home/rooty/Documents/Qware_core/lib/package/backup/backupfile.php ERREUR de niveau 3 เ la ligne 87
UTILISATEUR:BackUpFile:chemin non valide ./data/upload/install/packagesrc/
Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 2 เ la ligne 154
PHP:count(): Parameter must be an array or an object that implements Countable
Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 8 เ la ligne 156
PHP:Trying to access array offset on value of type bool
Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 8 เ la ligne 156
PHP:Trying to access array offset on value of type null
Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 2 เ la ligne 154
PHP:count(): Parameter must be an array or an object that implements Countable
If no package exist in data/upload/install/packagesrc, the backupfile and installmanager generate an error : ``` Fichier : /home/rooty/Documents/Qware_core/lib/package/backup/backupfile.php ERREUR de niveau 3 เ la ligne 87 UTILISATEUR:BackUpFile:chemin non valide ./data/upload/install/packagesrc/ Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 2 เ la ligne 154 PHP:count(): Parameter must be an array or an object that implements Countable Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 8 เ la ligne 156 PHP:Trying to access array offset on value of type bool Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 8 เ la ligne 156 PHP:Trying to access array offset on value of type null Fichier : /home/rooty/Documents/Qware_core/lib/object_coordination/installmanager/installmanager.php ERREUR de niveau 2 เ la ligne 154 PHP:count(): Parameter must be an array or an object that implements Countable ```
Ghost added the
bug
master
labels 2020-12-07 14:45:21 +01:00
Author

This issue requires to modify the backupfile object source code to implement the case the directory is not existing or empty. It should be great to implement the creation of the directory directly in the installer too.

This issue requires to modify the backupfile object source code to implement the case the directory is not existing or empty. It should be great to implement the creation of the directory directly in the installer too.
Author

Issue fixed. Added a condition check on packages sources install directory in installmanager coordination object through the return of getContentDir() from backup package.

Issue fixed. Added a condition check on packages sources install directory in installmanager coordination object through the return of getContentDir() from backup package.
Ghost added the
fixed
label 2020-12-07 16:28:14 +01:00
Ghost referenced this issue from a commit 2020-12-07 16:29:11 +01:00
Author

Pushed to master.

Pushed to master.
Ghost closed this issue 2020-12-07 16:29:56 +01:00
Sign in to join this conversation.
No description provided.