Fatal Error thrown by plugin
-
I have just tried to perform an admin action on a site I am developing, and it tried to open up a modal, which threw a critical error on my website.
When I review the WooCommerce Logs within ‘Status’ I see a fatal error relating to this plugin:Uncaught TypeError: Jwt_Auth_Admin::enqueue_plugin_assets(): Argument #1 ($suffix) must be of type string, null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 324 and defined in /var/www/html/wp-content/plugins/jwt-authentication-for-wp-rest-api/admin/class-jwt-auth-admin.php:95
When I deactivate your plugin, the modal opens fine without any issue, when I reactivate it, it's thrown again.
It's a headless website I am building so the JWT plugin is essential to the build but I still need users to use the admin without critical errors.
Within the additional context toggle in the logs, I get the following:
{
"error": {
"type": 1,
"file": "/var/www/html/wp-content/plugins/jwt-authentication-for-wp-rest-api/admin/class-jwt-auth-admin.php",
"line": 95
},
"remote-logging": true,
"backtrace": [
"",
"#0 /var/www/html/wp-includes/class-wp-hook.php(324): Jwt_Auth_Admin->enqueue_plugin_assets(NULL)",
"#1 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#2 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
"#3 /var/www/html/wp-admin/includes/template.php(2157): do_action('admin_enqueue_s…', NULL)",
"#4 /var/www/html/wp-content/plugins/event-tickets/src/Tribe/Admin/Move_Tickets.php(96): iframe_header('Move Attendees')",
"#5 /var/www/html/wp-includes/class-wp-hook.php(324): Tribe__Tickets__Admin__Move_Tickets->dialog('')",
"#6 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#7 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
"#8 /var/www/html/wp-admin/admin.php(175): do_action('admin_init')",
"#9 /var/www/html/wp-admin/edit.php(10): require_once('/var/www/html/w…')",
"#10 {main}",
"thrown"
]
}I left an issue on Github as well as per the plugin docs on the WP repo here but no response yet.
Are you able to advise please?
- You must be logged in to reply to this topic.