View Full Version : Error in Task.class.php
Hey guys, got another one. I updated to the 4/09/2006 stable nightly build and after that, I received this error after clicking one of my overdue tasks:
Fatal error: Call to undefined function: dpconfig() in C:\apache2triad\htdocs\modules\tasks\tasks.class.p hp on line 303
I rolled back the file to a previous version and the error went away. Don't know if anyone else is having this problem, but I thought I would bring it to your attention.
My Installation:
Php 4.4.0
Apache 2
MySQL 4
Brent
MacOfTheEast
11-04-06, 12:28 AM
This probably has something to do with the fact that a couple of small database modifications are required to run that version of tasks.class.php. If you're interested, look at the stable_2 version of /db/upgrade_latest.sql.
MOTE
MOTE,
Thanks for the info, but I utilize the install/upgrade script and when this was performed it said it did not update any tables in my database. Must be a problem with the update scripts, since I utilize them everytime I go to a new stable build. Thanks!
Brent
debruyn
14-04-06, 04:02 AM
Fix found:
Isaac Niebeling iniebeling at efca.org our web guy found the error in the tasks.class.php file on line 303. It had read: ( ! ALL ONE LINE ! )
$sql = "SELECT sum(task_percent_complete * task_duration *" . dPconfig('daily_working_hours') . ")
changed it to:
$sql = "SELECT sum(task_percent_complete * task_duration *" . $dPconfig['daily_working_hours'] . ")
NOTE Added $ before dPconfig and changed () to [] in line. php was expecting it to be a function with the () when it should have been an array designated with [].
MacOfTheEast
14-04-06, 05:55 AM
Fix found:
Isaac Niebeling iniebeling at efca.org our web guy found the error in the tasks.class.php file on line 303.Excuse me, but what version of the file did you find that error in?
Thank you.
MOTE
MOTE,
The version that I was having problems with was the nightly stable build from about 2 nights ago. It might be fixed now, haven't been able to check.
Brent
MacOfTheEast
15-04-06, 01:28 AM
Fix found:
Isaac Niebeling iniebeling at efca.org our web guy found the error in the tasks.class.php file on line 303.
I finally found your version of the file and confirm the problem. I can also confirm that Isaac's fix works. Tell him "thank you" for me :)
MOTE
This issue is resolved on stable_2 branch of CVS.
Also corrected line 309 of that tasks.class.php file, with the same problem.
Pedro A.
debruyn
18-04-06, 02:58 AM
Sorry I didn't reply sooner guys. Had a long weekend (started Thursday afternoon). Yes, the .12 version of the file was in the stable_2 build. Thanks for your help.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.