Author Topic: [1.5.3] Fails on cron reminders  (Read 2142 times)

mkowalski

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
[1.5.3] Fails on cron reminders
« on: October 01, 2009, 06:52:19 am »
This is the log:

Session "default" started at 2009-10-01T09:45:01+0000
#1 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#2 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#3 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#4 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#5 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#6 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#7 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#8 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#9 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#10 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#11 ERROR: Error: Object of class ProjectTask could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 123 (error code: 4096)
#12 ERROR: Error: Object of class DateTimeValue could not be converted to string in '/home/mknstref/public_html/opengoo/application/hooks/opengoo_hooks.php' on line 125 (error code: 4096)
Time since start: 0.600854873657 seconds
-------------------------------------------------------------------------------

Then php fails:

<b>Fatal error</b>:  Call to a member function getWorkspacesQuery() on a non-object in <b>/home/mknstref/public_html/opengoo/application/models/object_subscriptions/ObjectSubscriptions.class.php</b> on line <b>36</b>

I have checked that function logged_user() returns 1 ..

Any ideas on how to patch it?

mkowalski

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: [1.5.3] Fails on cron reminders
« Reply #1 on: October 04, 2009, 06:35:15 pm »
Line numbers may be different due to logging I've added.

mkowalski

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: [1.5.3] Fails on cron reminders
« Reply #2 on: October 06, 2009, 05:39:35 am »
The way to fix it is:

Change the following line in application/models/object_subscriptions/ObjectSubscriptions.class:

#$user_object_workspaces = $object->getWorkspaces(logged_user()->getWorkspacesQuery());

Into:

$user_object_workspaces = $object->getWorkspaces($user->getWorkspacesQuery());

Also, in cron mode, the following include is required:

require_once ROOT.'/application/helpers/permissions.php';

Henry

  • Full Member
  • ***
  • Posts: 159
    • View Profile
Re: [1.5.3] Fails on cron reminders
« Reply #3 on: October 10, 2009, 08:56:50 am »
HI,

I have the same Problem , that the reminders do not works.
The error message is also the same.

Must the following line in the same file??
application/models/object_subscriptions/ObjectSubscriptions.class
or in an other file?

Quote
Also, in cron mode, the following include is required:

require_once ROOT.'/application/helpers/permissions.php';

I hope everyone can understand me because my english is very bad.

Thanks
« Last Edit: October 10, 2009, 08:59:50 am by Ice »