View Full Version : Edit Task Fatal Error
stargzr
02-02-06, 04:09 PM
I've updated some file related to tasks in the functions directory and the entire tasks module as well as the classes/query.class.php, but I must've missed one (or more).
I'm hesitant to update all of the files because I changed all of the references from Company to Organization throughout the files before updating.
Now, when I go to edit a task, I get this error:
Fatal error: Call to a member function on a non-object in /usr/local/web/oit/dotproject/modules/tasks/addedit.php on line 236
Any help you can give will be greatly appreciated!
pj
Sys Specs and file Vers would help.
I guess no one reads the "before you post" topic anymore...
Pedro A.
stargzr
03-02-06, 02:22 AM
Sorry, here they are:
Apache/1.3.33 (Unix)
PHP Version 4.3.9
MySQL 3.23.49
Dp 2.01 English
Everything was fine until I updated the task module, the functions/tasks_func.php and classes/query.class.php to enable the Tasks Per User option with the latest CVS on 2/1/2006.
Thanks for your help, pj
MacOfTheEast
03-02-06, 03:56 AM
Everything was fine until I updated the task module, the functions/tasks_func.php and classes/query.class.php to enable the Tasks Per User option with the latest CVS on 2/1/2006.I don't know which version of classes/query.class.php but you should not use any version of it later than 1.23.2.2 That was the last stable_2 branch version. Any version of any file later than the stable_2 version is not for the faint of heart (and won't work correctly unless you take ALL of the HEAD version files, and even that's risky.)
MOTE
stargzr
03-02-06, 07:49 AM
I update was this version:
query.class.php,v 1.35 2006/01/29 01:13:46 ajdonnison
I reverted back to the previous version I had of:
query.class.php,v 1.22 2005/04/09 03:07:55 ajdonnison
but, still get the same error on add or edit task:
Fatal error: Call to a member function on a non-object in /usr/local/web/oit/dotproject/modules/tasks/addedit.php on line 236
I'm thinking that maybe I should've updated some other files to play nice with the updates to the tasks module. Any ideas?
Thanks, pj
stargzr
04-02-06, 10:05 AM
I thought this may help. The version in the addedit.php task module is:
/* TASKS $Id: addedit.php,v 1.145 2006/01/20 15:36:56 pedroix Exp $ */
and it seems to be choking on this line:
$tpl->assign('check_task_dates_set', $check_task_dates_set);
You are try to use the HEAD branch and for that you will need to have the Smarty installed with dP.
Than line is trying to activate the templating engine that does not exist in your case.
Don't use the HEAD branch if you don't know what you are doing or what you are up against...
Pedro A.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.