PHP warnings on incomplete tag index and mailing list addresses
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start with the named locations in system/core/tags.php, tagindex.php, various.php, mailinglist.php, and festival.php, then reproduce the listed requests and contribution form case on PHP 8.2 or later. Check how missing XPath results, route arguments, and optional form values are handled at those call sites. Done means the affected requests still return 404 where specified and the listed PHP warnings and deprecations no longer appear.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Incomplete or unknown addresses of the tag index and the mailing list answer correctly (404), but log PHP warnings and deprecations first, which clutters the log of every site that is crawled:
| Request | Message |
|---|---|
tag, tag/nl/, tag/nl/<unknown tag>, tag/<unknown language>/<tag> |
Attempt to read property "parentNode" on null in system/core/tags.php:11 (HyphaTags::findTagByLabel() reads ->parentNode of a search without result) |
tag, tag/nl/ |
urldecode(): Passing null to parameter #1 in tagindex.php:19 and explode(): Passing null to parameter #2 in various.php:177 (xpath_encode(null)) |
nl/<mailing list>/mails (no id) |
DOMDocument::getElementById(): Passing null to parameter #1 in mailinglist.php:752 |
festival contribution posted without a website value (for example by a configured contribution form without that field) |
DOMElement::setAttribute(): Passing null to parameter #2 in festival.php:820 (not the document.php:566 case of #408) |
Steps to reproduce. Open tag/nl/Bestaat%20niet and tag/nl/ on a fictional site: 404, and the messages above in the container log on PHP 8.2, 8.4 and 8.5 (main, d97ab7b).
Suggested fix: in findTagByLabel() return null when the search finds nothing ($node = $hyphaXml->findOneXPath($path); return $node ? new HyphaTag($node->parentNode) : null;), return 404 when the label argument is missing, return 404 in mailingView()/mailingEditView() when there is no id, and use dataFor(…, '') for optional contribution fields.
- Ngôn ngữ chính
- JavaScript
- Star
- 5
- Fork
- 9
- Merge trung bình
- 18 giờ 7 phút
- Pull request đã merge (30 ngày)
- 11
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 khác của PlanBCode/hypha
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
Độ 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
-
Impact: Medium Level: Easy Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Độ khó 2/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
-
Impact: Low Level: Easy Type: Bug Value: Coders
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PlanBCode/hypha#586 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PlanBCode/hypha
Issue tương tự
-
FEATURE REQUEST
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ds-bot collides with dsh-argp: tool "recall" is already registered, Bot layer never activatesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Fei2411/DeepSeek-Bot#703 ·
-
area:web first-timers-only good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
career-ops-hq/career-ops#6264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
catppuccin/firefox#21 ·
-
[Server Submission]: Wiro AIĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
cline/mcp-marketplace#3394 ·