Actions
Anomalie #14201
ferméErreur Migration contacts 19.04 -> 20.03.5 (migrate.sh)
Début:
19/06/2020
Echéance:
Description
Voici l'erreur constaté lors du passage du script migrate.sh :
root@MaarchCourrier:/var/www/html/MaarchCourrier/migration/20.03# php ./migrateContacts.php
Parse error: syntax error, unexpected ')', expecting ']' in /var/www/html/MaarchCourrier/migration/20.03/migrateContacts.php on line 414
root@MaarchCourrier:/var/www/html/MaarchCourrier/migration/20.03# nano /var/www/html/MaarchCourrier/migration/20.03/migrateContacts.php
root@MaarchCourrier:/var/www/html/MaarchCourrier/migration/20.03# php ./migrateContacts.php
Temps copy contacts = 0.084574937820435
Temps migrate custom fields = 22.156241178513
Temps updates = 0.21814393997192 secondes
Dernière Migration En cours : 25.30357503891 secondes.
3196 contact(s) migré(s) - Fin...
int(2)
resource(25) of type (pgsql link)
Fatal error: Uncaught Exception: Argument login is empty in /var/www/html/MaarchCourrier/src/core/models/ValidatorModel.php:28
Stack trace:
#0 /var/www/html/MaarchCourrier/src/app/user/models/UserModelAbstract.php(150): SrcCore\models\ValidatorModel::notEmpty(Array, Array)
#1 /var/www/html/MaarchCourrier/migration/20.03/migrateContacts.php(599): User\models\UserModelAbstract::getByLogin(Array)
#2 /var/www/html/MaarchCourrier/migration/20.03/migrateContacts.php(419): migrateResletterbox_Users(Array)
#3 {main}
thrown in /var/www/html/MaarchCourrier/src/core/models/ValidatorModel.php on line 28
Voici la solution temporaire proposé dans le fichier migrateContacts.php :
migrateContactRes_Users(['firstManId' => $firstMan[0]['id'], 'databaseConnection' => $databaseConnection]);
//migrateResletterbox_Users(['firstManId' => $firstMan[0]['id'], 'databaseConnection' => $databaseConnection]);
migrateResattachments_Users(['firstManId' => $firstMan[0]['id']]);
migrateContactParameters();
Actions