Я получаю ошибки при попытке получить доступ к WordPress после установки - PullRequest
0 голосов
/ 17 мая 2019

Я должен подключить XAMPP к WordPress. Поэтому я могу перенести созданную мной тему, но когда я нажимаю кнопку входа в WordPress, меня встречает код ошибки.

Я выложу ниже для тех, кто понимает это.

Спасибо за любую помощь!

Я пробовал несколько уроков о том, как это сделать, но у меня продолжают появляться те же проблемы. Я также пытался получить доступ к пользовательскому документу, о котором идет речь, но он мне не позволил.

Предупреждение: недопустимое смещение строки «запомнить» в C: \ xampp1 \ htdocs \ NRFG_WP \ wp-includes \ user.php в строке 39

Предупреждение. Невозможно назначить пустую строку для смещения строки в C: \ xampp1 \ htdocs \ NRFG_WP \ wp-includes \ user.php в строке 39

Предупреждение: недопустимое смещение строки 'user_login' в C: \ xampp1 \ htdocs \ NRFG_WP \ wp-includes \ user.php в строке 54

Неустранимая ошибка: неперехваченная ошибка: невозможно создать ссылки на строку / из строки смещения в C: \ xampp1 \ htdocs \ NRFG_WP \ wp-includes \ user.php: 54 стека трассировка: # 0 C: \ xampp1 \ htdocs \ NRFG_WP \ wp-login.php (770): wp_signon ('', '') # 1 {main}, брошенный в C: \ xampp1 \ htdocs \ NRFG_WP \ wp-includes \ user.php по линии 54

Вот PHP до всех упомянутых строк:

<?php
/**
 * WordPress User API
 *
 * @package WordPress
 * @subpackage Users
 */

/**
 * Authenticate user with remember capability.
 *
 * The credentials is an array that has 'user_login', 'user_password', and
 * 'remember' indices. If the credentials is not given, then the log in form
 * will be assumed and used if set.
 *
 * The various authentication cookies will be set by this function and will be
 * set for a longer period depending on if the 'remember' credential is set to
 * true.
 *
 * @since 2.5.0
 *
 * @param array $credentials Optional. User info in order to sign on.
 * @param bool $secure_cookie Optional. Whether to use secure cookie.
 * @return WP_User|WP_Error WP_User on success, WP_Error on failure.
 */
function wp_signon( $credentials = array(), $secure_cookie = '' ) {
    if ( empty($credentials) ) {
        if ( ! empty($_POST['log']) )
            $credentials['user_login'] = $_POST['log'];
        if ( ! empty($_POST['pwd']) )
            $credentials['user_password'] = $_POST['pwd'];
        if ( ! empty($_POST['rememberme']) )
            $credentials['remember'] = $_POST['rememberme'];
    }

    if ( !empty($credentials['remember']) )
        $credentials['remember'] = true;
    else
        $credentials['remember'] = false;

    /**
     * Fires before the user is authenticated.
     *
     * The variables passed to the callbacks are passed by reference,
     * and can be modified by callback functions.
     *
     * @since 1.5.1
     *
     * @todo Decide whether to deprecate the wp_authenticate action.
     *
     * @param string $user_login    Username, passed by reference.
     * @param string $user_password User password, passed by reference.
     */
    do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...