• Resolved iknabes

    (@iknabes)


    Trying to connect many times wp-stateless to GSC (not working) I have tried to restart by deleting previous bucket to create new one in GSC.
    I thought it would be then possible to change the setting of wp-stateless in wordpress. That was a big mistake because now my site is broken. This happens everytime I activate the plugin.
    I have downladed Advanced Database Cleaner hoping that would fix the problem by reseting the tables but still have same problem.
    I have been searching hours on internet, I have tried to modify the wp-config file or looked any other files but nothing could solve my problem

    Any advices about what I should do to get this fixed?
    Thanks in advance

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter iknabes

    (@iknabes)

    If it helps, here is the top part of the error explained :
    “Une erreur de type?E_ERROR?a été causée dans la ligne?398?du fichier?/home/u929880085/domains/synergologie.org/public_html/corpusclip/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php. Message d’erreur?:?Uncaught Google\Cloud\Core\Exception\ServiceException: {"error":{"code":401,"message":"Invalid Credentials","errors":[{"message":"Invalid Credentials","domain":"global","reason":"authError","locationType":"header","location":"Authorization"}]}} in /home/u929880085/domains/synergologie.org/public_html/corpusclip/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php:398 Stack trace: #0 /home/u929880085/domains/synergologie.org/public_html/corpusclip/wp-content/plugins/wp-stateless/lib/Google/vendor/google/cloud-core/src/RequestWrapper.php(215): Google\Cloud\Core\RequestWrapper->convertToGoogleException() #1 /home/u929880085/domains/synergologie.org/public_html/corpusclip/wp-

    Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    Hello,

    In order we can help you to resolve the issue could you please provide us with the following information:
    * Did you use Setup Wizard to change the WP-Stateless settings or performed a manual setup?
    * What mode are you using (CDN, Backup, Stateless, etc)?

    Thank you!

    Thread Starter iknabes

    (@iknabes)

    First of all thank you very much Oleksii Bolhunovskyi for your help and time.
    Yes first I did use the automatic fonction for the set up. I have used the stateless mode.
    And after that I have tried to change the settings to connected to my new google storage account

    Plugin Author Eric Sopp

    (@ideric)

    The message you shared says “Invalid Credentials”

    Your credentials are the service account, so something is broken there.

    Try following these steps:

    • From within your Google Cloud project, IAM & Admin > Service accounts.
    • Click Create Service Account and name it stateless.
    • In the Role dropdown, select Storage Admin.
    • Click Done.
    • At the list of service accounts, click the three dots on the row of the service account you created and click Manage Keys,.
    • Click Add Key and Create New Key
    • Set Key type to JSON and click Create
    • Open the JSON file that was downloaded to your computer.
    • Copy the contents of that file to the Service Account JSON field in Stateless Settings within WordPress.

    You should also double check the Bucket field and make sure your bucket name is correct.

    This should resolve the problem.

    • This reply was modified 10 months, 2 weeks ago by Eric Sopp.
    Thread Starter iknabes

    (@iknabes)

    Back infront my computer, Thank you Eric.
    I will try your recommendations. You seem confident about it ?? , Fingers crossed. I ll get back to you within a short while..

    Thread Starter iknabes

    (@iknabes)

    I finally could have time to try and follow step by step what you said, unfortunately, the problem is I even don’t have the label “stateless setting” showing up. When I activate the plugin it goes straight away broken. So I can’t reach the box to copy the .json file..
    Any other idea I could try?

    Plugin Author Eric Sopp

    (@ideric)

    Sounds like there is a conflict with another plugin or your theme.

    Try disabling each plugin one at a time to see if that helps. If you can identify the conflicting plugin/theme, please let us know so we can test on our end.

    Thread Starter iknabes

    (@iknabes)

    ok i try.

    Thread Starter iknabes

    (@iknabes)

    I have desactivated them all and then activated only Stateless, same happened

    Thread Starter iknabes

    (@iknabes)

    Aren’t a way to completly reset stateless, then i could resart the set up from beginning and reenter correct bucket name and .json informations?

    Plugin Author Eric Sopp

    (@ideric)

    You can clear the bucket and service account json fields to enable access to the setup wizard.

    Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    @iknabes if it’s possible, could you please share your admin credentials with me [email protected]?
    I will try to resolve the issue or, if at least reset WP-Stateless

    Plugin Author Oleksii Bolhunovskyi

    (@obolgun)

    @iknabes thank you very much for your help and cooperation!

    The too issues needs to be tested and investigated further:
    * Wrong JSON key for GCS can cause PHP errors when File URL Replacement setting is set to Enable Editor & Meta

    * WP-Optimize plugin can cause conflicts with WP-Stateless when Mode is set to Stateless or Ephemeral

    Thread Starter iknabes

    (@iknabes)

    @obolgun Thanks to you, You have been really amazing !!
    I really appreciate all efforts you’ve made to help me to figure the issues on my website.
    Wish you all the best. Keep in touch ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Site broken after changing GCS bucket’ is closed to new replies.