Project

General

Profile

Actions

Bug #14419

closed

PHP error when trying to access pfBlockerNG configuration

Added by Marcos M about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
pfBlockerNG
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
23.05
Affected Architecture:
All

Description

[25-May-2023 10:56:27 US/Eastern] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pkg_edit.php:675
Stack trace:
#0 {main}
  thrown in /usr/local/www/pkg_edit.php on line 675

config.xml contains:

        <menu>
            <name>pfBlockerNG</name>
            <configfile>pfblockerng.xml</configfile>
            <section>Firewall</section>
            <url>/pkg_edit.php?xml=pfblockerng.xml</url>
        </menu>

After reinstalling the package, the error no longer occurs and config.xml contains:

        <menu>
            <name>pfBlockerNG</name>
            <section>Firewall</section>
            <url>/pfblockerng/pfblockerng_general.php</url>
        </menu>

Actions #1

Updated by Marcos M about 1 year ago

  • Status changed from New to Closed

With the move to pfBlockerNG v3 (from v2), pfblockerng.xml is no longer used to define the package GUI. The error is due to the navigation menu options being defined with the old package version while the new version is installed. This can happen if the browser had the page cached.

Actions

Also available in: Atom PDF