Erreur Restore - PHP Fatal error: Uncaught TypeError: Unsupported operand types: string

Bonjour,

Je suis entrain de vouloir migrer mon Jeedom de Debian11 à Debian12.
Bien évidemment suppression et transformer des plugin pour ne conserver que les compatibles du market sauf celui de l’autologin utilisant le github (comme indiqué dans d’autres post).
Tous mes plugin sont à jour ainsi que Jeedom (comme toujours) avant cette migration.

Pour le détail, je suis sur proxmox dernière version v9x et j’ai tout simplement créé une nouvelle VM Debian12, installé de façon classique le debian, jeedom puis restore.

Je rencontre un problème lors du restore du jeedom, une erreur au niveau du plugin agenda PHP Fatal error qui me plante le restore.
Le plugin étant compatible debian 12.

Avez vous rencontré ce type de problème, que faire ?
Merci d’avance pour votre retour.

Voici le détail du log restore

0000|[START RESTORE]
0001|***************Begin Jeedom restore 2026-08-12 09:12:13***************
0002|Send begin restore event...OK
0003|Checking rights...OK
0004|Restore from file : /var/www/html/core/class/../../backup/backup-Jeedom-4.6.1-2026-08-12-09h02.tar.gz
0005|Backup database access configuration...OK
0006|Disable all task OK
0007|Disable all scenario OK
0008|Unpacking backup...OK
0009|Update composer file...
0010|OK
0011|[PROGRESS][58]
0012|Deleting database...Disabling constraints...OK
0013|Deleting table : cache ...OK
0014|Deleting table : cmd ...OK
0015|Deleting table : config ...OK
0016|Deleting table : cron ...OK
0017|Deleting table : dataStore ...OK
0018|Deleting table : eqLogic ...OK
0019|Deleting table : event ...OK
0020|Deleting table : history ...OK
0021|Deleting table : historyArch ...OK
0022|Deleting table : interactDef ...OK
0023|Deleting table : interactQuery ...OK
0024|Deleting table : listener ...OK
0025|Deleting table : message ...OK
0026|Deleting table : note ...OK
0027|Deleting table : object ...OK
0028|Deleting table : plan ...OK
0029|Deleting table : plan3d ...OK
0030|Deleting table : plan3dHeader ...OK
0031|Deleting table : planHeader ...OK
0032|Deleting table : queue ...OK
0033|Deleting table : scenario ...OK
0034|Deleting table : scenarioElement ...OK
0035|Deleting table : scenarioExpression ...OK
0036|Deleting table : scenarioSubElement ...OK
0037|Deleting table : timeline ...OK
0038|Deleting table : update ...OK
0039|Deleting table : user ...OK
0040|Deleting table : view ...OK
0041|Deleting table : viewData ...OK
0042|Deleting table : viewZone ...OK
0043|Deleting table : widgets ...OK
0044|Restoring database from backup...OK
0045|Enable back constraints...OK
0046|Restoring cache...OK
0047|Restoring Plugin: calendar...PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string * int in /var/www/html/plugins/calendar/core/class/calendar.class.php:939
0048|Stack trace:
0049|#0 /var/www/html/core/class/DB.class.php(339): calendar_event->postSave()
0050|#1 /var/www/html/plugins/calendar/core/class/calendar.class.php(919): DB::save()
0051|#2 /var/www/html/plugins/calendar/core/class/calendar.class.php(257): calendar_event->save()
0052|#3 /var/www/html/plugins/calendar/core/class/calendar.class.php(96): calendar->rescheduleEvent()
0053|#4 /var/www/html/install/restore.php(204): calendar::restore()
0054|#5 {main}
0055|thrown in /var/www/html/plugins/calendar/core/class/calendar.class.php on line 939

Bonjour,

Il est possible que ce problème est été corrigé en beta, si tu as la possibilité passe le plugin en beta.

1 « J'aime »

Bonjour,

Le tag du plugin est plugin-calendar :wink:

Avec le bon tag on retrouve un sujet récent similaire :

Je suis en train de faire une stable du plugin, la mise à jour devrait se présenter dans les minutes à venir.

1 « J'aime »

Merci @Aurelien ,
J’avais trouvé ce post mais il est fermé et je n’ai donc pas pu rebondir en donnant mes informations.

Si une mise à jour a lieu aujourd’hui, je pourrai essayer de nouveau la migration et l’action restore dans un premier temps pour confirmer que celle-ci va jusqu’au bout.
Dans tous les cas toujours très facile de revenir en arrière sur un environnement de virtualisation.
J’effectuerai la bascule complète en production fin de semaine prochaine.

La mise à jour du plugin est disponible en stable :
image

OK, je lance la mise à jour, le backup et le restore sur l’autre machine en debian12.
Je te tiens informé dans quelques minutes

Mon restore est allé jusqu’au bout mais il y a des warnings juste en dessous de la ligne plugin agenda, je ne sais pas si cela est lié à Agenda ou la suite du restore.

Restoring Plugin: calendar...OK
PHP Warning:  Trying to access array offset on value of type null in /var/www/html/core/class/system.class.php on line 431
sudo: yarn: command not found
PHP Warning:  Trying to access array offset on value of type null in /var/www/html/core/class/system.class.php on line 421

Full log

[START RESTORE]
***************Begin Jeedom restore 2026-08-12 11:30:38***************
Send begin restore event...OK
Checking rights...OK
Restore from file : /var/www/html/core/class/../../backup/backup-Jeedom-4.6.1-2026-08-12-11h28.tar.gz
Backup database access configuration...OK
Disable all task OK
Disable all scenario OK
Unpacking backup...OK
Update composer file...
OK
[PROGRESS][58]
Deleting database...Disabling constraints...OK
Deleting table : cache ...OK
Deleting table : cmd ...OK
Deleting table : config ...OK
Deleting table : cron ...OK
Deleting table : dataStore ...OK
Deleting table : eqLogic ...OK
Deleting table : event ...OK
Deleting table : history ...OK
Deleting table : historyArch ...OK
Deleting table : interactDef ...OK
Deleting table : interactQuery ...OK
Deleting table : listener ...OK
Deleting table : message ...OK
Deleting table : note ...OK
Deleting table : object ...OK
Deleting table : plan ...OK
Deleting table : plan3d ...OK
Deleting table : plan3dHeader ...OK
Deleting table : planHeader ...OK
Deleting table : queue ...OK
Deleting table : scenario ...OK
Deleting table : scenarioElement ...OK
Deleting table : scenarioExpression ...OK
Deleting table : scenarioSubElement ...OK
Deleting table : timeline ...OK
Deleting table : update ...OK
Deleting table : user ...OK
Deleting table : view ...OK
Deleting table : viewData ...OK
Deleting table : viewZone ...OK
Deleting table : widgets ...OK
Restoring database from backup...OK
Enable back constraints...OK
Restoring cache...OK
Restoring Plugin: calendar...OK
PHP Warning:  Trying to access array offset on value of type null in /var/www/html/core/class/system.class.php on line 431
sudo: yarn: command not found
PHP Warning:  Trying to access array offset on value of type null in /var/www/html/core/class/system.class.php on line 421
Check jeedom consistency...[START CONSISTENCY]
[START CHECK AND FIX DB]
[END CHECK AND FIX DB]
Check jeedom package...OK
Check jeedom database...OK
Check crons...

Check filesystem right...OK
Check jeedom object...OK
Check jeedom cmd...OK
Set cache hour...OK
Check composer...OK
Check nodejs...npm warn using --force Recommended protections disabled.
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.nodesource.com/node_22.x nodistro InRelease
Fetched 55.4 kB in 0s (201 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (12.0-1).
build-essential is already the newest version (12.9).
apt-utils is already the newest version (2.6.1).
git is already the newest version (1:2.39.5-0+deb12u3).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
[Check Version NodeJS actuelle : v22.23.2 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
Clean npm cache
OK
Check apache security file...[END CONSISTENCY]
OK
Enable scenario : OK
Enable task : OK
Check Network Conf : OK
Sending end restore event...OK
Restore duration : 49s
***************Jeedom Restore End***************
[END RESTORE SUCCESS]

penses tu @Aurelien que ce warning est encore lié au plugin agenda ?

Comme ça j’en sais rien, j’étais sur un autre sujet à l’origine que j’ai laissé de côté pour passer calendar en stable. Ca m’a déjà pris plus de temps que j’avais prévu même si j’en ai profité pour tester un truc au passage donc ça va mais je suis vite revenu à mon sujet d’origine. Je me le suis noté pour regarder après mes vacances mais pour le moment y’a rien de vraiment gênant en soi.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.