yamanoiです。
すいません。だめでしたか。
あとは、エラー行で$this->で読んでいるのをself::に変更してみてください。
これでダメなら、私には分かりません。
Re: Content Around Image【ページへのリンクを追加】をするとFatal errorが出てしまいます
2011年12月28日 at 12:42
Yamanoiです。
ためしに、エラーになった関数宣言にstaticが記述されていると思いますが
staticを削除して試してもらえますか。
Your post has been saved and will be published after approval by the forum moderator.
takeuchi
Re: Re: Content Around Image【ページへのリンクを追加】をするとFatal errorが出てしまいます
public static function getCollectionPathFromID($cID) {
$path = Cache::get('page_path', $cID);
if ($path != false) {
$this->getEncodePath($path);
}
$db = Loader::db();
$path = $db->GetOne("select cPath from PagePaths inner join CollectionVersions on (PagePaths.cID = CollectionVersions.cID and CollectionVersions.cvIsApproved = 1) where PagePaths.cID = ?", array($cID));
$path .= '/';
Cache::set('page_path', $cID, $path);
return $this->getEncodePath($path);
}
とありますが、上記のstaticの部分を消去すればよいのでしょうか?
エラーと宣言されている部分以外にもstaticと表記されている部分はいくつかあるのですが。
ちなみに、エラーを宣言された辺りのstaticのみを消去したところ
Fatal error: Call to undefined method ContentAroundImageBlockController::getEncodePath() in /home/***/***/public_html/concrete/models/page.php on line 596
とでてしまいました。