Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Export to pdf forma...
 
Notifications
Clear all

Export to pdf format failure

14 Posts
3 Users
0 Reactions
6,083 Views
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 
[#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


 
Posted : 15 Apr 2020 19H17
Gautier
(@gautier)
Posts: 207
Active Member Admin Registered
 

Hello,

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


 
Posted : 16 Apr 2020 17H03
babynus
(@babynus)
Posts: 14966
Main Contributor 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 ?


 
Posted : 17 Apr 2020 13H30
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 

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


 
Posted : 17 Apr 2020 17H09
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 17 Apr 2020 17H38
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 

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


 
Posted : 17 Apr 2020 18H12
babynus
(@babynus)
Posts: 14966
Main Contributor 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 ?


 
Posted : 18 Apr 2020 21H15
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 

This issue occurs on every risk entry.


 
Posted : 19 Apr 2020 17H52
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 20 Apr 2020 11H55
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 

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,


 
Posted : 21 Apr 2020 17H04
babynus
(@babynus)
Posts: 14966
Main Contributor 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, ...


 
Posted : 21 Apr 2020 17H47
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 21 Apr 2020 17H59
 fmt
(@fmt)
Posts: 36
Active Member
Topic starter
 

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


 
Posted : 21 Apr 2020 18H07
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 21 Apr 2020 18H17
Share:

Open source project management software

Subscribe to our newsletter

© All Rights Reserved. 2025 ProjeQtOr

Scroll to Top