Can't move attendees in Events Calendar due to fatal errors caused by $hook_suffix type
craigwilcox opened this issue · comments
Craig Wilcox commented
Description
When trying to move attendees in The Events Calendar, we get a fatal error as follows:
/nas/content/live/rmsvdev/wp-content/plugins/wp-graphql/src/Admin/Settings/Settings.php.
Error message: Uncaught TypeError: Argument 1 passed to
WPGraphQL\Admin\Settings\Settings::initialize_settings_page_scripts()
must be of the type string, null given, called in
/nas/content/live/rmsvdev/wp-includes/class-wp-hook.php on line 324
and defined in /nas/content/live/rmsvdev/wp-content/plugins/wp-graphql/src/Admin/Settings/Settings.php:274
Steps to reproduce
- Enable The Events Calendar, The Events Calendar Pro, Event Tickets and Event Tickets Plus.
- Make a class with a ticket.
- Sign up for the class.
- Go to Attendees for that class.
- Select an Attendee and use the Bulk action of "Move".
Additional context
In speaking with Jason, this can be fixed by changing the Settings.php file mentioned above to use ?string $hook_suffix
instead of string $hook_suffix
. A similar change is needed in WPGraphQL for ACF.
WPGraphQL Version
1.21.0
WordPress Version
6.4.3
PHP Version
7.4.30
Additional environment details
WordPress
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have disabled ALL plugins except for WPGraphQL.
- Yes
- My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.