Project

General

Profile

Actions

Regression #13663

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

WIFI interface configuration creates invalid xml

Added by Steve Wheeler over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Wireless
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
2.7.x
Affected Architecture:
All

Description

Saving the config for a wifi interface creates a bad config file causing it to be rejected and rolled back:

Nov 15 14:35:10     php-fpm     66987     /interfaces.php: Configuration Change: admin@172.21.16.8 (Local Database): Interfaces settings changed
Nov 15 14:35:10     php-fpm     66987     /interfaces.php: XML error: > required at line 2979 in /conf/config.xml
Nov 15 14:35:10     php-fpm     66987     /interfaces.php: Netgate pfSense Plus is restoring the configuration /cf/conf/backup/config-1668522748.xml
Nov 15 14:35:10     php-fpm     66987     /interfaces.php: New alert found: Netgate pfSense Plus is restoring the configuration /cf/conf/backup/config-1668522748.xml

The invalid line create is in the wireless section:

    <wireless>
        <clone>
            <if>ath0</if>
            <mode>hostap</mode>
            <descr><![CDATA[WPEA-127N]]></descr>
            <cloneif>ath0_wlan0</cloneif>
            <mode)>hostap</mode)>
        </clone>
        <interfaces>
            <ath0>
                <standard>11ng</standard>
                <protmode>off</protmode>
                <channel>13</channel>
                <distance></distance>
                <regdomain></regdomain>
                <regcountry>GB</regcountry>
                <reglocation>indoor</reglocation>
            </ath0>
        </interfaces>
    </wireless>

Actions

Also available in: Atom PDF