• Resolved assistanceinfo

    (@assistanceinfo)


    Hi,

    I’ve first open the same question at
    https://www.ads-software.com/support/topic/local-copy-jetpack-identity-crisis/
    but i was advise to post in this section.

    I’m opening this topic because even i’ve read and try some things and i cant find a solution.

    I ve made a copy of a website in production and installed it in a VirtualMachine on my localhost.

    The goal is to test update and some change in local before change anything in the online site.

    I dont find the way to set JetPack to stay in Safe Mode enable or to create a new connection in the local site.

    I ve check the real OnlineSite and jetpack dont give any message about Identity Crisis ,he just want to update. So all is running fine on the online site and that is the most important.

    From the local copy :
    I ve read and try :
    1. https://jetpack.com/support/safe-mode/
    >>but clicking stay in safe mode or create a new connexion dont work.
    2. https://jetpack.com/support/development-mode/
    >> i ve try define( ‘JETPACK_DEV_DEBUG’, true ); but my site hostname have period and i ve to define the JETPACK_DEV_DEBUG constant, but i dont know how and where (which file? jetpack.php? default-constant.php?)
    >> ive not try the add_filter( ‘jetpack_offline_mode’, ‘__return_true’ ); because it s not written in which file to add the filter.

    The locale VM work under Debian10 with :
    PHP7.4, Mysql5.6, WordPress 5.8.4, JetPack 10.7

    I would prefer not upgrade anything because i create this local copy to let the site owner make his test in virtualbox before upgrading the onlinesite.

    So my answer is : How to enable the offline mode in the Local Copy to have it the more similar possible to the real OnlineSite ? Just telling me in which file i ve to define constant or add filter will help me a lot.

    In anyway in the local copy i can use the WordPress dashboard but i ve the JetPack Message in all windows…

    I ve an other problem with the redirection of the local pages but ill maybe open a new topic if i dont find solution.

    Thanks.

    (Those Topics dont help me to solve :
    https://www.ads-software.com/support/topic/jetpack-safe-mode-something-went-wrong/
    https://www.ads-software.com/support/topic/how-to-solve-jetpack-identity-crisis/)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @assistanceinfo

    i ve try define( ‘JETPACK_DEV_DEBUG’, true ); but my site hostname have period and i ve to define the JETPACK_DEV_DEBUG constant, but i dont know how and where (which file? jetpack.php? default-constant.php?)

    You can turn on Offline Mode by adding define( ‘JETPACK_DEV_DEBUG’, true ); to your wp-config.php file.

    Make sure you add it before the /* That’s all, stop editing! Happy blogging. */ line.

    Thread Starter assistanceinfo

    (@assistanceinfo)

    Hi @bruceallen

    As written in my post in the part you have quoted in your answer, i’ve already try this but my hostname have period.

    Do you know how and where i can define the constant?

    Thread Starter assistanceinfo

    (@assistanceinfo)

    I ve insert the code define( ‘JETPACK_DEV_DEBUG’, true ); in jetpack.php and the result in the local copy of the site is :
    – No message about Identity Crisis
    – Jetpack Dashboard : Not Available (blank space : no message)
    – JetPack Settings : Not Available (blanck space : no message)
    –> Before this change i’ve the message “JetPack Identity Crisis” in all the windows of wp-admin dashboard but at least i can see the jetpack dashboard and stats….

    Someone know a better solution to set jetpack offline when there are period in the name of the local copy of the site ?

    Thread Starter assistanceinfo

    (@assistanceinfo)

    [Solved]
    Finally the JetPack option Stay In Safe Mode work.

    I’ve comment all the lines i ve add in the different files and i’ve retry to clik on the “Stay In Safe Mode” and today it work without error.

    It’s the first thing I’ve tryed when the Identity Crisis message appeared, but it didn’t work.

    I can’t explain the reason. Sorry.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Local Copy _ JetPack Identity Crisis’ is closed to new replies.