Fatal error: Uncaught TypeError: FreshRSS_CategoryDAO::findFeed():

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
php
領域
backend

調査の方向性

extensions/xExtension-HelloWorld/views/helpers/index/normal/entry_header.phtml の29行目から開始し、その呼び出しを app/Models/CategoryDAO.php の412行目にある findFeed のシグネチャと比較します。FreshRSS 1.21.1-dev で影響を受けるページを再現し、致命的な TypeError が発生しなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

説明

With FreshRSS 1.21.1-dev I got this error:

Fatal error: Uncaught TypeError: FreshRSS_CategoryDAO::findFeed(): 
Argument #2 ($feed_id) must be of type int, FreshRSS_Feed given, called in foo\bar\extensions\xExtension-HelloWorld\views\helpers\index\normal\entry_header.phtml on line 29 and 
defined in foo\bar\app\Models\CategoryDAO.php:412 Stack trace: 
#0 foo\bar\extensions\xExtension-HelloWorld\views\helpers\index\normal\entry_header.phtml(29): FreshRSS_CategoryDAO::findFeed(Array, Object(FreshRSS_Feed)) 
#1 foo\bar\lib\Minz\View.php(89): include('C:\\Software\\Int...') 
#2 foo\bar\lib\Minz\View.php(139): Minz_View->includeFile('/views/helpers/...') 
#3 foo\bar\app\views\index\normal.phtml(77): Minz_View->renderHelper('index/normal/en...') 
#4 foo\bar\lib\Minz\View.php(89): include('C:\\Software\\Int...') 
#5 foo\bar\lib\Minz\View.php(111): Minz_View->includeFile('/views/index/no...') 
#6 foo\bar\app\layout\layout.phtml(70): Minz_View->render() 
#7 foo\bar\lib\Minz\View.php(89): include('C:\\Software\\Int...') 
#8 foo\bar\lib\Minz\View.php(102): Minz_View->includeFile('/layout/layout....') 
#9 foo\bar\lib\Minz\View.php(69): Minz_View->buildLayout() 
#10 foo\bar\lib\Minz\Dispatcher.php(56): Minz_View->build() 
#11 foo\bar\lib\Minz\FrontController.php(58): Minz_Dispatcher->run() 
#12 foo\bar\p\i\index.php(57): Minz_FrontController->run() 
#13 {main} thrown in foo\bar\app\Models\CategoryDAO.php on line 412
主要言語
PHP
スター
3
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。