You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hello, I have the following crash reports with the new pfSense version 2.7.0 after installing the API. I have tested with two pfSense instances. Unfortunately both times the same error. The API can be used "normally" after the installation. However, after creating a new API token, a PHP error message also appears in the webui.
To Reproduce
Steps to reproduce the behavior:
Install the API via the Webui -> Command Prompt
Reload the Webui
See the Crash Report
Expected behavior
A normal install of the API without any crash report or php error-messages
Thanks for reporting this. This looks like a regression in the API sync feature due to the changes in PHP 8 introduced in pfSense 2.7. I'll work on a patch and see what I can do to improve tests for the sync feature in the future.
Describe the bug
Hello, I have the following crash reports with the new pfSense version 2.7.0 after installing the API. I have tested with two pfSense instances. Unfortunately both times the same error. The API can be used "normally" after the installation. However, after creating a new API token, a PHP error message also appears in the webui.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A normal install of the API without any crash report or php error-messages
pfSense Version & Package Version:
Additional context
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-REL
Crash report details:
PHP Errors:
[19-Jul-2023 11:08:53 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/api/framework/APITools.inc:1136
Stack trace:
#0 /etc/inc/api/framework/APITools.inc(1174): APITools\api_request('https://10.252....', 'PUT', '{"enable":"","p...', 'anka-gw-02-sync', '###############')
#1 /usr/local/share/pfSense-pkg-API/manage.php(82): APITools\sync()
#2 /usr/local/share/pfSense-pkg-API/manage.php(161): sync()
#3 {main}
thrown in /etc/inc/api/framework/APITools.inc on line 1136
The text was updated successfully, but these errors were encountered: