AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
823 stars 311 forks source link

Can't create root page #2808

Closed Olli closed 4 months ago

Olli commented 4 months ago

Steps to reproduce

Fresh installation (it's integreated into an existing rails app), Fresh db:migrate create a root page

Expected behavior

Creating of a root page

Actual behavior

Got ActiveRecord::StatementInvalid Mysql2::Error: Unknown column 'public_on' in 'field list'

System configuration

Maybe related but I have in the logs Unpermitted parameter: :public. Context: { controller: Alchemy::Admin::PagesController, action: create, request: #, params: {"authenticity_token"=>"[FILTERED]", "page"=>{"name"=>"Index", "page_layout"=>"index", "language_id"=>"1", "language_code"=>"de", "language_root"=>"true", "public"=>"true"}, "button"=>"", "controller"=>"alchemy/admin/pages", "action"=>"create"} }

Olli commented 4 months ago

Here is an addition screenshot in where I got this error grafik

Olli commented 4 months ago

Ok additional hint ... maybe it had something to do with a still existing version of comfortable mexican sofa. After removing the traces of this CMS I was able to create pages and sub pages. It's still unclear for me how this could happen because the models are in different name spaces but I'm not so deep into the code to have an good overview

Olli commented 4 months ago

Ok now everything works fine. You maybe should mention to remove all remaining CMS if AlchemyCMS is used into an existing Rails app. Also will_paginate should replaced against kaminari otherwise AlchemyCMS makes problems.