Project

General

Profile

Actions

Bug #5537

closed

Editing PPP interface causes PHP error

Added by Anonymous almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
11/25/2015
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:

Description

This is pretty easy to reproduce, navigate to "Interfaces" -> "(assign)" -> PPPs. Edit or add an interface of type PPPoE.

The edit page loads with all the right settings except the password field is empty, when the page is saved without a newly entered password an input error is displayed, along with a really long list of PHP errors. Not sure what the behaviour is supposed to be. Is the password is supposed to be loaded or should it behave like the edit user page? I have attached a screen shot of the error and details of the PHP errors are below.

This also happens when a new PPPoE interface is added but I would expect that behaviour (minus the PHP errors).

This is the php error, a screen shot is attached:
Warning: explode() expects parameter 2 to be string, array given in /usr/local/www/interfaces_ppps_edit.php on line 555 Call Stack: 0.0002 337664 1. {main}() /usr/local/www/interfaces_ppps_edit.php:0 0.8543 9487712 2. build_link_list() /usr/local/www/interfaces_ppps_edit.php:619 0.8543 9513000 3. explode() /usr/local/www/interfaces_ppps_edit.php:555 Warning: in_array() expects parameter 2 to be array, null given in /usr/local/www/interfaces_ppps_edit.php on line 589 Call Stack: 0.0002 337664 1. {main}() /usr/local/www/interfaces_ppps_edit.php:0 0.8543 9487712 2. build_link_list() /usr/local/www/interfaces_ppps_edit.php:619 0.8548 9513320 3. in_array() /usr/local/www/interfaces_ppps_edit.php:589 Warning: in_array() expects parameter 2 to be array, null given in /usr/local/www/interfaces_ppps_edit.php on line 589 Call Stack: 0.0002 337664 1. {main}() /usr/local/www/interfaces_ppps_edit.php:0 0.8543 9487712 2. build_link_list() /usr/local/www/interfaces_ppps_edit.php:619 0.8551 9513504 3. in_array() /usr/local/www/interfaces_ppps_edit.php:589 Warning: in_array() expects parameter 2 to be array, null given in /usr/local/www/interfaces_ppps_edit.php on line 589 Call Stack: 0.0002 337664 1. {main}() /usr/local/www/interfaces_ppps_edit.php:0 0.8543 9487712 2. build_link_list() /usr/local/www/interfaces_ppps_edit.php:619 0.8553 9513688 3. in_array()


Files

Selection_005.jpg (1.04 MB) Selection_005.jpg Anonymous, 11/25/2015 06:44 PM
Actions

Also available in: Atom PDF