Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid sprintf placeholder #284

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

BrianHenryIE
Copy link
Contributor

Fatal error: Uncaught ValueError: Unknown format specifier "n" in /var/www/html/wp-content/plugins/kb-support/includes/api/class-kbs-api.php: 176
Stack trace:
#0 /var/www/html/wp-content/plugins/kb-support/includes/api/class-kbs-api.php(176): sprintf('% not found.', 'KB Article')
#1 /var/www/html/wp-content/plugins/kb-support/includes/api/endpoints/class-kbs-tickets-api.php(181): KBS_API->errors('no_auth')
#2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1161): KBS_Tickets_API->get_items_permissions_check(Object(WP_REST_Request))
#3 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/kbs/v1/tickets', Array, NULL)
#4 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch(Object(WP_REST_Request))
#5 /var/www/html/wp-includes/rest-api.php(418): WP_REST_Server->serve_request('/kbs/v1/tickets')
#6 /var/www/html/wp-includes/class-wp-hook.php(310): rest_api_loaded(Object(WP))
#7 /var/www/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#8 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#9 /var/www/html/wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array)
#10 /var/www/html/wp-includes/class-wp.php(779): WP->parse_request('')
#11 /var/www/html/wp-includes/functions.php(1335): WP->main('')
#12 /var/www/html/wp-blog-header.php(16): wp()
#13 /var/www/html/index.php(17): require('/var/www/html/w...')
#14 {main
}
  thrown in /var/www/html/wp-content/plugins/kb-support/includes/api/class-kbs-api.php on line 176

@codemonkey-jack codemonkey-jack merged commit 29f7dd2 into codemonkey-jack:master Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants