Bug #14571
closed
PHP Error prevents LCDProc client from working properly due to empty VIP tags in config.xml
Added by Cino . over 1 year ago.
Updated over 1 year ago.
Description
Since the latest pfSense update, the LCDproc client is unable to connect to the LCDproc server. I can confirm LCDproc is running and controlling the display but the php client isn't connecting. I believe its due to the php update within pfsense itself
PHP ERROR: Type: 1, File: /usr/local/pkg/lcdproc_client.php, Line: 461, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/lcdproc_client.php:461
Stack trace:
#0 /usr/local/pkg/lcdproc_client.php(1146): outputled_carp()
#1 /usr/local/pkg/lcdproc_client.php(1403): loop_status(Resource id #47)
#2 {main}
Files
- Assignee set to Jim Pingle
- Subject changed from The LCDproc client isn't connecting to LCDproc server to PHP Error prevents LCDProc client from working properly due to empty VIP tags in config.xml
- Status changed from New to Feedback
- % Done changed from 0 to 100
Fixed in the new version of the package I just committed. Will be available once the package builds finish.
Seeing some errors when trying to use the Reboot or Shutdown functions from the LCD buttons:
Jul 13 22:04:29 php 46723 lcdproc: init REBOOT!
Jul 13 22:04:30 php 46723 /usr/local/pkg/lcdproc_client.php: PHP ERROR: Type: 64, File: /usr/local/www/includes/functions.inc.php, Line: 95, Message: Cannot redeclare cpu_usage() (previously declared in /usr/local/pkg/lcdproc_client.php:76)
Jul 13 22:04:30 php 46723 /usr/local/pkg/lcdproc_client.php: New alert found: PHP ERROR: Type: 64, File: /usr/local/www/includes/functions.inc.php, Line: 95, Message: Cannot redeclare cpu_usage() (previously declared in /usr/local/pkg/lcdproc_client.php:76)
Jul 13 22:05:41 LCDd 45886 Client on socket 6 disconnected
I've updated to the newest package and life is good again. thank you
- Status changed from Feedback to In Progress
- % Done changed from 100 to 90
I have some ideas on why the button calls are hitting that error, I'll work on it some more.
Good to know the other parts are working at least.
- Status changed from In Progress to Feedback
- % Done changed from 90 to 100
@Jim Pringle:
I installed the updated version of LCDProc on PFsense 2.7.0 and the service still refuses to start. Removed LCDProc, reboot, and reinstall but same result.
Soren Pedersen wrote in #note-7:
@Jim Pringle:
I installed the updated version of LCDProc on PFsense 2.7.0 and the service still refuses to start. Removed LCDProc, reboot, and reinstall but same result.
Do you get the same PHP error or something different?
- Status changed from Feedback to Resolved
The error as originally stated in this issue is solved. If you still have problems starting LCDProc, please post a new thread to follow up on the forum in the Packages category -- be sure to include any PHP errors that occur as well as any messages from LCDProc/LCDd found in the system log.
For the record, I now have an LCD with buttons and the fix I committed last week did correct the errors.
Also available in: Atom
PDF