BugReport
J’ai essayé de migrer sur ma dev en v4, mais j’ai des erreur de migrations.
- Installation debian vierge dans VM
- Installation Jeedom
- Restauration prod dans dev
- Passage en v4
Page concernée : (Dashboard,scénario etc…)
Version Core :
Etape pour reproduire le Bug :
[START UPDATE]
****Update from 3.3.19 (2019-05-19 17:21:38)****
Parameters : {"preUpdate":"0","backup::before":"0","plugins":"0","core":"1","force":"0","update::reapply":""}
Send begin of update event...OK
Check rights...
OK
Disable all task.
kill: (2307): No such process
.
.. OK
Disable all scenario.............................
............................ OK
Téléchargement de https://api.github.com/repos/jeedom/core/zipball/beta...
OK
Cleaning folders...OK
Create temporary folder...OK
Unzip in progress...
OK
Clean temporary files (tmp)...OK
Moving files...
OK
Remove temporary files...OK
Update system into : 3.4.0...Suppression theme /var/www/html/install/update/../../core/themes/amber/Suppression theme /var/www/html/install/update/../../core/themes/blue/Suppression theme /var/www/html/install/update/../../core/themes/blue_grey/Suppression theme /var/www/html/install/update/../../core/themes/bootable/Suppression theme /var/www/html/install/update/../../core/themes/brown/Suppression theme /var/www/html/install/update/../../core/themes/cerulean/Suppression theme /var/www/html/install/update/../../core/themes/cosmo/Suppression theme /var/www/html/install/update/../../core/themes/cyan/Suppression theme /var/www/html/install/update/../../core/themes/cyborg/Suppression theme /var/www/html/install/update/../../core/themes/darkly/Suppression theme /var/www/html/install/update/../../core/themes/darksobre/Suppression theme /var/www/html/install/update/../../core/themes/deep_orange/Suppression theme /var/www/html/install/update/../../core/themes/deep_purple/Suppression theme /var/www/html/install/update/../../core/themes/flatly/Suppression theme /var/www/html/install/update/../../core/themes/green/Suppression theme /var/www/html/install/update/../../core/themes/grey/Suppression theme /var/www/html/install/update/../../core/themes/indigo/Suppression theme /var/www/html/install/update/../../core/themes/jeedom/Suppression theme /var/www/html/install/update/../../core/themes/journal/Suppression theme /var/www/html/install/update/../../core/themes/light_blue/Suppression theme /var/www/html/install/update/../../core/themes/light_green/Suppression theme /var/www/html/install/update/../../core/themes/lime/Suppression theme /var/www/html/install/update/../../core/themes/lumen/Suppression theme /var/www/html/install/update/../../core/themes/orange/Suppression theme /var/www/html/install/update/../../core/themes/paper/Suppression theme /var/www/html/install/update/../../core/themes/pink/Suppression theme /var/www/html/install/update/../../core/themes/purple/Suppression theme /var/www/html/install/update/../../core/themes/readable/Suppression theme /var/www/html/install/update/../../core/themes/red/Suppression theme /var/www/html/install/update/../../core/themes/sandstorn/Suppression theme /var/www/html/install/update/../../core/themes/simplex/Suppression theme /var/www/html/install/update/../../core/themes/slate/Suppression theme /var/www/html/install/update/../../core/themes/spacelab/Suppression theme /var/www/html/install/update/../../core/themes/superhero/Suppression theme /var/www/html/install/update/../../core/themes/teal/Suppression theme /var/www/html/install/update/../../core/themes/united/Suppression theme /var/www/html/install/update/../../core/themes/yellow/Suppression theme /var/www/html/install/update/../../core/themes/yeti/OK
Update system into : 4.0.1...
OK
Update system into : 4.0.2...
PHP Notice: Accessing static property ttsWebServer::$_whatLog as non static in /var/www/html/plugins/ttsWebServer/core/class/ttsWebServer.class.php on line 246
PHP Fatal error: Uncaught Error: Call to a member function add() on null in /var/www/html/plugins/ttsWebServer/core/class/ttsWebServer.class.php:247
Stack trace:
#0 /var/www/html/core/class/DB.class.php(140): ttsWebServer->preSave()
#1 /var/www/html/core/class/eqLogic.class.php(921): DB::save(Object(ttsWebServer), false)
#2 /var/www/html/install/update/4.0.2.php(19): eqLogic->save()
#3 /var/www/html/install/update/4.0.2.php(27): replaceAndSaveFA5(Array)
#4 {main}
thrown in /var/www/html/plugins/ttsWebServer/core/class/ttsWebServer.class.php on line 247
OK
Update system into : 4.0.3...
Copy widget of plugin widget to jeedom custom widget dir...OK
Check jeedom consistency...[START CONSISTENCY]
[START CHECK AND FIX DB]
Fix : ALTER TABLE `cmd` DROP INDEX `unique`;
Fix : ALTER TABLE `cmd` DROP INDEX `isHistorized`;
Fix : ALTER TABLE `cmd` DROP INDEX `type`;
Fix : ALTER TABLE `cmd` DROP INDEX `name`;
Fix : ALTER TABLE `cmd` DROP INDEX `subtype`;
Fix : ALTER TABLE `cmd` DROP INDEX `eqLogic_id`;
Fix : ALTER TABLE `cmd` DROP INDEX `value`;
Fix : ALTER TABLE `cmd` DROP INDEX `order`;
Fix : ALTER TABLE `cmd` DROP INDEX `logicalID`;
Fix : ALTER TABLE `cmd` DROP INDEX `logicalId_eqLogicID`;
Fix : ALTER TABLE `cmd` MODIFY COLUMN `logicalId` varchar(255) NULL
Fix : ALTER TABLE `cmd` DROP `html`
Fix :
CREATE UNIQUE INDEX `unique` ON `cmd` (`eqLogic_id` ASC,`name` ASC)
Fix :
CREATE INDEX `isHistorized` ON `cmd` (`isHistorized` ASC)
Fix :
CREATE INDEX `type` ON `cmd` (`type` ASC)
Fix :
CREATE INDEX `name` ON `cmd` (`name` ASC)
Fix :
CREATE INDEX `subtype` ON `cmd` (`subType` ASC)
Fix :
CREATE INDEX `eqLogic_id` ON `cmd` (`eqLogic_id` ASC)
Fix :
CREATE INDEX `value` ON `cmd` (`value` ASC)
Fix :
CREATE INDEX `order` ON `cmd` (`order` ASC)
Fix :
CREATE INDEX `logicalID` ON `cmd` (`logicalId` ASC)
Fix :
CREATE INDEX `logicalId_eqLogicID` ON `cmd` (`eqLogic_id` ASC,`logicalId` ASC)
Fix : ALTER TABLE `interactDef` ADD `display` text NULL
Fix : ALTER TABLE `plan3dHeader` ADD `order` int(11) NULL
Fix : CREATE INDEX `order` ON `plan3dHeader` (`order` ASC)
Fix : ALTER TABLE `planHeader` ADD `order` int(11) NULL
Fix : CREATE INDEX `order` ON `planHeader` (`order` ASC)
Fix : ALTER TABLE `scenario` DROP `type`
Fix : CREATE TABLE IF NOT EXISTS `widgets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`type` varchar(27) NULL,
`subtype` varchar(27) NULL,
`template` varchar(255) NULL,
`display` text NULL,
`replace` text NULL,
`test` text NULL,
primary key(`id`))
ENGINE InnoDB;
CREATE UNIQUE INDEX `unique` ON `widgets` (`type` ASC,`subtype` ASC,`name` ASC)[END CHECK AND FIX DB]
Check jeedom database...OK
Create plugin::cron10
Check filesystem right...
OK
PHP Fatal error: Uncaught Error: Call to undefined function cleanComponanteName() in /var/www/html/core/class/cmd.class.php:2054
Stack trace:
#0 /var/www/html/plugins/virtual/core/class/virtual.class.php(238): cmd->setName('Sc\xC3\xA9nario Chauf...')
#1 /var/www/html/core/class/DB.class.php(144): virtualCmd->preSave()
#2 /var/www/html/core/class/cmd.class.php(939): DB::save(Object(virtualCmd))
#3 /var/www/html/install/consistency.php(401): cmd->save()
#4 /var/www/html/install/update.php(348): require_once('/var/www/html/i...')
#5 {main}
thrown in /var/www/html/core/class/cmd.class.php on line 2054