Project

General

Profile

Anomalie #14201

Erreur Migration contacts 19.04 -> 20.03.5 (migrate.sh)

Added by Antoine HAGUES almost 2 years ago. Updated 12 months ago.

Status:
Développé / Analysé (S)
Priority:
1-Majeur
Assignee:
Damien BUREL
Target version:
Start date:
06/19/2020
Due date:
Tags Courrier:
20.03.6 (Publié)

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();
~~~

History

#1 Updated by Support Maarch almost 2 years ago

  • Status changed from A qualifier to A traiter

#2 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from A traiter to Prêt à développer
  • Assignee changed from EDI PO to Maarch Courrier DEV TEAM
  • Priority changed from 0-Bloquant to 1-Majeur
  • Target version changed from Inscription Backlog Courrier to 20.03 (Support restreint)

#3 Updated by Emmanuel DILLARD almost 2 years ago

  • Status changed from Prêt à développer to 17
  • Assignee changed from Maarch Courrier DEV TEAM to Antoine HAGUES

Merci de joindre un lien vers la base (Drive ou Firefox Send)

#5 Updated by Emmanuel DILLARD almost 2 years ago

  • Project changed from Backlog to CURRENT SPRINT
  • Status changed from 17 to En cours de dev (S)
  • Assignee changed from Antoine HAGUES to EDI PO

#6 Updated by Emmanuel DILLARD almost 2 years ago

  • Tags Courrier 20.03.6 (15/07) added

#7 Updated by Florian AZIZIAN almost 2 years ago

  • Assignee deleted (EDI PO)

#8 Updated by Damien BUREL almost 2 years ago

  • Assignee set to Damien BUREL

#9 Updated by Damien BUREL almost 2 years ago

  • Status changed from En cours de dev (S) to Développé / Analysé (S)

#10 Updated by Emmanuel DILLARD almost 2 years ago

  • Project changed from CURRENT SPRINT to Backlog

#11 Updated by Emmanuel DILLARD almost 2 years ago

  • Tags Courrier 20.03.6 (Publié) added
  • Tags Courrier deleted (20.03.6 (15/07))

#12 Updated by Emmanuel DILLARD 12 months ago

  • Project changed from Backlog to Backlog Courrier
  • Target version changed from 20.03 (Support restreint) to 20.03 (Restreint)

Also available in: Atom PDF