Skip to main content
Question

PHP Warning: Undefined variable $paramString

  • June 23, 2023
  • 7 replies
  • 168 views

Forum|alt.badge.img+1

Bonjour,
Utilisateur de clapi j’ai remarquĂ© que lorsque j’utilisais getparam sur les services j’ai l’erreur:

PHP Warning:  Undefined variable $paramString in /usr/share/centreon/www/class/centreon-clapi/centreonService.class.php on line 579

 

Je suis allĂ© voir dans le fameux fichier php et la variable paramstring n’est pas dĂ©fini selon mes maigres connaissances.
C’est non bloquant mais pour Ă©viter Ă  l’erreur de s’afficher Ă  chaque ligne de commande j’ai dĂ©fini la variable.

L’erreur vient de moi ou c’est un oubli ?

Bonne journée :)
 

7 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • June 23, 2023

👋

@tdsbaa

 Have you tried an update and see if continues to be an issue. If the update doesn’t change the result, which version are you on?


Forum|alt.badge.img+1
  • Author
  • Steward *
  • June 27, 2023

I will update centreon on 23.04 in the summer. I’m on 22.10.5 now.
Thank you for your quick response.


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • June 28, 2023

I see it, I’ll ask around for the PR 😁😉


Forum|alt.badge.img+1
  • Author
  • Steward *
  • June 29, 2023

As a workaround, i defined Paramstring=”” and no error for the moment


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • June 29, 2023

You might be interested in

https://github.com/centreon/centreon-archived/pull/11439

For now. ( not official ) 

đŸ€ž


Forum|alt.badge.img+1
  • Author
  • Steward *
  • July 3, 2023

Thank you, it’s a better workaround than mine!


Hi,

I know warnings isn’t bugs but it would be nice if this fix may be applied to the 22.10 branch too.

This is annoying to have to use grep o get rid of all this garbage every times when looking at the log file when searching for something.
Â