PHP Notice: Undefined variable: fullbody

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

PHP Notice: Undefined variable: fullbody

Post by balothia »

Hi Support,

I have issues while generating the PDF report through Nagios, i tried reinstalling the wkhtml once i went through the other post in support forum. But still it didnt worked. Below is complete error which i am getting the error_log.

Error: Failed loading page http://192.168.5.180/nagiosxi//reports/ ... cale=en_EN (sometimes it will work just to ignore this error with --load-error-handling ignore)
[Thu Jan 02 13:15:28 2014] [error] [client 192.168.10.48] PHP Notice: Undefined variable: fullbody in /usr/local/nagiosxi/html/reports/availability.php on line 1801, referer: http://10.0.206.29/nagiosxi/reports/ava ... vicegroup=
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PHP Notice: Undefined variable: fullbody

Post by abrist »

There was a bug with locales in previous versions. Update XI to 2012r2.7 and the issue should be resolved.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: PHP Notice: Undefined variable: fullbody

Post by balothia »

abrist wrote:There was a bug with locales in previous versions. Update XI to 2012r2.7 and the issue should be resolved.
Thanks for the note... let us try that and get back to you.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PHP Notice: Undefined variable: fullbody

Post by abrist »

np. Let us know if you have further issues.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: PHP Notice: Undefined variable: fullbody

Post by balothia »

I did a upgrade in out Nagios dev environment. After upgrade still the problem persist, I am attaching the screen shot for your reference.

Error_log after upgrade:

Error: Failed loading page http://192.168.5.180/nagiosxi//reports/ ... cale=en_US (sometimes it will work just to ignore this error with --load-error-handling ignore)
[Thu Jan 02 15:18:19 2014] [error] [client 192.168.10.48] PHP Notice: Undefined variable: fullbody in /usr/local/nagiosxi/html/reports/execsummary.php on line 435, referer: http://10.0.206.29/nagiosxi/reports/exe ... vicegroup=
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PHP Notice: Undefined variable: fullbody

Post by abrist »

1) Is that error written to the log on viewing of the report, or on generation of the pdf?
2) Are you attempting a scheduled report, or just trying to save the pdf from the browser?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: PHP Notice: Undefined variable: fullbody

Post by balothia »

The error is recorded in error_log file of apache, there is no error seen on nagios console. I am just trying to download the report in pdf format, I am not scheduling any report.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PHP Notice: Undefined variable: fullbody

Post by lmiltchev »

What do you have in the "Program URL" and "External URL" fields under "System Settings" (Admin->Manage System Config)? Can this URL resolve on the Nagios XI server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
balothia
Posts: 68
Joined: Sun Dec 08, 2013 10:25 am

Re: PHP Notice: Undefined variable: fullbody

Post by balothia »

Thanks the problem was the Program URL, this has resolved our issue in Nagios development environment. We will try to implement same for production.
Locked