upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Post Reply
CBoekhuis
Posts: 233
Joined: Tue Aug 16, 2011 4:55 am

upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by CBoekhuis »

Hi,

just ran the upgrdae from 2024R1.3.3 to 2024R1.3.4 on our test cluster. During the upgrade I get a php fatal error in /var/www/html/nagioslogserver/application/controllers/Install.php. Odly the cluster still seems to work and shows the new version number.
However, I'm not confident to do the upgrade on our production server without an explanation.

RHEL9
php 8.0.30-3.el9_6

upgrade.log shows no errors, but the following is from the commandline:

Code: Select all

> ./upgrade 
Upgrading on RedHatEnterpriseServer 9.6
Nagios Log Server Upgrade Log
==========================
DATE: Thu Jun 19 02:31:56 PM CEST 2025

DISTRO INFO:
RedHatEnterpriseServer
9.6
x86_64

Old Version: 3303
New Version: 3304

Updating Subscription Management repositories.
Last metadata expiration check: 1:13:47 ago on Thu 19 Jun 2025 01:18:11 PM CEST.
Package php-devel-8.0.30-3.el9_6.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Archive:  sourceguardian/loaders.linux-x86_64.zip
  inflating: /usr/lib64/php/modules/ixed.8.0.lin  
Sourceguardian extension found for PHP version 8.0
Sourceguardian extension already in php.ini
PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/nagioslogserver/application/config/config.local.php on line 12
Setting Elasticsearch to allow shard reallocation
Synchronizing state of elasticsearch.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable elasticsearch
Upgrading Kibana...
Kibana upgraded OK
PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/nagioslogserver/application/config/config.local.php on line 12
PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/nagioslogserver/application/controllers/Install.php:0
Stack trace:
#0 /var/www/html/nagioslogserver/system/core/CodeIgniter.php(532): Install->upgrade()
#1 /var/www/html/nagioslogserver/www/index.php(315): require_once('...')
#2 {main}
  thrown in /var/www/html/nagioslogserver/application/controllers/Install.php on line 0
Am I now in a corrupted state or is this ignorable?

Kind regards,
Hans Blom
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by jmichaelson »

You should be good; that's the last step in the upgrade process and its upgrading any schema changes to the data. there haven't been any for quite a while.
Please let us know if you have any other questions or concerns.

-Jason
CBoekhuis
Posts: 233
Joined: Tue Aug 16, 2011 4:55 am

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by CBoekhuis »

Thanks Jason :D
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by jmichaelson »

No problem. Let us know if you do end up having problems.
Please let us know if you have any other questions or concerns.

-Jason
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by rhassing »

I had the same error, but I'm not able to log in anymore :-(
Rob Hassing
Image
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Post by jmichaelson »

Hi, Rob. Do you happen to have the log file from your upgrade?
Please let us know if you have any other questions or concerns.

-Jason
Post Reply