ERROR -- : undefined local variable or method `response_time' for

Infos:

  • Used Zammad version: 5.0.3 (updated from 5.0.1)
  • Used Zammad installation type: package
  • Operating system: Debian 9
  • Browser + version: Chrome and Firefox latest

Expected behavior:

  • Create an SLA.

Actual behavior:

  • Can’t create SLAs. In /var/log/zammad/production.log I have these entries:
I, [2021-12-15T13:50:25.251983 #443-1076040]  INFO -- :   Parameters: {"name"=>"SLA prio normal", "first_response_time"=>"", "response_time"=>"4320", "update_time"=>"", "solution_time"=>"", "condition"=>{"ticket.state_id"=>{"operator"=>"is", "value"=>["1", "2"]}, "ticket.priority_id"=>{"operator"=>"is", "value"=>"2"}}, "calendar_id"=>"1", "id"=>"c-1"}
E, [2021-12-15T13:50:25.263040 #443-1076040] ERROR -- : undefined local variable or method `response_time' for #<Sla:0x00007f1b0067ad28>

This is the SLA I try to create:

On the web interface I get these errors:

image

image

I had the same issue after upgrade. Did you run zammad run rake db:migrate after upgrading?

1 Like

Thank you for your input. I did not run that command. I will try that later and then update this thread.

Yep that was the solution. Thank you very much.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.