Skip to main content
Solved

problème migration de centreon 21.04 vers 22.04 centos vers alma linux

  • August 30, 2022
  • 4 replies
  • 170 views

Forum|alt.badge.img+1

Bonjour,

 

 

Best answer by lpinsivy

Hi @Troy3ns we find a bug in our source.

Can you edit the /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php file at line 289 and change this bloc:

    private function isSqlComment(string $line): bool
{
return str_starts_with(trim($line), '--');
}

Then refresh your page (Ctrl + F5)

Regards

4 replies

Forum|alt.badge.img+1
  • Author
  • Steward *
  • August 30, 2022

 


cmeschin
Centreonian
Forum|alt.badge.img+9
  • Centreonian
  • September 1, 2022

Hi @Troy3ns 

can you try this fix (last post): 

please?


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Answer
  • September 1, 2022

Hi @Troy3ns we find a bug in our source.

Can you edit the /usr/share/centreon/src/Core/Platform/Infrastructure/Repository/DbWriteUpdateRepository.php file at line 289 and change this bloc:

    private function isSqlComment(string $line): bool
{
return str_starts_with(trim($line), '--');
}

Then refresh your page (Ctrl + F5)

Regards


Forum|alt.badge.img+1
  • Author
  • Steward *
  • September 1, 2022

Hello,

thanks you for your reply @Laurent  @cmeschin  🙃

problem solved !