This topic is locked

fatal error undefined function

8/26/2009 7:13:42 PM
PHPRunner General questions
woodey2002 author

Hi Guys
I am going crazy trying to sort this problem.
I have the calander template trying intergrate into my existing project.
I keep getting this error.
I am trying to use xampp for apache web server.
Fatal error: Call to undefined function dbvalue2time() in C:\Documents and Settings\Administrator\My Documents\PHPRunnerProjects\Project2\output\include\calmonthly_events.php on line 252.
Thanks,
J

J
Jane 8/27/2009

Hi,
please make sure you use latest update of Templates pack. Templates pack was updated to take advantage of new templates format.

woodey2002 author 8/27/2009

Many thanks Jane once again your a star.
This is the version of the temp pack i am using.
PHPRunner 5.1

shopcart/templates2009.php.zip
Is that OK many thanks once again,
Thanks again.
J

J
Jane 8/27/2009

Hi,
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

woodey2002 author 8/27/2009

Hi Jane
Many thanks again.
I opened a ticket ID:188618 and uploaded my project as you asked.
Kind regards,
James

woodey2002 author 8/28/2009

Hi Guys
Here is the fix supplied by the brilliant Jane and great phpRunner support Team.
They stated
this error happens because you've removed dbvalue2time function in the "Menu page: Before process" event.

> Please add followig code to this event and rebuild your project:

> ----------------------------------------------

> }

>

> function dbvalue2time($value)

> {

> $t = "";

> if ($value!="")

> {

> $tm1 = localtime(strtotime($value));

> $arr = array(0,0,0,$tm1[2],$tm1[1],0);

> $t = str_format_time($arr);

> }

> return $t;
Now work fine
MAJOR THANKS ONCE AGAIN to JANE AND ALL PHPRUNNER STAFF <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=43726&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />