Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorrmadur
    • CommentTimeMar 4th 2010
     
    I upgraded XAMPP to the latest version 1.7.1 (with PHP 5.3.1 on it) and I found an incompatibilty:

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\dev\projetos\pdf\mPDF\MPDF\mpdf.php on line 28300
    Warning: Division by zero in C:\xampp\htdocs\dev\projetos\pdf\mPDF\MPDF\mpdf.php on line 4716

    Just to mention, it's written in http://mpdf1.com/manual/index.php?tid=260 that this version is runnin on PHP 5.2.8.

    All the best,
    Rogerio.
    • CommentAuthorIanBack
    • CommentTimeMar 6th 2010 edited
     
    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\dev\projetos\pdf\mPDF\MPDF\mpdf.php on line 28300
    I do not have access to  PHP 5.3.1

    Could you try editing line 28300 and let me know if it works:
    function SetSourceFile($filename) {
    $this->current_filename = $filename;
    $fn =& $this->current_filename;
    if (!isset($this->parsers[$fn]))
    // $this->parsers[$fn] =& new fpdi_pdf_parser($fn,$this);
    $this->parsers[$fn] = new fpdi_pdf_parser($fn,$this);

    if (!$this->parsers[$fn]->success) {
    $this->Error($this->parsers[$fn]->errormsg);    // Delete this line to return false on fail
    return false;
    }
    $this->current_parser =& $this->parsers[$fn];
    return $this->parsers[$fn]->getPageCount();
    }

    Warning: Division by zero in C:\xampp\htdocs\dev\projetos\pdf\mPDF\MPDF\mpdf.php on line 4716
    I am puzzled by this one. This is in <dottab> and the 'zero' should be the calculated width of one dot - so I don't see how it could be zero. Is this causing a problem? If so, could you post code?

    • CommentAuthorqdubois
    • CommentTimeMar 8th 2010 edited
     
    Hello,

    I use MPDF 43 with PHP 5.3.1 without any problem and without modifying MPDF.

    About the division by Zero issue i had it when my html was not clean. Meaning I did not close all my tab within my HTML.

    Regards

    Quentin

    • CommentAuthorhexabit
    • CommentTimeMar 9th 2010
     
    Supprisingly I have got some other strange error:
    "pdf is encrypted - please enter password" (the sentence
    is NOT exact) thing... but when I change the 28000th line
    as IanBack suggested the pdf generation was ok.

    my server is xampp 1.7.3a + PHP 5.3.1 (debian)

    I hope this will help someone.
    • CommentAuthorIanBack
    • CommentTimeMar 9th 2010
     
    Thanks. I will make that change in future versions anyway.