Results 1 to 3 of 3

Thread: Solution for PNP4Nagios blank pages on PHP 5.4 (Debian Wheezy)

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    1

    Solution for PNP4Nagios blank pages on PHP 5.4 (Debian Wheezy)

    Hi, I just wanted to post a quick heads up about anyone that would get stuck with blank pages when they try to load PNP4Nagios on Debian Wheezy after a quick install of Shinken.

    This is due to an incompatibility in the kohana framework used by PNP, and PHP 5.4

    The fix is here but the last lines of the patch are garbage.

    You can apply it with this one-liner, as root

    Code:
    cd /usr/local/pnp4nagios/lib/kohana; curl -L https://gist.github.com/kemo/2881489...29d95/fix.diff | head -n -8 | patch -p1 --reject-file=- --forward

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: Solution for PNP4Nagios blank pages on PHP 5.4 (Debian Wheezy)

    Thanks for sharing
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    3

    Re: Solution for PNP4Nagios blank pages on PHP 5.4 (Debian Wheezy)

    [quote author=klam link=topic=909.msg4969#msg4969 date=1368243031]
    Hi, I just wanted to post a quick heads up about anyone that would get stuck with blank pages when they try to load PNP4Nagios on Debian Wheezy after a quick install of Shinken.

    This is due to an incompatibility in the kohana framework used by PNP, and PHP 5.4

    The fix is here but the last lines of the patch are garbage.

    You can apply it with this one-liner, as root

    Code:
    cd /usr/local/pnp4nagios/lib/kohana; curl -L https://gist.github.com/kemo/2881489...29d95/fix.diff | head -n -8 | patch -p1 --reject-file=- --forward
    [/quote]
    Hi community. I'm a newbie here but i used shinken one year ago.
    Thanx for your sharing.
    Well after upgrading OS in Wheezy I also had blank error. I applied patch and now I can see graphs but I have an new error reporting in page :
    Code:
    Fatal error: Call to undefined method arr::get() in /usr/local/pnp4nagios/lib/kohana/system/core/Kohana.php on line 1670
    Do you have also this error ?
    Any solution ? (I look for in the web without result at this moment)

    EDIT : I find solution myself (finally !)

    resource : https://gist.github.com/kemo/2881489

    line 1670 of Kohana.php
    replace
    Code:
    $callback = arr::get(ob_list_handlers(), ob_get_level() - 1);
    by
    Code:
    //$callback = arr::get(ob_list_handlers(), ob_get_level() - 1);
                $_arr = ob_list_handlers();
    $callback = $_arr[ob_get_level() - 1];
    Now my graph page works fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •