Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding subtasks as dependency to already dependent task created error; invalid argument in foreach() in query.class.php on line 182 #107
I had a parent task with many child tasks, whose due date depends upon parent task. When I attempted to move a few of those child tasks to be a child task of one of the other child tasks, it broke the table and the project is now unaccessible from Project Manager module giving this error:
My History causing the error at 10:35am:
Wanted to report error, but also get an idea for undoing damage in database.
Using latest development code as of 2/1/2020.
Project Manager did not pull up the project correctly, but no stated error.
I was able to access the task now from the task module, I edited some field (can't remember which, and saved it. Then, everything appeared to work correctly.
There is still some bug, but at least I'm back up and running.
Warning: Cannot modify header information - headers already sent by (output started at /home/averywh0/public_html/awwlegal.com/projects/classes/query.class.php:182) in /home/averywh0/public_html/awwlegal.com/projects/classes/ui.class.php on line 585
This did not break the project manager however, but did not modify the task to be dependent of the subtask either.
It appears that it is not setup to have multiple levels of childtasks. It broke the system when I tried to use the projectmanager to update multiple tasks to be subtasks of an already dependent tasks.
I hope the detail helps.
I am still frequently getting this error when trying to manage dates with tasks. I've eliminated child tasks to try to isoloate this. For example, when I edit a task that has a task dependency and check "Set task start date based on dependency" then I get the following error:
Warning: Invalid argument supplied for foreach() in /home/averywh0/public_html/awwlegal.com/projects/classes/query.class.php on line 182
Warning: Cannot modify header information - headers already sent by (output started at /home/averywh0/public_html/awwlegal.com/projects/classes/query.class.php:184) in /home/averywh0/public_html/awwlegal.com/projects/classes/ui.class.php on line 585
Note that "Warning: Invalid argument supplied for foreach() in /home/averywh0/public_html/awwlegal.com/projects/classes/query.class.php on line 182" is repeated many times in the beginning.