WordPressにWPtouchをインストールし、有効にしたところ以下のメッセージがでてWordPress自体が動かなくなりました。
Warning: require_once(include/plugin.php): failed to open stream: No such file or directory in ??H?* on line 33 Fatal error: require_once(): Failed opening required 'include/plugin.php' (include_path='.:/usr/share/pear:/usr/share/php') in ??H?* on line 33
/wp-content/plugins/wptouchを削除したら、とりあえずWordPress自体は復旧しました。
原因は以下の部分でした。
/wp-content/plugins/wptouch/wptouch.php
の33行目、34行目、1061行目
Warning: require_once(include/plugin.php): failed to open stream: No such file or directory in ??H?* on line 33 Fatal error: require_once(): Failed opening required 'include/plugin.php' (include_path='.:/usr/share/pear:/usr/share/php') in ??H?* on line 33
/wp-content/plugins/wptouchを削除したら、とりあえずWordPress自体は復旧しました。
原因は以下の部分でした。
/wp-content/plugins/wptouch/wptouch.php
の33行目、34行目、1061行目
require_once( 'include/plugin.php' );
require_once( 'include/compat.php' );
require_once( 'include/icons.php' );
それぞれ以下のように修正して動かしました。
それぞれ以下のように修正して動かしました。
require_once( dirname(__FILE__) . '/include/plugin.php' );
require_once( dirname(__FILE__) . '/include/compat.php' );
require_once( dirname(__FILE__) . '/include/icons.php' );
このpluginはとても有名なpluginのようで、googleで検索しても自分のようつまづいた方がいらっしゃらなかったようですので、自分の環境がおかしい可能性が濃厚なのです。
どこがおかしいんだろう…
ただ、他のplunginを見てみると、最初にdirname(__FILE__)を定数に設定して、requireするときは、その定数を先頭に記述しているので、むー…、どうなんでしょう…
このpluginはとても有名なpluginのようで、googleで検索しても自分のようつまづいた方がいらっしゃらなかったようですので、自分の環境がおかしい可能性が濃厚なのです。
どこがおかしいんだろう…
ただ、他のplunginを見てみると、最初にdirname(__FILE__)を定数に設定して、requireするときは、その定数を先頭に記述しているので、むー…、どうなんでしょう…