0
0

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のテーマエディタで保存できない

Last updated at Posted at 2019-07-26

はじめに

独自テーマを作ってテーマエディタで編集しようと思ったら保存できなかったので困った。

環境

WordPress 5.2.2
MacBook Pro Mojave 10.14.5
Docker使用

やったこと

  • 権限全開放

    Dockerで立ち上げていたので以下コマンドでサーバに入り権限付与。
$ docker exec -it コンテナ名 /bin/bash
$ cd wp-content/themes/[独自テーマディレクトリ名]
$ chmod 777 *

効果なし。

とりあえず保存できるようになった方法

  • wp-admin/includes/file.php の修正

    望ましくはないけれどとりあえず保存は出来るようになった。

    参考にしたサイト:http://takenet.jp/takeblo/2018/12/wordpress.html

    バージョン異なっていたので行数が変わってました。

    495行目から603行目までをコメントアウト。(差分は確認してないけど内容は変わらなさそう)

おわりに

誰かセーフティな(正攻法な)方法知っていたらコメントください…

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?