Bug #8780
closedApcupsd PHP errors in 2.4.4 snapshot
0%
Description
I did an upgrade from 2.4.3 to 2.4.4 and recieved a bunch of errors for APCUPSD,
Crash report begins. Anonymous machine information:
amd64
11.2-RELEASE-p1
FreeBSD 11.2-RELEASE-p1 #61 349c67ad08d(RELENG_2_4_4): Sat Aug 11 18:14:44 EDT 2018 root@buildbot3:/builder/crossbuild-ce-master/obj/amd64/FWJoMRHc/builder/crossbuild-ce-master/pfSense/tmp/FreeBSD-src/sys/pfSense
Crash report details:
PHP Errors:
[13-Aug-2018 02:44:29 Asia/Kolkata] PHP Warning: Illegal string offset 'vip' in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 912
[13-Aug-2018 02:44:29 Asia/Kolkata] PHP Warning: Illegal string offset 'vip' in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 915
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant killpower - assumed 'killpower' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 26
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant commfailure - assumed 'commfailure' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 27
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant commok - assumed 'commok' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 28
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant onbattery - assumed 'onbattery' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 29
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant offbattery - assumed 'offbattery' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 30
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant failing - assumed 'failing' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 31
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant timeout - assumed 'timeout' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 32
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant loadlimit - assumed 'loadlimit' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 33
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant runlimit - assumed 'runlimit' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 34
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant doreboot - assumed 'doreboot' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 35
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant doshutdown - assumed 'doshutdown' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 36
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant annoyme - assumed 'annoyme' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 37
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant emergency - assumed 'emergency' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 38
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant changeme - assumed 'changeme' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 39
[13-Aug-2018 02:44:45 Asia/Kolkata] PHP Warning: Use of undefined constant remotedown - assumed 'remotedown' (this will throw an Error in a future version of PHP) in /usr/local/pkg/apcupsd_mail.php on line 40
No FreeBSD crash data found.
Updated by Jim Pingle over 6 years ago
- Assignee set to Jim Pingle
I'll take this, I need to look over the UPS packages anyhow.
Updated by Jim Pingle over 6 years ago
- Status changed from New to Feedback
Errors relevant to apcupsd are now fixed in commit:6b631073482b (apcupsd pkg version 0.3.91_4)
Tested and working, mail notifications did not cause any PHP errors.
Updated by Anonymous almost 6 years ago
There is no way to test this, without an instance of pfSense already running 2.4.3 with apcupsd already installed.
WARNING: Current pkg repository has a new PHP major version. pfSense should be upgraded before installing any new package. Failed
Updated by Jim Pingle almost 6 years ago
It wasn't really the upgrade that did anything. Only need to test apcupsd on 2.4.4 or later to make sure there are no errors.
Updated by Anonymous almost 6 years ago
- Status changed from Feedback to Resolved
Got it. Tested on 2.4.5.a.20190201.0810 with apcupsd version 0.3.91_4, no issues.