Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5189

Closed
Open
Created Sep 26, 2013 by Administrator@rootOwner

NoMethodError (undefined method `gfm_reference' for nil:NilClass) on posting on project wall

Created by: czimnick

if i post a message to the wall that contains the magic words "fixed/closed #xx" then i get a 500 Internal error in ajax request (browser dev console).

Server:    Ubuntu 12.04.3 LTS precise
gitlab version: 6.1

Here the log entry with stacktrace:

Started POST "/GROUP/PROJECT/notes" for 127.0.0.1 at 2013-09-26 13:29:15 +0200
Processing by Projects::NotesController#create as JS
  Parameters: {"utf8"=>"â", "authenticity_token"=>"TOKEN", "target_type"=>"wall", "target_id"=>"", "note"=>{"note"=>"you can now commit with message like: closed #30\r\nthan the issue will be closed automaticly.\r\n"}, "commit"=>"Add Comment", "project_id"=>"XXXXXXXXXXXXXX"}
Completed 500 Internal Server Error in 39ms

NoMethodError (undefined method `gfm_reference' for nil:NilClass):
  app/models/note.rb:78:in `create_cross_reference_note'
  app/observers/note_observer.rb:9:in `block in after_create'
  app/observers/note_observer.rb:8:in `each'
  app/observers/note_observer.rb:8:in `after_create'
  app/contexts/notes/create_context.rb:6:in `execute'
  app/controllers/projects/notes_controller.rb:21:in `create'
Assignee
Assign to
Time tracking