Comments (4)
I'd like to submit a pull request to fix this, and I'd like to do this for the stable branch, so this will be fixed in 6.1. Is this OK, and will the fix be merged upstream to the development branch?
I'm new to github and not too familiar with its "best practices".
from mpdf.
The 6.x branch is frozen for non-critical fixes. This is not a cricital fix, so please base your PR on the development branch and the fix will be available in 7.x releases.
from mpdf.
I just had a closer look at the relevant code in different mpdf versions.
The problem was observed with 6.0, which is still used by the dokuwiki project.
The line labelled 'fix' is the proposed fix from a posting in the old mpdf forum, which worked for me.
In 6.1 and -dev the code has been changed, and though it doesn't match the original proposal for a fix, it seems to work properly:
6.0: if (empty($arrayaux[$i][0]) && $arrayaux[$i][16]!=='0' && empty($arrayaux[$i][7])) {
fix: if (empty($arrayaux[$i][0]) && $arrayaux[$i][0]!=='0' && $arrayaux[$i][16]!=='0' && empty($arrayaux[$i][7])) {
6.1: if (empty($arrayaux[$i][0]) && (isset($arrayaux[$i][16]) && $arrayaux[$i][16] !== '0') && empty($arrayaux[$i][7])) {
dev: if (empty($arrayaux[$i][0]) && (isset($arrayaux[$i][16]) && $arrayaux[$i][16] !== '0') && empty($arrayaux[$i][7])) {
I've just downloaded the mpdf 6.1 zip file from git here, replaced the original mpdf code in my dokuwiki installation by the 6.1 version, and the problem I had observed with 6.0 doesn't occur anymore.
So I think this bug can simply be closed.
Thanks.
from mpdf.
Cool. Thanks for your insight!
from mpdf.
Related Issues (20)
- Nesting a table inside a tfoot element results in "Trying to access array offset on null"
- PDF/A : endobj is missing EOL-Marker
- ArrayAccess::offsetSet()" might add "void" as a native return type
- Error while trying to save pdf to a folder. HOT 1
- Write HTML - NOTICE Uninitialized string offset - XXXX on Otl.php HOT 1
- Subsequent calls to Output() of pdf with images are missing images in 2++ data HOT 1
- SELECT don't show selected element HOT 6
- Signed PDF doesn't show signature
- Font size in absolute positioned div depends on position on page
- MPDF "Trying to access array offset on null" error during pdf generation
- Documentation Update Needed for Margin Property Syntax Change in mPDF Version 8 HOT 1
- Bug Report HOT 1
- Set margin-left and margin-right in @page :first { ... }
- text-align: justify add spases between letters not words
- Fatal error: Uncaught Error: Class "Mpdf\Mpdf" not found in C:\xampp\htdocs\CV Builder\index.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\CV Builder\index.php on line 5
- MPDF 8.2 with PHP 8.1 - cannot suppress PHP notices and warnings HOT 1
- PDF/A-3b support
- mPDF Package Incompatibility with Swoole in Laravel Octane (Streaming/Download Issue) HOT 3
- Bug in Mpdf::transformRotate: Unsupported operand types: string * int HOT 1
- Warnings that cause the pdf to break during download HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdf.