• Resolved rakraimundas

    (@rakraimundas)


    Hello,

    I added a snippet into my webpage:
    add_action( ‘init’, ‘wpappninja_offline’ );
    function wpappninja_offline() {

    if(is_admin()){
    return;
    }

    if(isset($_SERVER[‘HTTP_X_WPAPPNINJA’]) || defined(‘DOING_WPAPPNINJA_API’) || isset($_GET[‘wpappninja_read_enhanced’])) {
    return;
    }

    if (is_user_logged_in()) {
    return;
    }

    header(“$protocol 503 Service Unavailable”, true, 503);
    exit();
    }
    Than I took wpapp.ninja services services for creating and android app. I have received an email that it was developed. I downloaded an apk file and installed it, but it doesn’t start. Only white screen shows and nothing more. And also I do have an issue with my website. Of course it doesn’t work as I waned, but I do need to login to my WP account and change few things. How can it be done? I used to write down my URL/wp-admin, but it’s not possible any more.

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    It sounds like this snippet is doing exactly what is is meant to do – deny access to your website with a blank screen.

    In order to change this, you can enable safe mode. To do so, you can edit your wp-config.php file and add this line:

    define( 'CODE_SNIPPETS_SAFE_MODE', true );

    The other option is to add the ?snippets-safe-mode=true query arg to your site URL – like https://example.com/wp-admin/?snippets-safe-mode=true. This method may not be as reliable as the wp-config method, however.

Viewing 1 replies (of 1 total)
  • The topic ‘Web page doesn’t work’ is closed to new replies.