Author Topic: Cannot complete any tasks  (Read 4589 times)

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Cannot complete any tasks
« on: April 23, 2009, 02:07:29 am »
Tried to complete some tasks, but I always got Error 500, Internal Server Error.

Then I turned on debug logging (which I forgot to do initially *cough*), logged out then back in, tried to close a task again and this happened:

Code: [Select]
Fatal error: Call to undefined method ProjectTask::getClosedBy() in D:\Domains\mydomain.com\wwwroot\opengoo-1.4beta\application\models\notifier\Notifier.class.php on line 47

debug output shows nothing for this error however, the only stuff in here is what happens when I log in:

Code: [Select]
<?php die(); ?>
Session "default" started at 2009-04-23T05:05:38+0000
#1 ERROR: Error: sort() expects parameter 1 to be array, null given in 'D:\Domains\mydomain.com\wwwroot\opengoo-1.4beta\application\controllers\AccessController.class.php' on line 496 (error code: 2)
#2 ERROR: Error: Invalid argument supplied for foreach() in 'D:\Domains\mydomain.com\wwwroot\opengoo-1.4beta\application\controllers\AccessController.class.php' on line 497 (error code: 2)
Time since start: 0.1833770275116 seconds
-------------------------------------------------------------------------------

cheers
« Last Edit: April 23, 2009, 02:16:49 am by Pet »
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Cannot complete any tasks
« Reply #1 on: April 23, 2009, 11:49:31 am »
Hi, this will be fixed for the release candidate.

The quick fix for this is to change file 'application/models/notifier/Notifier.class.php', line 47, from:
Code: [Select]
self::objectNotification($object, $subscribers, $object->getClosedBy(), 'closed');
to:
Code: [Select]
self::objectNotification($object, $subscribers, logged_user(), 'closed');

Mgarcia

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Cannot complete any tasks
« Reply #2 on: April 29, 2009, 02:35:19 pm »
Hello,

I copied the line and I've replaced in the file described, in line 47.

But not funciona.
Now not get the error, but clicking on "COMPLETE" on any task, it is thought a while and then left as it was.

After waiting, I get a popup error:

Error -1: Transaction aborted

Any solution ??
« Last Edit: April 29, 2009, 03:07:13 pm by Mgarcia »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Cannot complete any tasks
« Reply #3 on: April 30, 2009, 12:18:58 pm »
Error -1 indicates a timeout, so trying again should work. If it is constantly giving you Error -1 try restarting MySQL or Apache.

Mgarcia

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Cannot complete any tasks
« Reply #4 on: May 01, 2009, 01:52:03 pm »
Ok.

I installed it again from 0 installation and change the line of the file and it works perfectly.

Thank you.