Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765643 - net-analyzer/pnp4nagios: php 7.4 compatibility
Summary: net-analyzer/pnp4nagios: php 7.4 compatibility
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL: https://github.com/lingej/pnp4nagios/...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-01-16 15:31 UTC by onkobu
Modified: 2021-06-20 16:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description onkobu 2021-01-16 15:31:07 UTC
No graphs are rendered instead a (PHP) error message is shown: Function get_magic_quotes_runtime() is deprecated. Filed an issue in assumed GitHub project. Until then it seems safe to simply uncomment the if in line 57 and 64. The latter uses the other deprecated function.

Reproducible: Always

Steps to Reproduce:
1. Setup pnp4nagios and icinga2
2. have at least a single service with at least one numeric value
3. display service details in icingaweb2
Actual Results:  
No graphs are shown in service details or directly open pnp4nagios in browser: error message is shown.

Expected Results:  
Graphs are rendered correctly
Comment 1 Alex Dubenetsky 2021-02-16 13:54:56 UTC
I can confirm this issue also for nagios, 2 php func was deprecated since 7.4 and be removed from php 8.0.

Quick fix is also works: _comment_ lines from 57 to 68 in /usr/lib64/kohana/system/libraries/Input.php.
Comment 2 Larry the Git Cow gentoo-dev 2021-06-20 16:13:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f94cc0f46dbc761fb220af23abada6f310ecbcd

commit 5f94cc0f46dbc761fb220af23abada6f310ecbcd
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2021-06-19 15:34:21 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-06-20 16:13:01 +0000

    net-analyzer/pnp4nagios: add php 7.4 compatibility
    
    Closes: https://bugs.gentoo.org/708206
    Closes: https://bugs.gentoo.org/765643
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/21329
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../files/pnp4nagios-0.6.26-magic-quotes.patch     |  23 ++
 .../files/pnp4nagios-0.6.26-sizeof.patch           | 357 +++++++++++++++++++++
 .../pnp4nagios/pnp4nagios-0.6.26-r11.ebuild        | 104 ++++++
 3 files changed, 484 insertions(+)