• Resolved onurparlar

    (@onurparlar)


    Hello,

    After latest update I’m getting same error all the time.

    Jetpack trying to turn “Safe Mode State” I’m tried everything.

    I tried move jetpack data I tried create fresh connection…

    Non of them didn’t solve this loop.

    I tried wp-config changes but cause of site setup that act broken my site.

    Do you have any solution for that?

    Thank you

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • @onurparlar Has Jetpack ever been connected to a staging or duplicate/similar site with a different URL? If so, what is that other URL?

    Thread Starter onurparlar

    (@onurparlar)

    @julesomattic always asking:

    mail.sanalsergi.com & sanalsergi.com to merge or change status…

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @onurparlar

    Hi there –

    Looking at our logs, it looks like the URL is switching between the www and mail version of your domain:

    IDC detected (home|siteurl) WPCOM: (sanalsergi.com/|sanalsergi.com/) Remote: (sanalsergi.com/|mail.sanalsergi.com/). Sync failed because synced URLs do not match WPCOM or production Jetpack site.

    There are certain website configurations, most commonly encountered on Bitnami sites, which will cause problems with Jetpack’s ability to correctly determine your site URL. This can break your site’s connection to Jetpack.

    To determine if this applies to you, check your wp-config.php file for the presence of this code:

    define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/'); define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');

    If that code is present, you’ll want to remove it and replace it with this code instead:

    define('WP_SITEURL', 'https://example.com'); define('WP_HOME', 'https://example.com');

    Be sure to swap out the example domain with your site’s actual domain.

    Before making these changes, you will want to back up your site so that you can restore it in case you have issues. If you don’t have a backup solution, I’d encourage you to check out Jetpack VaultPress Backup.

    Let us know if you continue to have issues.

    Thread Starter onurparlar

    (@onurparlar)

    @lastsplash

    As was I explain my first post, that code is broken my website.

    That’s why this solution is out of possibilities.

    The thing is I don’t have that error before…

    Any other idea to fix that?

    btw that happening sometimes…

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi @onurparlar

    It’s strange that replacing the code as described above would break your site. How did it break exactly?

    You mentioned “cause of site setup that act broken my site”

    What is the site setup you’re referring to? Do you have some kind of non-standard URL configuration or something?

    Thread Starter onurparlar

    (@onurparlar)

    @drawmyface thank you for answer

    I’m sharing with you my wp-config.php

    <?php
    define( 'WP_CACHE', true );
    
    if ( file_exists(ABSPATH . "wp-content/advanced-headers.php") ) { 
    	require_once ABSPATH . "wp-content/advanced-headers.php";
    }
    //Enable error logging.
    @ini_set('log_errors', 'On');
    @ini_set('error_log', '/home/sanalser/public_html/icerik/elm-error-logs/php-errors.log');
    //Don't show errors to site visitors.
    @ini_set('display_errors', 'Off');
    if ( !defined('WP_DEBUG_DISPLAY') ) {
    	define('WP_DEBUG_DISPLAY', false);
    }
    define( 'WP_MEMORY_LIMIT', '256M' );
    /* Compress All CSS Files */
    define( 'COMPRESS_CSS',        true );
    /* Compress All JS Files */
    define( 'COMPRESS_SCRIPTS',    true );
    /* Turn On GZIP Compression */
    define( 'ENFORCE_GZIP',        true );
    /**
     * The base configuration for WordPress
     *
     * The wp-config.php creation script uses this file during the
     * installation. You don't have to use the web site, you can
     * copy this file to "wp-config.php" and fill in the values.
     *
     * This file contains the following configurations:
     *
     * * MySQL settings
     * * Secret keys
     * * Database table prefix
     * * ABSPATH
     *
     * @link https://codex.www.ads-software.com/Editing_wp-config.php
     *
     * @package WordPress
     */
    
    define('DISALLOW_FILE_EDIT',1);
    /* That's all, stop editing! Happy blogging. */
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    /** Sets up WordPress vars and included files. */
    //Rename wp-content folder
    define ('WP_CONTENT_FOLDERNAME', 'icerik');
    //Define new directory path
    define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);
    //Change Uploads folder name
    //Define new directory URL
    define('WP_SITEURL','https://' . $_SERVER['HTTP_HOST'] . '/');
    define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);
    require_once(ABSPATH . 'wp-settings.php');
    @ini_set('session.cookie_httponly', true); 
    @ini_set('session.cookie_secure', true); 
    @ini_set('session.use_only_cookies', true);
    /**
    /**
     * Set port to 443
     */
    $_SERVER['SERVER_PORT'] = 443;

    I deleted some parts for security reasons.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @onurparlar – just want to confirm have you edited the wp-config.php file in the past? Because I can see some issues in the file. For example:

    1. Near the end of the code snippet, there is an opening comment tag /**, but there is no corresponding closing comment tag */. This can result in a PHP syntax error if there is code following the incomplete comment.
    2. Just before the incomplete comment, there is a duplicated opening comment tag /**. It appears to be a duplication or unintended repetition of the comment.

    Could you please confirm if they are got edited only when you shared them or are they looking the same in the wp-config.php file also?

    If they are different in wp-config.php file then I would recommend first reinstalling the WordPress to make sure we have no issues with wp-config.php file.

    Other than this, I have made a small change for your site on our side and disconnected the Jetpack plugin, could you please try to reconnect the Jetpack to your side again?

    Thread Starter onurparlar

    (@onurparlar)

    Hi @bizanimesh,

    I cleaned all */ /** things from wp-config file to be sure and I changed this sections “define('WP_SITEURL', 'https://example.com'); define('WP_HOME', 'https://example.com');

    I’m sharing screenshots to show what is happening.

    I just switched back to old version of wp-config file Jetpack asked me to “install again” I’ve installed back. These are the problems when I define site url inside wp-config file.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @onurparlar – thanks for sharing the screenshot – it appears there is something installed on your site that is creating the issue for the issue. The first thing I noticed is the top bar that appears for your site is modified, and it doesn’t appear to be the default WordPress one.

    Could you please once troubleshoot what is creating an issue for the site? As a first step, I recommend you troubleshoot using Health Check & Troubleshooting plugin and make sure all plugins are deactivated except Jetpack + switch the site to the default WP theme like Twenty Twenty Two; you can follow the steps here.

    If troubleshooting using Health Check & Troubleshooting plugin doesn’t help, then you can try manual troubleshooting but again, make sure all plugins are deactivated except Jetpack + switch the site to the default WP theme like Twenty Twenty Two.

    Thread Starter onurparlar

    (@onurparlar)

    Ok I’ll try and then let you know the results.

    Thank you @bizanimesh

    Thread Starter onurparlar

    (@onurparlar)

    Hello again @bizanimesh

    The thing is I have that every site I have… I didn’t change any special thing ??

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @onurparlar – do you mean the?top bar that appears for your site is available on your other site as well? If that is the case then it means it is applied by your hosting provider. Are you sure there is no plugins installed on your site that is changing that?

    Have you tried to troubleshoot using the process I have provided above?

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @onurparlar,

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Safe Mode Loop’ is closed to new replies.