Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create new pages in fresh install using the gem #2466

Closed
stabenfeldt opened this issue Nov 11, 2013 · 3 comments
Closed

Can't create new pages in fresh install using the gem #2466

stabenfeldt opened this issue Nov 11, 2013 · 3 comments

Comments

@stabenfeldt
Copy link

I've installed refinerycms (2.1.0) with PostgreSQL 9.3.0.

I get this error when I create a page using the web interface:

ActiveRecord::StatementInvalid in Refinery::Admin::PagesController#create

PG::NotNullViolation: ERROR:  null value in column "refinery_page_id" violates not-null constraint
DETAIL:  Failing row contains (5, null, en, 2013-11-11 15:08:23.518606, 2013-11-11 15:08:23.518606, null, null, null, null).
: INSERT INTO "refinery_page_translations" ("created_at", "custom_slug", "locale", "menu_title", "refinery_page_id", "slug", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"

All migrations are executed:

 ✗ rake db:migrate:status                           # Display status of migrations


database: rubrikkfabrikken_dev

 Status   Migration ID    Migration Name
--------------------------------------------------
   up     20131111140940  Create refinerycms authentication schema.refinery authentication
   up     20131111140941  Add slug to refinery users.refinery authentication
   up     20131111140942  Create refinerycms resources schema.refinery resources
   up     20131111140943  Create refinerycms pages schema.refinery pages
   up     20131111140944  Create refinerycms images schema.refinery images
   up     20131111140945  Remove image ext from refinery images.refinery images
   up     20131111140946  Create seo meta.seo meta engine
   up     20131111140947  Remove meta keywords from seo meta.seo meta engine

Any tips why it failed?

@ugisozols
Copy link
Member

This is a dup of #2450. Please see that ticket for discussion and possible fixes.

@stabenfeldt
Copy link
Author

Thanks for the hint. This fixed it:

$ echo ' gem "globalize3", "0.3.0" ' >> Gemfile
$ bundle
$ rake db:drop && rake db:create && rake db:migrate && db:seed

@ugisozols
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants