RSSを表示時にエラー

2016年3月22日 at 12:47

バグではないのかもしれないですが・・・
Concrete5で作成したページのRSS(RSS表示ブロックではないです)にアクセスした際に、以下のエラーが発生しました。

Exception Occurred: *****/concrete/controllers/feed.php:4 Declaration of Concrete\Controller\Feed::get($identifier) should be compatible with Concrete\Core\Controller\AbstractController::get($key = NULL, $defaultValue = NULL) (2)

/concrete/controllers/feed.php
の6行目を
public function get($identifier = null, $defaultValue = null)
と書き換え、
継承元クラスのメソッドと引数を揃えるとエラーが消えました。

エラーが発生したサーバとは異なる環境では問題なかったので、
PHPの設定が原因なのでしょうか・・・

ご回答いただけますと幸いです。
何卒よろしくお願いしたします。

タグ:

Re: RSSを表示時にエラー

2016年3月22日 at 12:49
こちらはバグです。修正方法もシェアしていただいてありがとうございます。次のバージョンで同様に修正されます。

http://github.com/concrete5/concrete5/pull/3607
 

Re: RSSを表示時にエラー

2016年3月22日 at 14:50
やはりバグなのですね・・・
承知しました。ご回答ありがとうございます。