ワードプレスでホームページ制作 東広島(西条)|WEB工房0311

【WordPress】PHPのバージョンアップに伴うエラーの解消

WordPress バージョン 4系をインストールしていたサイトへログインしようとしたところ、

Warning: Illegal string offset 'remember' in /XXX/XXX/wordpress/wp-includes/user.php on line 41

Warning: Cannot assign an empty string to a string offset in /XXX/XXX/wordpress/wp-includes/user.php on line 41

Warning: Illegal string offset 'user_login' in /XXX/XXX/wordpress/wp-includes/user.php on line 56

Fatal error: Uncaught Error: Cannot create references to/from string offsets in /XXX/XXX/wordpress/wp-includes/user.php:56 Stack trace: #0 /XXX/XXX/wordpress/wp-login.php(776): wp_signon('', '') #1 {main} thrown in /XXX/XXX/wordpress/wp-includes/user.php on line 56

のエラーが表示。

Google先生で調べてみると同様のエラーが!!

なるほど サーバのPHPのバージョン 7系にするってメールが届いていました。

早速 https://on-ze.com/archives/7722

のサイトの通り、修正したところ 正常にログイン画面が表示^^ 安心しました。

上部へスクロール
Scroll to Top