• Resolved assocdev

    (@assocdev)


    Hi community,

    I’ve just created my first staging site using Bluehost’s automated staging tools. This worked but as soon as I switched to editing the staging site, I found JetPack in safe mode. I have read JetPack’s page on the topic, but I don’t know how to proceed safely and there is a lot of conflicting and confusing info around.

    For instance, I’ve seen mention of a “Jetpack staging constant” but there appear to be no official instructions on that JetPack support link above that explain how to set it (or even whether I need to).

    And I’ve seen posts where people have been instructed to disconnect JetPack from the site – either before or after creating the staging site – to avoid this problem, but there’s no mention of this on the support link above.

    Can anyone explain this cryptic process so that it’s super clear please?

    • This topic was modified 1 month, 3 weeks ago by assocdev.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hi @assocdev ,

    Jetpack Safe Mode is designed to recognize when you’re working on a staging site and disable certain features to prevent interference with your live site. The “Jetpack staging constant” you mentioned is a way to manually inform Jetpack that the site being used is a staging site.

    To clarify, the constant JETPACK_STAGING_MODE is designed for cases where Jetpack mistakenly identifies a live site as a staging site. Adding the constant to your wp-config.php file will explicitly tell Jetpack that your staging environment is a staging site and not a live site.

    Jetpack will try to detect your staging site as one automatically. If it’s not recognized automatically, use the JETPACK_STAGING_MODE constant by adding define( 'JETPACK_STAGING_MODE', true ); to your wp-config.php file just above the line that says /* That's all, stop editing! Happy publishing. */.

    You could also add the line as a script on a plugin like Code Snippets.

    Alternatively, you can disable staging mode on a site by adding either of the following lines under the same wp-config.php file.

    • define( 'JETPACK_STAGING_MODE', false );
    • add_filter( 'jetpack_is_staging_site', '__return_false' );

    As for disconnecting Jetpack before creating a staging site, this isn’t necessary and is not mentioned in the official documentation because Safe Mode should handle this appropriately by temporarily disabling features that might impact the live environment.

    If you’re still facing issues or if something isn’t clear, please reply with more details such as your staging and live site URLs. If you want it to remain private, you can also contact us via contact form.

    Please include a link to this thread if you choose to reach out directly.

    Thank you!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.