無料ブログソフト・ワードプレスの「WordPress Mobile Pack」というプラグインを使うと、普通の携帯やスマートフォンでブログが見やすくなります。
それはいいんですが、ちっとも良くないのがインストールしたサーバーによっては謎のエラーがでて使い物にならないところ。
Critical WordPress Mobile Pack Issue
Not able to cache images to /httpdocs/wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/c. That directory is not executable. Please ensure that the web server has write- and execute-access to it.
Not able to install theme files to /httpdocs/wp-content/themes. That directory is not executable. Please ensure that the web server has write- and execute-access to it.
(Deactivate and re-activate the WordPress Mobile Pack once resolved.)
「フォルダ(ディレクトリ)に実行権限がありません」というエラーなんですが、パーミションを「777」にしても解決しません。
エラーメッセージで検索しても解決策が良く分かりません。なので、強引に「実行権限があるかどうかのチェックをする部位を削除する」ことにしました。
※いきなり追記:PHPのセーフモードが諸悪の根源らしいので、ロリポップなどでしたら「PHPのセーフモードを解除する」のが一番楽です。
1.wordpress-mobile-pack.php をメモ帳など(行数が表示されるテキストエディタが便利)で開きます。
2.176~177行目の
} elseif (!is_executable($cache_dir) && DIRECTORY_SEPARATOR=='/') {
$cache_does = __("That directory is not executable.", 'wpmp');
を削除。
3.188~189行目の
} elseif (!is_executable($theme_dir) && DIRECTORY_SEPARATOR=='/') {
$theme_does = __("That directory is not executable.", 'wpmp');
を削除。
4.206~207行目の } elseif (!is_executable($destination_dir) && DIRECTORY_SEPARATOR=='/') {
$dir_does = "That directory is not executable.";
を削除。
5.上書き保存して、サーバーにアップします。
6.一旦、ワードプレスの管理画面で WordPress Mobile Pack を無効にしてから有効にします。
7.何やら質問されるので【YES】から始まるボタンをクリックしてください。
これで動くはず。
それはいいんですが、ちっとも良くないのがインストールしたサーバーによっては謎のエラーがでて使い物にならないところ。
Critical WordPress Mobile Pack Issue
Not able to cache images to /httpdocs/wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/c. That directory is not executable. Please ensure that the web server has write- and execute-access to it.
Not able to install theme files to /httpdocs/wp-content/themes. That directory is not executable. Please ensure that the web server has write- and execute-access to it.
(Deactivate and re-activate the WordPress Mobile Pack once resolved.)
「フォルダ(ディレクトリ)に実行権限がありません」というエラーなんですが、パーミションを「777」にしても解決しません。
エラーメッセージで検索しても解決策が良く分かりません。なので、強引に「実行権限があるかどうかのチェックをする部位を削除する」ことにしました。
※いきなり追記:PHPのセーフモードが諸悪の根源らしいので、ロリポップなどでしたら「PHPのセーフモードを解除する」のが一番楽です。
1.wordpress-mobile-pack.php をメモ帳など(行数が表示されるテキストエディタが便利)で開きます。
2.176~177行目の
} elseif (!is_executable($cache_dir) && DIRECTORY_SEPARATOR=='/') {
$cache_does = __("That directory is not executable.", 'wpmp');
を削除。
3.188~189行目の
} elseif (!is_executable($theme_dir) && DIRECTORY_SEPARATOR=='/') {
$theme_does = __("That directory is not executable.", 'wpmp');
を削除。
4.206~207行目の } elseif (!is_executable($destination_dir) && DIRECTORY_SEPARATOR=='/') {
$dir_does = "That directory is not executable.";
を削除。
5.上書き保存して、サーバーにアップします。
6.一旦、ワードプレスの管理画面で WordPress Mobile Pack を無効にしてから有効にします。
7.何やら質問されるので【YES】から始まるボタンをクリックしてください。
これで動くはず。