View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Export to PDF error - ProjeQtOr
 

[SOLVED] Export to PDF error

More
03 Apr 2018 16:58 #1 by karl.binet
Hi,

Version 7.0.1
NOTE: this errors occurs only when French - Canda is selected as language.
It's working fine when English is selected as language.

If i go to Opportunites and hit export to PDF i'm getting an error
Same for "Issues"

Some are working fine like, Risks, Project, i have not tried all of them.

ERROR : An error has occured on 2018-04-03 à 10:49:44

here what I get in projetor.log

2018-04-03 10:49:44.096 ***** ERROR ***** [V7.0.1] EXCEPTION *****
2018-04-03 10:49:44.096 ***** ERROR ***** [V7.0.1] on file '/var/www/html/external/html2pdf/src/Html2Pdf.php' at line (545)
2018-04-03 10:49:44.096 ***** ERROR ***** [V7.0.1] cause = The output document name [] is not a PDF name
2018-04-03 10:49:44.096 ***** ERROR ***** [V7.0.1] => #0 /var/www/html/view/print.php (245) -> output()
2018-04-03 10:49:44.096 ***** ERROR ***** [V7.0.1] => #1 /var/www/html/view/print.php (186) -> finalizePrint()

thanks

Please Log in or Create an account to join the conversation.

More
03 Apr 2018 20:41 - 03 Apr 2018 20:43 #2 by babynus
Replied by babynus on topic Export to PDF error
Hi

This is an issue on V7.0.
In fact, generation of files with name containing accents fails (only on Linux not on Windows).
It is a security control that exists since V5.0 ... and it sends empty file name to html2pdf (external library generating pdf).
In fact, older version od html2pdf replaced emty file name with "document.pdf", but it does not do it any more....

To reteive correct behavior, corresponding to previous version, just add one line before 245 in /view/print.php, this way :
      if (!$outputFileName) $outputFileName='document.pdf';
      $html2pdf->Output($outputFileName);

Ticket #3298 recorded.
Fix (better that the one proposed) will be included in V7.0.3

Babynus
Administrator of ProjeQtOr web site
Last edit: 03 Apr 2018 20:43 by babynus.

Please Log in or Create an account to join the conversation.

More
03 Apr 2018 21:21 #3 by karl.binet
Replied by karl.binet on topic Export to PDF error
Hi Babynus,

the fix is working fine

Thanks

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.