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

SiwG throws error on WP 6.0.3 and below #10266

Open
mohitwp opened this issue Feb 25, 2025 · 0 comments
Open

SiwG throws error on WP 6.0.3 and below #10266

mohitwp opened this issue Feb 25, 2025 · 0 comments
Labels
Module: Sign in with Google Sign in with Google (SiwG) related issues. P0 High priority PHP Type: Bug Something isn't working

Comments

@mohitwp
Copy link
Collaborator

mohitwp commented Feb 25, 2025

Bug Description

I tested SIWG functionality across different WordPress versions and noticed that the SIWG module throws a fatal error on WordPress 6.0.3 and earlier versions. Additionally, the SIWG option and block do not appear on the front end even after connecting SIWG

Fatal error: Uncaught Error: Call to undefined function Google\Site_Kit\Modules\is_login() in /.../wp-content/plugins/google-site-kit/includes/Modules/Sign_In_With_Google.php:391 Stack trace:
#0 /.../wp-content/plugins/google-site-kit/includes/Core/Util/Method_Proxy_Trait.php(25): Google\Site_Kit\Modules\Sign_In_With_Google->render_signinwithgoogle()
#1 /.../wp-includes/class-wp-hook.php(307): Google\Site_Kit\Modules\Sign_In_With_Google->Google\Site_Kit\Core\Util\{closure}()
#2 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 /.../wp-includes/plugin.php(476): WP_Hook->do_action()
#4 /.../wp-login in /.../wp-content/plugins/google-site-kit/includes/Modules/Sign_In_With_Google.php on line 391

Steps to reproduce

  1. Create a site using WordPress version 6.0.3 or earlier.
  2. Set up Site Kit.
  3. Connect the SIWG module.
  4. Open the WordPress admin panel or the front end of the site in a different browser or an incognito tab.

Screenshots

Image

Image

Additional Context

  • WP Version - 6.0.3 or earlier

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • No errors should be raised when SiwG is connected on all supported versions of WP

Implementation Brief

Test Coverage

  • No changes expected

QA Brief

Changelog entry

@mohitwp mohitwp added the Type: Bug Something isn't working label Feb 25, 2025
@aaemnnosttv aaemnnosttv self-assigned this Feb 25, 2025
@aaemnnosttv aaemnnosttv added P0 High priority Module: Sign in with Google Sign in with Google (SiwG) related issues. PHP labels Feb 25, 2025
@aaemnnosttv aaemnnosttv changed the title SIWG Module Throws Fatal Error on WordPress 6.0.3 and Below. SiwG throws error on WP 6.0.3 and below Feb 25, 2025
@aaemnnosttv aaemnnosttv removed their assignment Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Sign in with Google Sign in with Google (SiwG) related issues. P0 High priority PHP Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants