Forum

Export to pdf forma...
 
Notifications
Retirer tout

Export to pdf format failure

14 Posts
3 Utilisateurs
0 Reactions
6,065 Vu
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 
[#6645]

Hello !

I experienced issues for pdf export at two places, with two different logged errors:
- Meetings export :
2020-04-15 17:03:07.651 ** ERROR ** [V8.4.3] EXCEPTION **
2020-04-15 17:03:07.651
** ERROR ** [V8.4.3] on file '/var/www/html/projeqtor/external/html2pdf/src/Parsing/Html.php' at line (262)
2020-04-15 17:03:07.651
** ERROR ** [V8.4.3] cause = Tags are closed in a wrong order for

2020-04-15 17:03:07.651 ** ERROR ** [V8.4.3] => #0 /var/www/html/projeqtor/external/html2pdf/src/Parsing/Html.php (94) -> getTagAction()
2020-04-15 17:03:07.651
** ERROR ** [V8.4.3] => #1 /var/www/html/projeqtor/external/html2pdf/src/Html2Pdf.php (610) -> parse()
2020-04-15 17:03:07.651
** ERROR ** [V8.4.3] => #2 /var/www/html/projeqtor/view/print.php (309) -> writeHTML()
2020-04-15 17:03:07.652
** ERROR ** [V8.4.3] => #3 /var/www/html/projeqtor/view/print.php (252) -> finalizePrint()

- Risk export :
2020-04-15 17:12:12.875 ** ERROR ** [V8.4.3] ERROR **
2020-04-15 17:12:12.875 ** ERROR ** [V8.4.3] on file '/var/www/html/projeqtor/external/html2pdf/src/Html2Pdf.php' at line (5283)
2020-04-15 17:12:12.875 ** ERROR ** [V8.4.3] cause = Undefined offset: 1


 
Posté : 15/04/2020 7:17 pm
Gautier
(@gautier)
Posts: 207
Membre Admin Registered
 

Hello,

Indeed there is an issue.
We will correct it in next patch 8.4.4


 
Posté : 16/04/2020 5:03 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

We could fix the isue on Meeting export to PDF.
But we could not on Risk form. Export works fine for us.
Could you please try and reproduce on demo ( https://demo.projeqtor.org) and indicate id of Risk on which you reproduce the issue ?


 
Posté : 17/04/2020 1:30 pm
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 

Hi,

Thanks again for your support.
In fact, I can't reproduce the risk issue in the demo project.
Nevertheless, this issue still occurs in my local project (v8.4.3).
Versions hereafter :

ProjeQtOr V8.4.3 (258)

Website : http://www.projeqtor.org

Version of external libraries :
. Dojo : 1.16.2
. html2pdf : 5.2.2
. CK Editor : 4.11.2
. pChart2 : 2.1.4
. phpMailer : 6.0.6
. html2canvas : 1.0.0-alpha.12
. pdfMake : 0.1.39
CryptoJS 3.1.2
phpAES
TinyButStrong 3.10.1
XLSReader


 
Posté : 17/04/2020 5:09 pm
(@babynus)
Posts: 14952
Membre Admin
 

Did you customize Risk screen ?
If so, please post here file /model/custom/Risk.php


 
Posté : 17/04/2020 5:38 pm
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 

No modification on this file (the custom file does not exist)


 
Posté : 17/04/2020 6:12 pm
(@babynus)
Posts: 14952
Membre Admin
 

Do you reproduce for all risks of only for some ?
On second case could you please try on demo copying most data (including long text fields in editor) from your risks to demo risk ?


 
Posté : 18/04/2020 9:15 pm
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 

This issue occurs on every risk entry.


 
Posté : 19/04/2020 5:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Difficult to investigate without reproducing...
Could you please try and change line 5283 in projeqtor/external/html2pdf/src/Html2Pdf.php
from

            $nbTrCurrs = count(self::$_tables[$param['num']]['cases'][self::$_tables[$param['num']]['tr_curr']-1]);

to

            if (! isset(self::$_tables[$param['num']]['cases'][self::$_tables[$param['num']]['tr_curr']-1])) $nbTrCurrs=0;
            else $nbTrCurrs = count(self::$_tables[$param['num']]['cases'][self::$_tables[$param['num']]['tr_curr']-1]);

Please tell us if this solves issue for you


 
Posté : 20/04/2020 11:55 am
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 

Hi,

Sorry for this issue...
For your information, considering this issue did not occur a lot on many other users, this issue has personally low impact for my usage.
Neverthelss, here is the new log following the patch you suggested:

2020-04-21 14:59:07.918 ** ERROR ** [V8.4.3] ERROR **
2020-04-21 14:59:07.918
** ERROR ** [V8.4.3] on file '/var/www/html/projeqtor/external/html2pdf/src/Html2Pdf.php' at line (5294)
2020-04-21 14:59:07.918
** ERROR ***** [V8.4.3] cause = Undefined index: td_y

Regards,


 
Posté : 21/04/2020 5:04 pm
(@babynus)
Posts: 14952
Membre Admin
 

OK, so idea to fix issue in external library is not good.

Could you please try and reproduce on Demo ?
Idea is to have a risk with same data as yours, mostly about long data in editors, tables, ...


 
Posté : 21/04/2020 5:47 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Forget about my last message.
I could reproduce !

In fact, issue occurs when you print "history".
If, on your userparameters, you change "print history" to "No", you won't get the issue.


 
Posté : 21/04/2020 5:59 pm
 fmt
(@fmt)
Posts: 36
Trusted Member
Début du sujet
 

That worked 🙂
Thanks !
Is this a "limitation" or the normal way to use export2pdf function ?


 
Posté : 21/04/2020 6:07 pm
(@babynus)
Posts: 14952
Membre Admin
 

It is an issue.
We'll work on it to fix it for next patch.


 
Posté : 21/04/2020 6:17 pm
Share:
Retour en haut