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
  • #4334

Closed
Open
Created Jun 18, 2013 by Administrator@rootOwner

Can't create a wiki page

Created by: fotanus

Hi, I can't create a page on wiki. I got an error 500 screen and the following on the log:

Started POST "/fotanus/translation_proxy/wikis" for 186.213.129.116 at 2013-06-18 14:42:09 +0000
Processing by WikisController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"/hj7nkJtTZot80gPd+HNpLDJy6cy6dhqCsfreYdJ4gc=", "wiki"=>{"title"=>"teste", "format"=>"markdown", "content"=>"aaa", "message"=>""}, "project_id"=>"fotanus/translation_proxy"}
Completed 500 Internal Server Error in 73ms

NoMethodError (undefined method `escaped_url_path' for nil:NilClass):
  app/models/wiki_page.rb:160:in `set_attributes'
  app/models/wiki_page.rb:171:in `save'
  app/models/wiki_page.rb:127:in `create'
  app/controllers/wikis_controller.rb:44:in `create'

Next time I try to create the same page, I got this instead:

Duplicate page: Cannot write //home.markdown, found //home.markdown.

I'm using gilab 5.1, installed on a Debian 6.0. To make the install, I followed the install instructions, and also compiled git from source since debian one is 1.7 (currently on /usr/local/git, as git-scm site instructions, and backported Redis as per #2675.

This is the code around the error, it gets the two last stacktrace lines:

159   def set_attributes
160     attributes[:slug] = @page.escaped_url_path # stracktrace top
161     attributes[:title] = @page.title
162     attributes[:content] = @page.raw_data
163     attributes[:formatted_content] = @page.formatted_data
164     attributes[:format] = @page.format
165   end
166 
167   def save(method, *args)
168     if valid? && wiki.send(method, *args)
169       @page = wiki.wiki.paged(title)
170 
171       set_attributes # go to set_attributes from here
172 
173       @persisted = true
174     else
175       errors.add(:base, wiki.error_message) if wiki.error_message
176       @persisted = false

I can't find the method paged, so it should be from one dependency. Maybe I've got the wrong gollum version?

Any pointers are deeply appreciated.

Assignee
Assign to
Time tracking