Defect #27752

NoMethodError while creating an issue

Added by stephane clouaire 5 days ago. Updated about 9 hours ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution: Affected version:3.4.3

Description

Hello

Could you please help me, because I have an error when I want to create a bug on Redmine :

  CACHE (0.0ms)  SELECT  1 AS one FROM `attachments` WHERE `attachments`.`container_id` = 488 AND `attachments`.`container_type` = 'Issue' LIMIT 1  [["container_id", 488], ["container_type", "Issue"]]
  Rendered mailer/_issue.html.erb (4.4ms)
  Rendered mailer/issue_add.html.erb within layouts/mailer (6.9ms)
  Setting Load (1.0ms)  SELECT  `settings`.* FROM `settings` WHERE `settings`.`name` = 'cache_formatted_text'  ORDER BY `settings`.`id` DESC LIMIT 1
   (2.6ms)  ROLLBACK
Completed 500 Internal Server Error in 635ms (ActiveRecord: 36.5ms)

NoMethodError (undefined method `error' for true:TrueClass):
  app/models/mailer.rb:497:in `initialize'
  config/initializers/10-patches.rb:163:in `deliver'
  app/models/mailer.rb:64:in `block in deliver_issue_add'
  app/models/issue.rb:1058:in `each_notification'
  app/models/mailer.rb:63:in `deliver_issue_add'
  app/models/issue.rb:1845:in `send_notification'
  app/models/issue.rb:210:in `create_or_update'
  app/controllers/issues_controller.rb:129:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

History

#1 Updated by Toshi MARUYAMA 5 days ago

  • Status changed from New to Needs feedback
  • Priority changed from High to Normal

Please see submissions.

#2 Updated by stephane clouaire 1 day ago

Hi

Which feedback have you need?

Best regards

#3 Updated by Go MAEDA 1 day ago

  • Subject changed from Error create bug to NoMethodError while creating an issue
  • Description updated (diff)

#4 Updated by Go MAEDA 1 day ago

stephane clouaire wrote:

Which feedback have you need?

As you can read on Submissions page, could you describe the version of Redmine, Ruby, database and so on?

#5 Updated by stephane clouaire 1 day ago

Yes

I use the versions following :
MYSQL :5.7.20-0ubuntu0.16.04.1
RUBY : 1.2.3.0+1
Redmine : 3.4.3.stable

Best regards

#6 Updated by Toshi MARUYAMA 1 day ago

Do you use plugins?

stephane clouaire wrote:

RUBY : 1.2.3.0+1

Is it package?
Recent Ruby 2.3 version is Ruby 2.3.5.
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/

#7 Updated by stephane clouaire about 9 hours ago

Hi

No I don't use plugins.

Best regards

#8 Updated by stephane clouaire about 9 hours ago

Do you want update ruby in version 2.3?

regards

#9 Updated by stephane clouaire about 9 hours ago

Sorry about Ruby I use these versions ::
ii libruby2.3:amd64 2.3.1-2~16.04.2 amd64 Libraries necessary to run Ruby 2.3
ii rake 10.5.0-2 all ruby make-like utility
ii ruby 1:2.3.0+1 all Interpreter of object-oriented scripting language Ruby (default version)
ii ruby-dev:amd64 1:2.3.0+1 amd64 Header files for compiling extension modules for Ruby (default version)
ii ruby-did-you-mean 1.0.0-2 all smart error messages for Ruby > 2.3
ii ruby-minitest 5.8.4-2 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii ruby-net-telnet 0.1.1-2 all telnet client library
ii ruby-power-assert 0.2.7-1 all library showing values of variables and method calls in an expression
ii ruby-rack 1.6.4-3 all modular Ruby webserver interface
ii ruby-test-unit 3.1.7-2 all unit testing framework for Ruby
ii ruby-zip 1.1.7-1 amd64 Ruby module for reading and writing zip files
ii ruby2.3 2.3.1-2~16.04.2 amd64 Interpreter of object-oriented scripting language Ruby
ii ruby2.3-dev:amd64 2.3.1-2~16.04.2 amd64 Header files for compiling extension modules for the Ruby 2.3
ii rubygems-integration 1.10 all integration of Debian Ruby packages with Rubygems

Also available in: Atom PDF