zulip / zulip-redmine-plugin

Redmine plugin for Zulip notifications on issue tracker changes
Apache License 2.0
12 stars 17 forks source link

missing template (redmine 4.0.4) #18

Closed danielecr closed 5 years ago

danielecr commented 5 years ago
Missing template, responding with 404: Missing partial projects/settings/_redmine_zulip with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rsb]}. Searched in:
  * "/home/redmine/redmine/app/views"

  Rendering common/error.html.erb within layouts/base
  Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 404 Not Found in 257ms (Views: 62.1ms | ActiveRecord: 55.4ms)
Creating scope :system. Overwriting existing method Enumeration.system.

does not show the settings page of any project

timabbott commented 5 years ago

@felipebatista any idea what the issue is here?

batistadasilva commented 5 years ago

@danielecr thank you for your feedback

I am not experiencing this issue with my Redmine 4.0.4 instance, so let's take a closer look to see what happens.

could you please check f the following file is present in your installation directory?

redmine-zulip-plugin-view

danielecr commented 5 years ago
ls redmine_zulip/app/views/projects/settings/
_redmine_zulip.html.erb

yes, it is there

danielecr commented 5 years ago
Migrating plugins. Please be patient, this could take a while...
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class AddZulipAuthToProject < ActiveRecord::Migration[4.2]

I have this message on starting redmine. Then it crashs

batistadasilva commented 5 years ago

@danielecr thank you for the additional info, that made me detect the source of the problem

could you please try with the new 3.0 release and gimme a feedback?

danielecr commented 5 years ago

@felipebatista yes, thank you so much, it works!

danielecr commented 5 years ago

... oh, well, I just tried to use it, I have internal server error (500) updating an issue in redmine: (I omitted to post data, mostly)

Processing by IssuesController#update as HTML
  Parameters: {...OMITTED... "last_journal_id"=>"", "commit"=>"Submit", "next_issue_id"=>"894", "issue_position"=>"1", "issue_count"=>"22", "id"=>"895"}
  Current user: danielecr (id=5)
Completed 500 Internal Server Error in 161ms (ActiveRecord: 33.4ms)

NoMethodError (undefined method `request_uri' for #<URI::Generic zulip.starsellersworld.com/api/v1/messages>):

I setted the project to notify to the bot on all event (all checked), I specified the channel name using '+' for the space, this way "react+team"

batistadasilva commented 5 years ago

@danielecr I think that all you need is to specify the protocol (http:// or https://) on your Zulip URL settings

zulip-redmine-settings-url

danielecr commented 5 years ago

yes, sorry. So it works