complex table generate fail
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
Hướng nghiên cứu
The error is raised in TableHeaderFooter in src/Mpdf.php, called from _tableWrite in src/Tag/Table.php, which is reached when a table is closed. The reporter has no reproducing HTML, so first build a multi-page table with header or footer rows and confirm the notice. Done means that case renders without the 'Undefined array key' error and the fix is covered by a test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Guidelines
- I understand that if I fail to adhere to contribution guidelines and/or fail to provide all required details, this issue may be closed without review.
Description of the bug
{
"message": "Undefined array key 3",
"exception": "ErrorException",
"file": "(*)/vendor/mpdf/mpdf/src/Mpdf.php",
"line": 11892,
"trace": [
{
"file": "(*)/vendor/mpdf/mpdf/src/Mpdf.php",
"line": 11892,
"function": "Illuminate\\Foundation\\Bootstrap\\{closure}",
"class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions",
"type": "->"
},
{
"file": "(*)/vendor/mpdf/mpdf/src/Mpdf.php",
"line": 22556,
"function": "TableHeaderFooter",
"class": "Mpdf\\Mpdf",
"type": "->"
},
{
"file": "(*)/vendor/mpdf/mpdf/src/Tag/Table.php",
"line": 1131,
"function": "_tableWrite",
"class": "Mpdf\\Mpdf",
"type": "->"
},
{
"file": "(*)/vendor/mpdf/mpdf/src/Tag.php",
"line": 247,
"function": "close",
"class": "Mpdf\\Tag\\Table",
"type": "->"
},
{
"file": "(*)/vendor/mpdf/mpdf/src/Mpdf.php",
"line": 13827,
"function": "CloseTag",
"class": "Mpdf\\Tag",
"type": "->"
},
{
"file": "(*)/app/Http/Controllers/PrintController.php",
"line": 76,
"function": "WriteHTML",
"class": "Mpdf\\Mpdf",
"type": "->"
},
...]
}
mPDF version
v8.2.4
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
8.2
Reproducible PHP+CSS+HTML snippet suffering by the error
no time to produce, may be later
how to fix:
mpdf.php:11892 change to if (array_key_exists($i,$content)) { foreach ($content[$i] as $tablehf) {
mpdf.php:12332 change to }}// end column $content
- Ngôn ngữ chính
- PHP
- Star
- 4.7k
- Fork
- 1.1k
- Merge trung bình
- 6 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 mpdf/mpdf
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorCó thể đã có người làm @Syed-Shehroz-Sohail đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Closing a column set with an image in it leaves the cursor below the page, wasting the rest of itĐang mở
Độ 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 5 ngày
-
8.3: Local fallback for external stylesheets is inverted in CssLoader (basepathIsLocal check negated) — CSS silently dropped when remote fetch failsCó thể đã có người làm @hemreduru đã nhận 12 ngày trước. Đang mở
Độ 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 5 ngày
-
Tag/Td.php silently clears cell top/bottom borders when a row has a partial border (plus two warnings and a deprecation)Có thể đã có người làm @alizamani1616 đã nhận 61 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
AdjustHTML() collapses multiple spaces inside quoted attribute values (src, href)Có thể đã có người làm @sornapudisuresh đã nhận 130 ngày trước. Đang mởbug/fix help wanted HTML/CSS support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
mpdf/mpdf#2208 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
Issue tương tự
-
Độ 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
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Перевод устарел
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ 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