Skip to main content
Solved

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

  • Aug 30, 2022 7:22 PM UTC
  • 4 replies
  • 213 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

View original

4 replies

Forum|alt.badge.img+1
  • Author
  • Steward *
  • Aug 30, 2022 7:48 PM UTC

 


cmeschin
Centreonian
Forum|alt.badge.img+9
  • Centreonian
  • Sep 1, 2022 7:47 AM UTC

Hi @Troy3ns 

can you try this fix (last post): 

please?


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Answer
  • Sep 1, 2022 7:50 AM UTC

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 *
  • Sep 1, 2022 10:29 AM UTC

Hello,

thanks you for your reply @Laurent  @cmeschin  🙃

problem solved !