1

I have a big problem, I don't understand nothing !
I have my document done and everything works perfect in my local server, I get it my PDF file without problems but... in the remote server...
Error nº 7
The content of a TD tag does not fit on only one page
????
What do you think? I'm desperated !
Apa Euskal Herria

2

it is coming from a difference into your local server config and your remote server config.

you have to compare them.

which version of HTML2PDF are you using ?
Ancien pseudo : lolo

3

My html2pdf.class is

/**
* Logiciel : HTML2PDF
*
* Convertisseur HTML => PDF, utilise TCPDF
* Distribué sous la licence LGPL.
*
* @author Laurent MINGUET <webmaster@html2pdf.fr>
* @version 4.01
*/

The problem is that I don't have any pribilege in remote server, I can't change anything there, uffff .... any soution? anyone? please !
Apa Euskal Herria

4

I ask to my server and they told me: everything is ok , seems ok , what I have to look after in my server?
Means, what could be the problem?
I took it all the html2pdf examples and obviously in my local server everything ok, but in my server no ok!
I understand that the problems comes from there but they don't know what could be !
I need something to say, for example, you have to put your safe_mode ON , or something like that...
Apa Euskal Herria

5

you are not the only one with this pb, and it has never been solved sad

i don't know why, but it seems that on some servers et configs, html2pdf does not work sad

have you tried to generate a very simple html, without any table ?

when you call phpinfo(), have you a difference between the result on the server, and your local environement ?
Ancien pseudo : lolo

6

Ok I'm gonna send to the server my phpinfo() , and then they'll chesk it
But anyway, I tried to generate aother PDF with html2pdf exenples, and allaways the same problem

ERREUR n°7
Fichier : /var/www/vhosts/intranet.forestpioneer.com/httpdocs/intranet/html2pdf/html2pdf.class.php
Ligne : 4785

le contenu d'une balise TD ne rentre pas sur une seule page

But it is only one example that PDF was created, an it is in exemples/exemple11.php.

Ahhh .... thanks for youl help Spipu ! smile
Apa Euskal Herria

7

My server aswer:

'disable_functions = proc_open, proc_close, pclose, proc_get_status, proc_nice, disk_free_space, diskfreespace, set_time_limit, leak, tmpfile, system, system_exec, shell_exec, shell, passthru, phpinfo, pcntl_exec, dl, proc_terminate'

Someones know the problem?
Apa Euskal Herria

8

Try this :


add this row in the html2pdf.class.php :

HTML2PDF::$SUBOBJ->pdf->getPage();

just before this :

$sub_html = clone HTML2PDF::$SUBOBJ;


It works for me.

Why ?

9

Ancien pseudo : lolo

10

You are my prefer super heroe from now till the end of my days !
Thanks a lot Charles !!!!!!

Thanks to Spipu too, you are not my prefer super hero , just one of my heroes jeje !!! thanks !!
Apa Euskal Herria

11

EN : I solved the problem by updating my PHP from 5.1.6 to 5.3.3 this morning.
FR : J'ai réglé le problème en passant mon PHP de la version 5.1.6 à la version 5.3.3 ce matin.

12

Pierre CIHOLAS (./11) :
EN : I solved the problem by updating my PHP from 5.1.6 to 5.3.3 this morning.
FR : J'ai réglé le problème en passant mon PHP de la version 5.1.6 à la version 5.3.3 ce matin.

hi,
i have a php/mysql with a simple html table showing results from the dbase, in 2 or more pages.
but i get the error; The content of a TD tag does not fit on only one page.
is it not possible or should i move to another webserver?

13

have you tried the examples ? if the examples do not work, the pb is coming from your php version.
Ancien pseudo : lolo

14

Spipu (./13) :
have you tried the examples ? if the examples do not work, the pb is coming from your php version.

Its working if the table fits on one page.
If the table (pulled from dbase), exceeds 1 page i get the error.
moving to webserver/ php 5.3.3 will fix this?

15

have you put your table in another table ?
Ancien pseudo : lolo

16

Spipu (./15) :
have you put your table in another table ?


Solved! (excellent tip spipu!
i removed a nested table. - full results.

merci

17

charles i also have this problem. i work to fix problem for 5 hours but i cant do. I finish my portal on my localhost but when i send it to web server, i have a same error. So thank you! thank you! thank you! smile Its work!