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

Can't move attendees in Events Calendar due to fatal errors caused by $hook_suffix type #3056

Closed
2 of 3 tasks
craigwilcox opened this issue Feb 21, 2024 · 0 comments · Fixed by #3057
Closed
2 of 3 tasks
Assignees
Labels
Type: Bug Something isn't working

Comments

@craigwilcox
Copy link

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

  1. Enable The Events Calendar, The Events Calendar Pro, Event Tickets and Event Tickets Plus.
  2. Make a class with a ticket.
  3. Sign up for the class.
  4. Go to Attendees for that class.
  5. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
Status: Done
2 participants