View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Missing HTML2PDF_locale.php - ProjeQtOr
 

[SOLVED] Missing HTML2PDF_locale.php

More
02 Dec 2015 19:07 #1 by ericzen
Hello,

I'm trying to generate PDF report and nothing done. In the log files there are messages which informed that html2pdf_locale.php is missing.

If i verify in the 5.1.4.zip, this file is not present in model folder. Is it normal ?

Ericzen

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

More
02 Dec 2015 19:28 #2 by ericzen
Replied by ericzen on topic Missing HTML2PDF_locale.php
I don't understand. I've open many versions of Projeqtor and this file is not present. Where is the problem with my config ?

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

More
02 Dec 2015 19:45 #3 by babynus
Replied by babynus on topic Missing HTML2PDF_locale.php
I confim that this file does not exist.
And PDF files are correctly generated without it :silly:
(You can check at demo.projeqtor.org)

Babynus
Administrator of ProjeQtOr web site

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

More
02 Dec 2015 19:45 - 02 Dec 2015 19:53 #4 by babynus
Replied by babynus on topic Missing HTML2PDF_locale.php
Could you post exact message logged ?
Which version of PHP are you using ?

(edit) I found issues about using html2pdf with PHP < 5.2...
It may be the issue.
PRojeQtOr requirement is PHP >=5.2

Babynus
Administrator of ProjeQtOr web site
Last edit: 02 Dec 2015 19:53 by babynus.

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

More
02 Dec 2015 20:03 - 02 Dec 2015 20:07 #5 by ericzen
Replied by ericzen on topic Missing HTML2PDF_locale.php
I use PHP 5.5.

Here is the log trace :

2015-12-02 18:47:39.279 ===== TRACE ===== Cron started at 02/12/2015 18:47:39
2015-12-02 18:48:49.700 ***** ERROR ***** Impossible to load class HTML2PDF_locale
=> Not found in ../model/custom/HTML2PDF_locale.php
=> Not found in ../model/HTML2PDF_locale.php
=> Not found in ../model/persistence/HTML2PDF_locale.php

2015-12-02 18:49:00.989 ***** ERROR ***** Impossible to load class HTML2PDF_locale
=> Not found in ../model/custom/HTML2PDF_locale.php
=> Not found in ../model/HTML2PDF_locale.php
=> Not found in ../model/persistence/HTML2PDF_locale.php

Thanks for your help
Last edit: 02 Dec 2015 20:07 by ericzen.

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

More
03 Dec 2015 12:33 #6 by babynus
Replied by babynus on topic Missing HTML2PDF_locale.php
Very stange, it seems that html2pdf class used in your case is not the one included in PRojeQtOr.
The expected correct file /external/html2pdf/html2pdf.class.php starts with :
<?php
/**
 * HTML2PDF Librairy - main class
 *
 * HTML => PDF convertor
 * distributed under the LGPL License
 *
 * @author  Laurent MINGUET <webmaster@html2pdf.fr>
 * @version 4.03
 */
 
if (!defined('__CLASS_HTML2PDF__')) {

    define('__CLASS_HTML2PDF__', '4.03');
    define('HTML2PDF_USED_TCPDF_VERSION', '5.0.002');
	
    require_once(dirname(__FILE__).'/_class/exception.class.php');
    require_once(dirname(__FILE__).'/_class/locale.class.php');
    require_once(dirname(__FILE__).'/_class/myPdf.class.php');
    require_once(dirname(__FILE__).'/_class/parsingHtml.class.php');
    require_once(dirname(__FILE__).'/_class/parsingCss.class.php');

    class HTML2PDF

The line
require_once(dirname(__FILE__).'/_class/locale.class.php');
includes correct class file for HTML2PDF_locale objects, so ProjeQtOr autoloader should not try to load this class definition.

1) What is your PHP version
2) what is your PHP stack (zend, linux php, WAMP, ...)
3) do you have other PHP applications running on same server, and if yes do they also usde HTML2PDF ?

Babynus
Administrator of ProjeQtOr web site

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

Moderators: babynusprotion
Time to create page: 0.041 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.