Поддержка Проблемы и решения не отображается страница wp-admin

  • Перенес сайт с локального на хотинг и сталкнулся с проблемой.
    Захожу в админ-панель через wp-login.php и админ панель не работает. Видно сверху имя пользователя и отображается главная страница сайта.
    При переходе по ссылке wp-admin пишет «Извините, вам не разрешено просматривать эту страницу»
    Кэш чистил. Проверил установку на другом компьютере, такая же ситуация.
    В файле htaccsess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule  /wp-admin/ /wp-admin/index\.php [L,P]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
Просмотр 5 ответов — с 1 по 5 (всего 5)
  • Попробуйте для начала отключить все плагины.

    Смотри config.php и попробуй убрать это из htacess
    RewriteRule /wp-admin/ /wp-admin/index\.php [L,P]

    Спасибо, попробую

    Не помогло убрать из htacess
    RewriteRule /wp-admin/ /wp-admin/index\.php [L,P]

    в config все стандартно

    <?php
    /**
     * 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://wordpress.org/support/article/editing-wp-config-php/
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    
    публиковать данные доступа к БД не следует
    
    /** MySQL hostname */
    define( 'DB_HOST', 'localhost' );
    
    /** Database Charset to use in creating database tables. */
    define( 'DB_CHARSET', 'utf8mb4' );
    
    /** The Database Collate type. Don't change this if in doubt. */
    define( 'DB_COLLATE', '' );
    
    define('WP_HOME', 'https://cyprusfamily.ru');
    define('WP_SITEURL', 'https://cyprusfamily.ru');
    define('FORCE_SSL_ADMIN', true);
    define('FORCE_SSL_LOGIN', true);
    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;
    }
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    
    соли тоже публиковать не нужно
    
    /*define('FORCE_SSL_ADMIN', true);*/
    define( 'DISALLOW_FILE_EDIT', true );
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each
     * a unique prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix = 'wp4fz52y_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the documentation.
     *
     * @link https://wordpress.org/support/article/debugging-in-wordpress/
     */
    define( 'WP_DEBUG', false );
    
    /* That's all, stop editing! Happy publishing. */
    
    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
    	define( 'ABSPATH', __DIR__ . '/' );
    }
    
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';
    error_reporting(0);
    @ini_set(‘display_errors’, 0);
    

    вот так открывается админка http://prntscr.com/19g7d98
    и отображается главная страница. Самой панели админа нет.
    При переходе на страницу wp-admin пишет «Извините, вам не разрешено просматривать эту страницу.»

    • Ответ изменён 2 года, 8 месяцев назад пользователем Yui. Причина: formatting

    А отключение плагинов?

Просмотр 5 ответов — с 1 по 5 (всего 5)
  • Тема «не отображается страница wp-admin» закрыта для новых ответов.