3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WordPressで管理画面がタイムアウトされて表示できなくなるときにやったこと

Posted at

状況

vccwで環境構築し、他のメンバーが開発中のWordPressのソースたちをgit cloneした。
WordPress本体画面は表示されるが管理画面に接続できない。タイムアウトのエラーが出ている。

ERR_CONNECTION_TIMED_OUT

本体の画面もCSSが適用されていない。パスがおかしいようだ。

Codexではよくあるエラーとされていて、以下の3点を確認するようにとしている。

1.プラグインが問題を引き起こしている
2.テーマが問題を引き起こしている
3.テーマのディレクトリが消えたかリネームされた

他のメンバーには起きていない現象なので、プラグインやテーマのせいではない。

VCCW環境に置いたことでディレクトリ構成が変わったことが原因と見た。

環境

Mac OS X
VCCW3
vagrant1.8.7

やったこと

define('WP_SITEURL', 'http://vccw.dev');

wp-config.phpに上記コードを挿入したところリダイレクトしなくなり管理画面に接続できた。
ちなみに「wp-config.phpの上部に以下のような設定群を挿入して、本番環境とVCCW環境の切替をしやすいようにしておくと便利」なのだそうです!

参考
https://hiroki.jp/wordpress-develop-theme
https://php1st.com/826/

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?