Project

General

Profile

Bug #8492

Migration 1.10.8 vers 1.11.2

Added by François-Xavier CARBONNE about 4 years ago. Updated about 4 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Installation / Migration
Target version:
Start date:
22/11/2016
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Bonjour,

Lors de la migration de la version 1.10.8 vers 1.11.2, j'ai suivi à la lettre le tuto et j'ai l'erreur suivante en étape n° 7 :

Fatal error: Call to a member function setContent() on null in /home/............/public_html/........../app/Migrations/Schema/V111/Version20160804174600.php on line 659

Merci d'avance.

La ligne 659 correspond à :

$templates = [
'TemplateTitleCourseTitle' => $templateTitleCourseTitle,
'TemplateTitleTeacher' => $templateTitleTeacher,
'TemplateTitleLeftList' => $templateTitleLeftList,
'TemplateTitleLeftRightList' => $templateTitleLeftRightList,
'TemplateTitleRightList' => $templateTitleRightList,
'TemplateTitleDiagram' => $templateTitleDiagram,
'TemplateTitleDesc' => $templateTitleDesc,
'TemplateTitleCycle' => $templateTitleCycle,
'TemplateTitleTimeline' => $templateTitleTimeline,
'TemplateTitleTable' => $templateTitleTable,
'TemplateTitleAudio' => $templateTitleAudio,
'TemplateTitleVideo' => $templateTitleVideo,
'TemplateTitleFlash' => $templateTitleFlash
];
foreach ($templates as $title => $content) {
/** @var SystemTemplate $tpl */
$tpl = $em
>getRepository('ChamiloCoreBundle:SystemTemplate')
->findOneBy(['title' => $title]);
$tpl
>setContent($content);
$em->merge($tpl);
}
$em->flush();
}
/**

History

#1

Updated by Yannick Warnier about 4 years ago

  • Category set to Installation / Migration
  • Status changed from New to Assigned
  • Assignee set to Julio Montoya
  • Priority changed from Urgent to Normal
#2

Updated by Yannick Warnier about 4 years ago

  • Target version changed from 1.11.2 to 1.11.4
#3

Updated by François-Xavier CARBONNE about 4 years ago

( ! ) Fatal error: Uncaught Error: Call to a member function setContent() on null in /home/carbonne/public_html/eformation/app/Migrations/Schema/V111/Version20160804174600.php on line 659
( ! ) Error: Call to a member function setContent() on null in /home/carbonne/public_html/eformation/app/Migrations/Schema/V111/Version20160804174600.php on line 659
Call Stack
  1. Time Memory Function Location
    1 0.0001 385720 {main}( ) .../index.php:0
    2 0.0081 1613256 migrateSwitch( ) .../index.php:748
    3 0.0082 1614576 migrate( ) .../install.lib.php:3005
    4 0.0322 1936552 Doctrine\DBAL\Migrations\Migration->migrate( ) .../install.lib.php:2068
    5 0.0350 1937568 Doctrine\DBAL\Migrations\Version->execute( ) .../Migration.php:176
    6 0.3613 5536688 Application\Migrations\Schema\V111\Version20160804174600->up( ) .../Version.php:270

Also available in: Atom PDF