Tickets Plus install brings me "Call to undefined method Ticket::setResolution()"

  • Problem
  • Updated 4 years ago
  • Solved
Hello! After installing Tickets Plus and the new Time Report Module i get the following error when closing a ticket due the "old" close button.

Fatal error: Call to undefined method Ticket::setResolution() in /var/www/web40/html/activecollab/application/modules/system/models/project_objects/ProjectObject.class.php on line 1460

Additional i now get the following error when marking a to-do-list entry as complete:
Fatal error: Call to undefined method Task::setResolution() in /var/www/web40/html/activecollab/application/modules/system/models/project_objects/ProjectObject.class.php on line 1460

We run on activeCollab Version:2.3, corporate.

Can you help us? What did we wrong?
Thank you!
Photo of mobildirkM

mobildirk

  • 5 Posts
  • 0 Reply Likes
  • sad

Posted 5 years ago

  • 3
Photo of mobildirkM

mobildirk

  • 5 Posts
  • 0 Reply Likes
ok, i synced my last ProjectObject.class.php with your file and copied your changes to my file. this seems to work!
Photo of Nirav Mehta

Nirav Mehta, Official Rep

  • 1986 Posts
  • 62 Reply Likes
Thank you for solving this yourself!

This happens because of activeCollab version change. If you use activeCollab 2.3.2 it should not be a problem.
Photo of kbossons

kbossons

  • 2 Posts
  • 0 Reply Likes
I'm having the same issue - Nirav can you send me the file(s) & instructions as well? kbossons -at- webtechemail.com
Photo of Nirav Mehta

Nirav Mehta, Official Rep

  • 1986 Posts
  • 62 Reply Likes
Hi,

Are you using activeCollab 2.3.2? If not, we recommend you do.

Otherwise, you can copy ProjectObject.class.php and Projects.class.php files from TicketsPlus source to your activeCollab install in appropriate directories and this should be fixed.

:Nirav
Photo of

  • 1 Post
  • 0 Reply Likes
Call to undefined method Ticket::setResolution() what this function is for actually, asking out of curiousity.
Photo of Nirav Mehta

Nirav Mehta, Official Rep

  • 1986 Posts
  • 62 Reply Likes
Earlier versions of activeCollab had a field called "resolution". I guess it was to indicate whether a ticket was solved / duplicate / discarded etc. Basically why it was closed. I have not seen it in use though. The field was there in the table, but unused.

They removed the field and function in recent versions.
Photo of andrewace

andrewace

  • 12 Posts
  • 0 Reply Likes
Since installing Tickets Plus v1.4 and Planning Module v1.6.2 yesterday, we now get this error when we try to complete a task.

I have read the comments above but I can't find files called ProjectObject.class.php and Projects.class.php inside tickets_plus_v1.4.zip, there is just a file called ProjectObjects.class.php.

Do you need to send me these files? If so please do, many thanks
Photo of Nirav Mehta

Nirav Mehta, Official Rep

  • 1986 Posts
  • 62 Reply Likes
Hi Andrew,

You will find them in Planning module for-upload folder. If you uploaded all files that come with Planning and Tickets Plus modules, you should not get this error. Please reconfirm you uploaded all files.

:Nirav
Photo of andrewace

andrewace

  • 12 Posts
  • 0 Reply Likes
Thanks Nirav. I decided to fix the problem by following your advice & update to version 2.3.2 of ActiveCollab. Probably a good idea anyway, I had been putting it off but this was a good motivator! All fixed now, thanks.