-
-
Notifications
You must be signed in to change notification settings - Fork 126
Closed as not planned
Closed as not planned
Copy link
Labels
StaletroubleshootingIssues that are troubleshooting requests or need troubleshooting before proceedingIssues that are troubleshooting requests or need troubleshooting before proceeding
Description
Describe the bug
After installing the restapi package on our pfsense instance we get a crash report and the package doesn't work.
To Reproduce
Steps to reproduce the behavior:
- Install plugin via command line:
pkg-static add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.7.2-pkg-RESTAPI.pkg
- Go to pfSense dashboard or to System -> REST API
Expected behavior
No crash report and System -> REST API working without errors
Screenshots or Response
This is the crash report:
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec 6 20:45:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F
Crash report details:
PHP Errors:
[28-Apr-2025 10:03:16 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Core/Form.inc(142): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Caches/PrivilegesCache.inc(30): RESTAPI\Core\Form->__construct()
#9 /usr/local/pkg/RESTAPI/Core/Cache.inc(68): RESTAPI\Caches\PrivilegesCache->get_data_to_cache()
#10 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(94): RESTAPI\Core\Cache->process()
#11 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(53): build_privs()
#12 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(430): build_endpoints()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:03:16 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Core/Form.inc(142): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(69): RESTAPI\Core\Form->__construct()
#9 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(426): build_forms()
#10 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:03:17 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Schemas/OpenAPISchema.inc(40): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Schemas/OpenAPISchema.inc(27): RESTAPI\Schemas\OpenAPISchema->get_schema()
#9 /usr/local/pkg/RESTAPI/Core/Schema.inc(74): RESTAPI\Schemas\OpenAPISchema->get_schema_str()
#10 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(111): RESTAPI\Core\Schema->save_schema()
#11 /usr/local/pkg/RESTAPI/.resources/scripts/manage.php(438): build_schemas()
#12 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:03:35 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:03:39 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Core/Form.inc(142): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/www/system_restapi_updates.php(10): RESTAPI\Core\Form->__construct()
#9 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:03:52 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:04:27 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:05:43 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:05:51 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:05:53 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Core/Form.inc(142): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/www/system_restapi_updates.php(10): RESTAPI\Core\Form->__construct()
#9 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:05:54 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:06:03 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:12:42 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
[28-Apr-2025 10:12:45 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc:194
Stack trace:
#0 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(140): RESTAPI\Models\RESTAPIVersion->get_all_available_versions()
#1 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(73): RESTAPI\Models\RESTAPIVersion->get_latest_api_version()
#2 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\Models\RESTAPIVersion->get_api_version_details()
#3 /usr/local/pkg/RESTAPI/Core/Model.inc(887): RESTAPI\Core\Model->get_internal_objects()
#4 /usr/local/pkg/RESTAPI/Core/Model.inc(445): RESTAPI\Core\Model->from_internal()
#5 /usr/local/pkg/RESTAPI/Core/Model.inc(345): RESTAPI\Core\Model->construct_from_internal(NULL, NULL)
#6 /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc(63): RESTAPI\Core\Model->__construct(NULL, NULL, Array)
#7 /usr/local/pkg/RESTAPI/Models/RESTAPISettings.inc(238): RESTAPI\Models\RESTAPIVersion->__construct()
#8 /usr/local/pkg/RESTAPI/Core/Field.inc(319): RESTAPI\Models\RESTAPISettings->get_override_sensitive_fields_choices()
#9 /usr/local/pkg/RESTAPI/Core/Field.inc(1124): RESTAPI\Core\Field->set_choices_from_callable()
#10 /usr/local/pkg/RESTAPI/Core/Form.inc(205): RESTAPI\Core\Field->to_form_input()
#11 /usr/local/pkg/RESTAPI/Core/Form.inc(364): RESTAPI\Core\Form->get_form()
#12 /usr/local/www/system_restapi_settings.php(10): RESTAPI\Core\Form->print_form()
#13 {main}
thrown in /usr/local/pkg/RESTAPI/Models/RESTAPIVersion.inc on line 194
No FreeBSD crash data found.
And this is the screenshot from when i go to System -> REST API:
pfSense Version & Package Version:
- pfSense Version: 2.7.2-RELEASE (amd64)built on Mon Mar 4 19:53:00 UTC 2024FreeBSD 14.0-CURRENT
- Package Version v2.4.2
Metadata
Metadata
Assignees
Labels
StaletroubleshootingIssues that are troubleshooting requests or need troubleshooting before proceedingIssues that are troubleshooting requests or need troubleshooting before proceeding
