• Resolved smackayht

    (@smackayht)


    Several of my clients have been unable to activate new users with this latest update.
    Am on PHP8 with WP 6.2.2 and the latest version of this plugin.

    Error Log when trying to activate a user:
    PHP Fatal error: Uncaught TypeError: base64_decode(): Argument #1 ($string) must be of type string, array given in /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Storage/Data_Encryption.php:90\nStack trace:\n#0 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Storage/Data_Encryption.php(90): base64_decode(Array, true)\n#1 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Storage/Encrypted_Options.php(78): Google\\Site_Kit\\Core\\Storage\\Data_Encryption->decrypt(Array)\n#2 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Authentication/Credentials.php(65): Google\\Site_Kit\\Core\\Storage\\Encrypted_Options->get(‘googlesitekit_c…’)\n#3 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Authentication/Credentials.php(77): Google\\Site_Kit\\Core\\Authentication\\Credentials->get()\n#4 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php(1384): Google\\Site_Kit\\Core\\Authentication\\Credentials->has()\n#5 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Util/Method_Proxy_Trait.php(25): Google\\Site_Kit\\Core\\Authentication\\Authentication->filter_features_via_proxy(false, ‘dashboardSharin…’)\n#6 /nas/content/live/nahl/wp-includes/class-wp-hook.php(308): Google\\Site_Kit\\Core\\Authentication\\Authentication->Google\\Site_Kit\\Core\\Util\\{closure}(false, ‘dashboardSharin…’)\n#7 /nas/content/live/nahl/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)\n#8 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Util/Feature_Flags.php(56): apply_filters(‘googlesitekit_i…’, false, ‘dashboardSharin…’)\n#9 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Modules/Modules.php(221): Google\\Site_Kit\\Core\\Util\\Feature_Flags::enabled(‘dashboardSharin…’)\n#10 /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Plugin.php(161): Google\\Site_Kit\\Core\\Modules\\Modules->register()\n#11 /nas/content/live/nahl/wp-includes/class-wp-hook.php(308): Google\\Site_Kit\\Plugin->Google\\Site_Kit\\{closure}(”)\n#12 /nas/content/live/nahl/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)\n#13 /nas/content/live/nahl/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#14 /nas/content/live/nahl/wp-settings.php(623): do_action(‘init’)\n#15 /nas/content/live/nahl/wp-config.php(135): require_once(‘/nas/content/li…’)\n#16 /nas/content/live/nahl/wp-load.php(50): require_once(‘/nas/content/li…’)\n#17 /nas/content/live/nahl/wp-activate.php(12): require(‘/nas/content/li…’)\n#18 {main}\n thrown in /nas/content/live/nahl/wp-content/plugins/google-site-kit/includes/Core/Storage/Data_Encryption.php on line 90

    Not sure what activating a new user has to do with this plugin.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter smackayht

    (@smackayht)

    PHP8 seems to be the issue, switching to PHP7.4 the problem does not exist.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @smackayht Thanks for getting in touch and sharing the information and error you are seeing. Could you please explain this in more detail and provide a step by step run through of what you are doing before this happens?

    It would also be great if you could share your?Site Health information. You can?use this form?to share privately if preferred.?If you have any more questions in the meantime then please let me know.

    Thread Starter smackayht

    (@smackayht)

    Steps to reproduce:
    1. Go to add new user account.
    2. Fill in username, email, select Administrator and do not select skip confirmation
    3. User gets activate email and clicks the link. Similar to this https://www.domain.com/wp-activate.php?key=879df7gd9f
    4. Page displays an error message. “There has been a critical error on this website”

    Only happening when PHP8 is selected but converting over 400 websites back to PHP7.4 is not ideal.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @smackayht Thanks for the added information. Can you confirm if this happens when using PHP8 with Site Kit disabled?

    Can you also confirm if this happens for you when navigating to this URL which will create a temporary WordPress site with Site Kit installed.

    Thread Starter smackayht

    (@smackayht)

    After disabling the plugin with PHP8 I was able to activate a new user account from the email link.
    I then re-enabled the plugin and downgraded to PHP7.4 and it also worked.
    Have had several support issues come in with the same issue. Spent about 3 hours trying to figure it out.

    Thread Starter smackayht

    (@smackayht)

    Clicking the link you provided above gives me a 404 page error.
    Scratch that, worked the second time.

    • This reply was modified 1 year, 6 months ago by smackayht.
    Thread Starter smackayht

    (@smackayht)

    Oh one thing I did do mention is this is happening with MultiSite installs of WordPress

    Thread Starter smackayht

    (@smackayht)

    MultiSite Add New User screen

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @smackayht Thank you for all the information you have shared so far. When trying to replicate this on our own multisite setup we are not experiencing the same outcome.

    Would it be possible for you to obtain a recording of what this user is seeing on screen for us to check?

    Could you also share what the final URL is after clicking on the activate link?

    Thread Starter smackayht

    (@smackayht)

    So I have reproduced the same problem on my demo environment.
    This is the activation link:
    https://jaws.themes.hockeytech.com/wp-activate.php?key=b3cd5814308d4921

    Thread Starter smackayht

    (@smackayht)

    So this is strange, have had 3 installs with this issue and I just tried on a brand new install and it’s working. Fun…
    Guess will try disabling all plugins on a old install with the problem and then enable only site kit to see if works.
    Will keep you posted

    Thread Starter smackayht

    (@smackayht)

    After disabling all plugin and only leaving Site Kit Network Activated I still get the error. If I disable Network Activated and then go to one of the mulitsites and activate it from there it is working.
    Maybe a clue.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @smackayht Thank you for sharing the activation link that is helpful. I can see that this link is a subdomain site. Can you confirm if this is happening only on subdomain sites for you?

    I have opened a new issue for this and we will continue to investigate this for you and provide updates when we have them. Any further information you can share is welcome.

    Thread Starter smackayht

    (@smackayht)

    Not only happening with subdomain sites. The original clients that noticed this had normal domain names.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @smackayht Thank you for confirming. Just to update you that we are still looking into this and performing some testing on our side. When I have an update I will post it here.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Cannot activate new user accounts with activate link’ is closed to new replies.