Project

General

Profile

Actions

Bug #14426

closed

PHP errors in Lightsquid

Added by Jonathan Lee 11 months ago. Updated 7 months ago.

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

100%

Estimated time:
Plus Target Version:
23.05.1
Affected Version:
All
Affected Plus Version:
23.01
Affected Architecture:
All

Description

PHP errors
PHP ERROR: Type: 1, File: /usr/local/www/sqstat/sqstat.php, Line: 137, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/sqstat/sqstat.php:137
Stack trace:
#0 /usr/local/www/sqstat/sqstat.php(63): sqstat_resultHTML('')
#1 /usr/local/www/sqstat/sqstat.php(38): sqstat_AJAX_response(Array)
#2 {main}
thrown 2023-05-27 10:40:11
PHP ERROR: Type: 1, File: /usr/local/www/sqstat/sqstat.php, Line: 137, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/sqstat/sqstat.php:137
Stack trace:
#0 /usr/local/www/sqstat/sqstat.php(63): sqstat_resultHTML('')
#1 /usr/local/www/sqstat/sqstat.php(38): sqstat_AJAX_response(Array)
#2 {main}
thrown
2023-05-27 10:40:14


Files

Screenshot 2023-05-27 at 10.44.03 AM.png (737 KB) Screenshot 2023-05-27 at 10.44.03 AM.png Error Jonathan Lee, 05/27/2023 05:44 PM
Screenshot 2023-06-08 at 1.42.35 PM.png (369 KB) Screenshot 2023-06-08 at 1.42.35 PM.png Error on ARM RISC Netgate 2100-MAX Jonathan Lee, 06/08/2023 08:42 PM
PHP_errors.log (370 Bytes) PHP_errors.log Log Jonathan Lee, 06/08/2023 08:44 PM
PHP_errors.log (372 Bytes) PHP_errors.log Wil M, 06/28/2023 09:27 PM
PHP_errors (3).log (2.53 KB) PHP_errors (3).log Logs for 23.05.1 Jonathan Lee, 07/07/2023 06:15 PM
Actions #1

Updated by Kris Phillips 11 months ago

Unable to reproduce on amd64 on 23.05-RELEASE. Possibly an aarch64/ARM only problem.

Actions #2

Updated by Jonathan Lee 11 months ago

2100-MAX

Crash report begins. Anonymous machine information:

arm64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 plus-RELENG_23_05-n256102-7cd3d043045: Mon May 22 15:31:56 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_05-main/obj/aarch64/x3UPdyyG/var/jenkins/workspace/pfSense-Plus-snapshots-23_05-main/sources/Free

Crash report details:

PHP Errors:
[08-Jun-2023 12:12:33 US/Pacific] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/sqstat/sqstat.php:137
Stack trace:
#0 /usr/local/www/sqstat/sqstat.php(63): sqstat_resultHTML('')
#1 /usr/local/www/sqstat/sqstat.php(38): sqstat_AJAX_response(Array)
#2 {main}
thrown in /usr/local/www/sqstat/sqstat.php on line 137

RISC:

ARM Cortex-A53 r0p4
2 CPUs :
CPU 0: ARM Cortex-A53 r0p4 affinity: 0
CPU 1: ARM Cortex-A53 r0p4 affinity: 1

Actions #3

Updated by Jonathan Lee 11 months ago

Actions #4

Updated by Wil M 10 months ago

Hi, it is happening in 4100 too.

Crash report begins. Anonymous machine information:

amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 plus-RELENG_23_05-n256102-7cd3d043045: Mon May 22 15:33:52 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_05-main/obj/amd64/LkEyii3W/var/jenkins/workspace/pfSense-Plus-snapshots-23_05-main/sources/FreeBS

Crash report details:

PHP Errors:
[28-Jun-2023 13:13:09 America/Lima] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/sqstat/sqstat.php:137
Stack trace:
#0 /usr/local/www/sqstat/sqstat.php(63): sqstat_resultHTML('')
#1 /usr/local/www/sqstat/sqstat.php(38): sqstat_AJAX_response(Array)
#2 {main}
thrown in /usr/local/www/sqstat/sqstat.php on line 137

No FreeBSD crash data found.

Actions #5

Updated by Jonathan Lee 10 months ago

This occurs with 23.05.1 also

Attached is logs

Actions #6

Updated by Marcos M 8 months ago

  • Category changed from Squid to Lightsquid
  • Affected Architecture All added
  • Affected Architecture deleted (SG-2100)
Actions #7

Updated by Marcos M 8 months ago

  • Subject changed from PHP errors in 23.05 Package/Squid/Realtime Stats (SQStat) viewing to PHP errors in Lightsquid
  • Status changed from New to Pull Request Review
  • Assignee set to Marcos M
  • Plus Target Version set to 23.05.1
  • Affected Plus Version changed from 23.05 to 23.01
Actions #8

Updated by Jim Pingle 8 months ago

  • Status changed from Pull Request Review to Resolved
  • % Done changed from 0 to 100

The PR was merged.

Actions #9

Updated by Jonathan Lee 7 months ago

Thank you!!!

Actions

Also available in: Atom PDF