Conversation
supportHi guys, We’re using The Events Calendar plugin, and one of the URLs called looks like this: /wp-admin/admin.php?page=tec-tickets-attendees&dialog=move_tickets&check=c2a77bc1c4&ticket_ids=111111&width=800&height=800&event_id=114506& Visiting this page triggers a Fatal Error in your plugin PHP Fatal error: Uncaught TypeError: TLA_Media\GTM_Kit\Admin\SetupWizard::enqueue_assets(): Argument #1 ($hook) must be of type string, null given, called in /var/web/site/public_html/wp-includes/class-wp-hook.php on line 324 and defined in /var/web/site/public_html/wp-content/plugins/gtm-kit/src/Admin/SetupWizard.php:121 It looks like the function enqueue_assets in wp-content/plugins/gtm-kit/src/Admin/SetupWizard.php isn’t checking whether the $hook is set or not. Please can you add a fix which checks if the $hook is set or not public function enqueue_assets( ?string $hook ): void { if ( empty($hook) || strpos( $hook, self::SLUG ) === false ) { return; }
Can you please confirm that https://wordpress.org/plugins/the-events-calendar/ is the plugin you are refering to?
Thanks for the speedy reply! That’s correct, but the problem also impacts other plugins such as the “Duplicate Post” plugin. When you attempt to duplicate the post, a fatal error gets thrown.
Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS856-F2213
The fix is now merged and will be included in a release next week: https://github.com/tlamedia/gtm-kit/pull/614
Wow, awesome, thank you!
Version 2.3.0 including the fix was just released
Can you please confirm that https://wordpress.org/plugins/the-events-calendar/ is the plugin you are refering to?
Thanks for the speedy reply! That’s correct, but the problem also impacts other plugins such as the “Duplicate Post” plugin. When you attempt to duplicate the post, a fatal error gets thrown.
Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS856-F2213
The fix is now merged and will be included in a release next week: https://github.com/tlamedia/gtm-kit/pull/614
Wow, awesome, thank you!
Version 2.3.0 including the fix was just released