akillerbee様、ありがとうございます!
>下記のログに当該エラーが出力されていないかを確認頂いたほうが良いかもしれません。
app/tmp/logs/*.log
確認したところ、errorログが15件でていました。驚汗
たぶん、ブログ関連は#8と#9あたりかと思うのですが・・・
念のため画像を添付しますね。
下記情報の書き出しで原因がわかりますでしょうか?
?#8 BlogController.php(551): Controller->paginate('BlogPost')
* ブログ記事を取得する
*
* @param array $options
* @return array
*/
protected function _getBlogPosts($options = []) {
$contentId = $listDirection = $listCount = null;
if(!empty($this->blogContent['BlogContent']['list_direction'])) {
$listDirection = $this->blogContent['BlogContent']['list_direction'];
}
if(!empty($this->blogContent['BlogContent']['list_direction'])) {
$listCount = $this->blogContent['BlogContent']['list_count'];
}
if ($this->contentId) {
$contentId = $this->contentId;
}
$options = array_merge([
'findType' => 'customParams',
'direction' => $listDirection,
'listCount' => $listCount,
'num' => $listCount,
'limit' => $listCount,
'contentId' => $contentId,
'page' => 1,
'sort' => 'posts_date',
'cache' => false,
], $options);
// 取得件数
// TODO num に統一する
if($options['listCount'] && !$options['num']) {
$options['num'] = $options['listCount'];
}
if($options['num']) {
$options['limit'] = $options['num'];
}
unset($options['listCount'], $options['num']);
$named = [];
if (!empty($this->request->params['named'])) {
$named = $this->request->params['named'];
}
if($named) {
if (!empty($named['direction'])) $options['direction'] = $named['direction'];
if (!empty($named['num'])) $options['num'] = $named['num'];
if (!empty($named['contentId'])) $options['contentId'] = $named['contentId'];
if (!empty($named['category'])) $options['category'] = $named['category'];
if (!empty($named['tag'])) $options['tag'] = $named['tag'];
if (!empty($named['year'])) $options['year'] = $named['year'];
if (!empty($named['month'])) $options['month'] = $named['month'];
if (!empty($named['day'])) $options['day'] = $named['day'];
if (!empty($named['id'])) $options['id'] = $named['id'];
if (!empty($named['no'])) $options['no'] = $named['no'];
if (!empty($named['keyword'])) $options['keyword'] = $named['keyword'];
if (!empty($named['author'])) $options['author'] = $named['author'];
if (empty($named['page'])) $this->request->params['named']['page'] = $options['page'];
if (empty($named['sort'])) $this->request->params['named']['sort'] = $options['sort'];
if (empty($named['limit'])) $this->request->params['named']['limit'] = $options['limit'];
if (empty($named['direction'])) $this->request->params['named']['direction'] = $options['direction'];
}
$this->paginate = $options;
return $this->paginate('BlogPost');
}
/**
?#9 BlogController.php(214): BlogController->_getBlogPosts(Array)
* [PUBLIC] ブログを一覧表示する
*
* @return void
*/
public function index() {
if($this->BcContents->preview == 'default' && $this->request->data) {
$this->blogContent['BlogContent'] = $this->request->data['BlogContent'];
}
if ($this->RequestHandler->isRss()) {
Configure::write('debug', 0);
if($this->blogContent) {
$channel = [
'title' => h($this->request->params['Content']['title'] . '|' . $this->siteConfigs['name']),
'description' => h(strip_tags($this->blogContent['BlogContent']['description']))
];
$listCount = $this->blogContent['BlogContent']['feed_count'];
} else {
$channel = [
'title' => $this->siteConfigs['name'],
'description' => $this->siteConfigs['description']
];
// TODO 暫定的に一番最初に登録したブログコンテンツの表示件数を利用
// BlogConfig で設定できるようにする
$blogContent = $this->BlogContent->find('first', ['order' => 'BlogContent.id', 'recirsive' => -1]);
$listCount = $blogContent['BlogContent']['feed_count'];
}
$this->set('channel', $channel);
$this->layout = 'default';
$template = 'index';
} else {
if($this->request->url == 'rss/index') {
$this->notFound();
}
$template = $this->blogContent['BlogContent']['template'] . DS . 'index';
$listCount = $this->blogContent['BlogContent']['list_count'];
}
$datas = $this->_getBlogPosts(array('listCount' => $listCount));
$this->set('editLink', array('admin' => true, 'plugin' => 'blog', 'controller' => 'blog_contents', 'action' => 'edit', $this->blogContent['BlogContent']['id']));
$this->set('posts', $datas);
$this->set('single', false);
$this->pageTitle = $this->request->params['Content']['title'];
$this->render($template);
}
/**
>デバッグモードの直接変更
変更をしたところ、全ページの上下にエラータグが出てしまいましたので
一旦OFFに戻してしまいました。すみません。汗