Fatal error: Uncaught TypeError: FreshRSS_CategoryDAO::findFeed():
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu tại dòng 29 của extensions/xExtension-HelloWorld/views/helpers/index/normal/entry_header.phtml và so sánh lời gọi của nó với chữ ký của findFeed tại dòng 412 của app/Models/CategoryDAO.php. Tái hiện trang bị ảnh hưởng trên FreshRSS 1.21.1-dev và xác minh rằng TypeError nghiêm trọng không còn xảy ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 3
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vimeo/psalm#14139 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
product/editor-v4 status/awaiting_triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wpvc
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 67/100
10up/simple-local-avatars#386 ·