カテゴリー
WordPress

wp-content ディレクトリが見つかりません

WordPress 3.3.1で

wp-content ディレクトリが見つかりません。 (日本語版)
Unable to locate WordPress Content directory (wp-content). (英語版)

というエラーメッセージがプラグインの更新で出るようになりました。以前はエラーは出てなかったのですが、最近バージョン 3.3.1にアップグレードして以降こうなったような気がします。

調べてみたところ、一番簡単な解決方法は ./wp-config.php に

define ('FS_METHOD', 'direct');

を追加することと、./wp-content ディレクトリ以下をapacheのユーザー権限に変更してしまうことでした。

# chown -R www wp-content

これでアップデートの際にftp/sftpの情報なしに直接アップデートしてくれるようになりました。

参考URL:
WordPress Upgrade Constants
http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

  • FS_METHOD forces the filesystem method. It should only be “direct”, “ssh2”, “ftpext”, or “ftpsockets”. Generally, You should only change this if you are experiencing update problems, If you change it, and it doesnt help change it back/remove it, Under most circumstances, setting it to ‘ftpsockets’ will work if the automatically chosen method does not.
    • (Primary Preference) “direct” forces it to use Direct File I/O requests from within PHP, this is fraught with opening up security issues on poorly configured hosts, This is chosen automatically when appropriate.
    • (Secondary Preference) “ssh2” is to force the usage of the SSH PHP Extension if installed
    • (3rd Preference) “ftpext” is to force the usage of the FTP PHP Extension for FTP Access, and finally
    • (4th Preference) “ftpsockets” utilises the PHP Sockets Class for FTP Access.

 

カテゴリー
WordPress

WordPress 3.3.1

年末にWordPress3.3へのアップデートを済ませたところが、今日になって3.3.1がリリースされました。えらい短期間に行われたアップデートですが、内容的には「クロスサイトスクリプティングの脆弱性も修正」とあるのでさっさと入れた方が良いと思いアップデートしました。とりあえず問題はなさそうです。

WordPress 3.3.1 セキュリティおよびメンテナンスリリース

カテゴリー
WordPress

wp-includes/query.php array line 2390

Warning: explode() expects parameter 2 to be string, array given in /xxx.....xxxx/wp-includes/query.php on line 2390

WordPressを3.1.3に上げたら何かこんなエラーが出るようになりました。

丁度サーバーの引越しをしたタイミングだったので何かヘマをしたのかと思いましたがどうやらバグらしいです。

ソースをハックしたりする方法もあるようですが、次の3.1.4を待つか(非公式)Hotfixを当てるかが解決方法になるようです。

(非公式)Hotfixはプラグインになって提供されています。

Hotfix
http://wordpress.org/extend/plugins/hotfix/

プラグインの新規追加で “hotfix” で検索すれば同じものが見つかるのでそこから「いますぐインストール」でOKです。

以下、参考URL

[UPDATE Error]wp-includes/query.php array line 2390 (22 posts)
http://wordpress.org/support/topic/update-errorwp-includesqueryphp-array-line-2390
[resolved] Error message when i click on media in admin (25 posts)
http://wordpress.org/support/topic/error-message-when-i-click-on-media-in-admin

 

カテゴリー
WordPress

WordPress を自動アップグレード(3.0)

WordPressを3.0にアップグレードしました。
ちょっと前から「3.0が出たのでアップグレードできるよー」というメッセージがダッシュボードに出てたのに気付いていましたが、2.xからのアップになるのでしばらく様子を見つつ実験用のサイトから順にアップしていきました。心配とは裏腹に特に問題もなくアップグレードできました。3.0って「セロニアス(Thelonious)」と言うんですね。私的には「WordPress と WordPress MU の統合」というのが嬉しいかも。

WordPress 3.0 日本語版リリースのお知らせ

カテゴリー
WordPress

WordPress を自動アップグレード(2.8.4)

2.8.3が出てたのは知っていたのですが何となく過ごしていたらまたいつの間にかWordPress 2.8.4 日本語版が出てました。こういう自動アップグレードはうまく動き出すとやはり便利でいいですね。

以下は、一応coreserverで自動アップデートできるようにするためのおまじないのメモです。

  • /(ユーザールート)に /tmp ディレクトリを作成
  • WordPressの /wp-admin ディレクトリに以下の内容の .htaccess ファイル作成
AddHandler application/x-httpd-phpcgi php
AddHandler application/x-httpd-phpcgi php
AddHandler application/x-httpd-phpcgi php
AddHandler application/x-httpd-phpcgi php

以上