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

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.