Re: mktime() error on DOMPDF include

46 views
Skip to first unread message

Fabien Ménager

unread,
Sep 14, 2012, 2:17:39 AM9/14/12
to dom...@googlegroups.com
Hum, DOMPDF doesn't use the mktime function, I guess it's used in "/home/content/81/9322681/html/app/view/sign_up_form.php".
Also, it seems to be a warning in PHP 5.1 about strict strandards, but DOMPDF doesn't enable strict standards by itself.

On Friday, September 14, 2012 5:23:39 AM UTC+2, Luke wrote:
I'm getting the following error after including the DOMPDF class, any help is greatly appreciated!

ERRNO: 2048
			  
TEXT: mktime() [function.mktime]: You should be using the time() function instead
			  
LOCATION: /home/content/81/9322681/html/app/view/sign_up_form.php, line 589, at September 13, 2012, 11:21 pm
Showing backtrace:
call_user_func(Array[2], "2048", "mktime() [<a href='function.mktime'>function.mktime</a>]: You sh...", "/home/content/81/9322681/html/app/view/sign_up_form.php", "589", Array[5]) # line 1421, file: /home/content/81/9322681/html/app/libs/smarty/Smarty.class.php
Smarty.mutingErrorHandler("2048", "mktime() [<a href='function.mktime'>function.mktime</a>]: You sh...", "/home/content/81/9322681/html/app/view/sign_up_form.php", "589", Array[5]) # line    0, file: unknown
mktime() # line  589, file: /home/content/81/9322681/html/app/view/sign_up_form.php
SignUpForm.prorate("150.00") # line  148, file: /home/content/81/9322681/html/app/view/sign_up_form.php
SignUpForm.__construct() # line   19, file: /home/content/81/9322681/html/app/view/smarty_plugins/function.load_presentation_object.php
smarty_function_load_presentation_object(Array[2], Object: Smarty_Internal_Template) # line   30, file: /home/content/81/9322681/html/app/view/templates_c/477ce152080d2027e871e39c56b769210f9b0473.file.sign_up_form.tpl.php
content_4fe70e524347c3_09542081(Object: Smarty_Internal_Template) # line  180, file: /home/content/81/9322681/html/app/libs/smarty/sysplugins/smarty_internal_templatebase.php
Smarty_Internal_TemplateBase.fetch("sign_up_form.tpl", null, null, null, true) # line  374, file: /home/content/81/9322681/html/app/libs/smarty/sysplugins/smarty_internal_templatebase.php
Smarty_Internal_TemplateBase.display("sign_up_form.tpl") # line   44, file: /home/content/81/9322681/html/app/join.php


Luke Stachowicz

unread,
Sep 16, 2012, 11:56:16 AM9/16/12
to dom...@googlegroups.com
Thanks for the response. I understand what you're saying; however, if
I comment out the dompdf include, the page works fine. Then if I
change the name of the dompdf file to "ompdf" in the include
misspelled on purpose, the page works fine but I get a warning that
the file can't be found.

This leads me to still think something included in the DOMPDF file is
causing the (mktime) error I listed before.

I'm not really sure how to overcome this error and use the DOMPDF....

Thanks again.
> --
> You received this message because you are subscribed to the Google Groups
> "dompdf" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dompdf/-/te1rTOwRTR4J.
>
> To post to this group, send email to dom...@googlegroups.com.
> To unsubscribe from this group, send email to
> dompdf+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/dompdf?hl=en.

John Bell

unread,
Sep 17, 2012, 4:07:25 AM9/17/12
to dom...@googlegroups.com
Which version of php are you using?

As Fabien said, dompdf does not change the error reporting level or use
mktime.

One possibility is that including dompdf causes line 589 of
sign_up_form.php to be called, and it is not called if dompdf is not
included. Removing the mktime() call would be the best solution. You can
also test the error_reporting level just before this line.

We would need to see some code to be able to offer any more help.

Best regards

John Bell
=========

On 16/9/12 16:56, Luke Stachowicz wrote:
> Thanks for the response. I understand what you're saying; however, if
> I comment out the dompdf include, the page works fine. Then if I
> change the name of the dompdf file to "ompdf" in the include
> misspelled on purpose, the page works fine but I get a warning that
> the file can't be found.
>
> This leads me to still think something included in the DOMPDF file is
> causing the (mktime) error I listed before.
>
> I'm not really sure how to overcome this error and use the DOMPDF....
>
> Thanks again.
>
> On Fri, Sep 14, 2012 at 2:17 AM, Fabien M�nager
Reply all
Reply to author
Forward
0 new messages