New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old Version 4.03 doesn't work anymore? #410

Open
danypt77 opened this Issue Nov 13, 2018 · 11 comments

Comments

Projects
None yet
3 participants
@danypt77

danypt77 commented Nov 13, 2018

Hello,

i had the old version of 4.03 installed on my webserver. Now it doesn't work anymore. Since 1 or 2 weeks, it shows me an error when i try to open a pdf trough a link created by me.

It doesn't work anymore, i don't know why. When loading the pdf i become an error message. Don't know why. I didn't change anything on codes or so...

Thank you for your help

@danypt77 danypt77 changed the title from Old Version 4.03 doesnt't work anymore? to Old Version 4.03 doesn't work anymore? Nov 13, 2018

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 13, 2018

Hi!
Can you provide your error message please?
Regards,
LBF

@danypt77

This comment has been minimized.

danypt77 commented Nov 13, 2018

Pop ups a error message:

"Error
Failed to load PDF document."

Button says: reload

I don't know why. I reuploaded the html2pdf files to another server, it doesn't work either.

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 13, 2018

You can:

  • Try to get your error.log file for a more verbose message,
  • Use the debug mode of Html2Pdf,
  • Try to get the Html output first
@danypt77

This comment has been minimized.

danypt77 commented Nov 13, 2018

i activated on the file html2pdf.class.php this:

$this->_debugActif = true;

and i get this on output:

PAGE 1 Begin 1 542 120 088 612.9 ms1 542 120 088 612.9 ms 0.0 Ko 0.0 Ko
PAGE 1 End 1 542 120 088 617.4 ms 4.5 ms 0.0 Ko 0.0 Ko
PAGE 2 Begin 1 542 120 088 617.4 ms 0.1 ms 0.0 Ko 0.0 Ko
PAGE 2 End 1 542 120 088 619.4 ms 2.0 ms 0.0 Ko 0.0 Ko
PAGE 3 Begin 1 542 120 088 619.5 ms 0.1 ms 0.0 Ko 0.0 Ko
PAGE 3 End 1 542 120 088 621.4 ms 1.9 ms 0.0 Ko 0.0 Ko
PAGE 4 Begin 1 542 120 088 621.4 ms 0.1 ms 0.0 Ko 0.0 Ko
PAGE 4 End 1 542 120 088 623.3 ms 1.9 ms 0.0 Ko 0.0 Ko
PAGE 5 Begin 1 542 120 088 623.4 ms 0.0 ms 0.0 Ko 0.0 Ko
PAGE 5 End 1 542 120 088 625.3 ms 1.9 ms 0.0 Ko 0.0 Ko
Before output 1 542 120 088 625.8 ms 0.5 ms 0.0 Ko 0.0 Ko

@danypt77

This comment has been minimized.

danypt77 commented Nov 13, 2018

Try to get the Html output first

i made that, everything in html seems to appear well. but a little bit crooked.

@danypt77

This comment has been minimized.

danypt77 commented Nov 13, 2018

Try to get your error.log file for a more verbose message

don't know how to do that :S

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 14, 2018

Ok, so try to put your content in w3 validator:
https://validator.w3.org/#validate_by_input

Your debug seems right to me, don't you have an error.log?
Regards,
LBF

@danypt77

This comment has been minimized.

danypt77 commented Nov 14, 2018

what i get on w3 validator is this:

Fatal Error: Cannot recover after last error. Any further errors will be ignored.

From line 388, column 30; to line 389, column 31

g_match('/<body/isU', $html))↩ $html = $this->getHtm

@danypt77

This comment has been minimized.

danypt77 commented Nov 14, 2018

I have upload the new source file (v.4.03.) doesn't work... I really don't understand how it can stop working, without touching anything....

i will try the newer version ...

@danypt77

This comment has been minimized.

danypt77 commented Nov 14, 2018

tested the newer version (new version v4.4.0 of html2pdf) - doesn't work either. Im helpless.

@spipu

This comment has been minimized.

Owner

spipu commented Nov 14, 2018

Have look at the content of your pdf file to see if there is directly a php error ?

And also, look your php error file. If you don’t know how, it means that you never look at errors, that is very very bad...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment