エンジニアブログ
MT技術情報
検索エラー:Can't call method "server_offset" on unblessed reference
2009年12月17日
Can't call method "server_offset" on unblessed reference
検索を行おうとすると、上記のようなエラーが出る場合があります。
検索のフォームにIncludeBlogsの指定を入れる事で回避できます。
検索対象が自ブログの場合
<input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
検索対象が全ブログの場合
<input type="hidden" name="IncludeBlogs" value="<MTBlogs include_blogs="all"><$MTBlogID$><MTUnless name="__last__">,</MTUnless>" />