Actions
Bug #14484
closedlldpd php error on saving with no interface selected
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
23.05
Affected Architecture:
All
Description
use ctrl + click and deselect any interface (previously) highlighted and attempt to save lldpd settings
Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/www/lldpd_settings.php:44 Stack trace: #0 /usr/local/www/lldpd_settings.php(44): implode(',', NULL) #1 {main} thrown in /usr/local/www/lldpd_settings.php on line 44 PHP ERROR: Type: 1, File: /usr/local/www/lldpd_settings.php, Line: 44, Message: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/www/lldpd_settings.php:44 Stack trace: #0 /usr/local/www/lldpd_settings.php(44): implode(',', NULL) #1 {main} thrown
PHP ERROR: Type: 1, File: /usr/local/www/lldpd_settings.php, Line: 44, Message: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/www/lldpd_settings.php:44 Stack trace: #0 /usr/local/www/lldpd_settings.php(44): implode(',', NULL) #1 {main}
Files
Updated by Lev Prokofev 9 months ago
I can reproduce it on 23.05.1, probably the "No interface selected" warning message is needed here.
PHP ERROR: Type: 1, File: /usr/local/www/lldpd_settings.php, Line: 44, Message: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/www/lldpd_settings.php:44 Stack trace: #0 /usr/local/www/lldpd_settings.php(44): implode(',', NULL) #1 {main} thrown
Updated by Jim Pingle 9 months ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
I pushed a fix, it is building now and will be available shortly in lldpd pkg version 0.9.11_2 on Plus 23.05.1 and CE 2.7.0, and dev snapshots whenever the next build happens.
Updated by aleksei prokofiev 9 months ago
Tested on 23.05.1 and 2.7.0
lldpd 0.9.11_2
looks fine, the warning message is presented
Actions