locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.31k stars 626 forks source link

Locomotive CMS UI won't load. "File to import not found or unreadable: compass/css3/transform-legacy" #989

Closed adamjerickson closed 10 years ago

adamjerickson commented 10 years ago

Issue:

Locomotive CMS UI won't load. "File to import not found or unreadable: compass/css3/transform-legacy"

Repo Steps:

  1. Install according to instructions here: http://doc.locomotivecms.com/get-started/install-engine-locally#mac
  2. Start mongodb: mongod --dbpath data
  3. Start cms ui: bundle exec unicorn_rails

    Environment

    OS

OS X 10.9.4 Build 13E28

Browser

Any

Mongo

mithlond:repos adam$ which mongod
/usr/local/bin/mongod
mithlond:repos adam$ mongod --version
db version v2.6.4
2014-08-18T12:26:23.877-0500 git version: nogitversion

Ruby

mithlond:repos adam$ which ruby
/Users/adam/.rvm/rubies/ruby-2.0.0-p481/bin/ruby
mithlond:repos adam$ ruby --version
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.1.0]

Rails

mithlond:repos adam$ which rails
/Users/adam/.rvm/rubies/ruby-2.0.0-p481/bin/rails
mithlond:repos adam$ rails --version
Rails 4.1.4

Imagemagik

mithlond:repos adam$ brew info imagemagick
imagemagick: stable 6.8.9-5 (bottled), HEAD

Wagon

mithlond:repos adam$ which wagon
/Users/adam/.rvm/rubies/ruby-2.0.0-p481/bin/wagon
mithlond:repos adam$ wagon version
1.4.0

Expected Behavior:

UI Loads normally, and page locomotive/pages shows a list of the pages.

Actual Behavior:

After Logging In, it navigates to page: http://0.0.0.0:8080/locomotive/pages/53f22ba57752294410000004/edit

and shows this error message:

Sass::SyntaxError in Locomotive/pages#edit

Showing /repos/Code/optionsorca.com/loco/optionsorca_cms/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.4.1/app/views/locomotive/shared/_head.html.haml where line #14 raised:

File to import not found or unreadable: compass/css3/transform-legacy.
Load paths:
  Sass::Rails::Importer(/repos/Code/optionsorca.com/loco/optionsorca_cms/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.4.1/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss)
  /repos/Code/optionsorca.com/loco/optionsorca_cms/app/assets/stylesheets
  /repos/Code/optionsorca.com/loco/optionsorca_cms/vendor/bundle/ruby/2.0.0/gems/compass-core-1.0.0/stylesheets
  Compass::SpriteImporter
  (in /repos/Code/optionsorca.com/loco/optionsorca_cms/vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.4.1/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss)
Extracted source (around line #14):

11:   :plain
12:     window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' }
13: 
14: = stylesheet_link_tag     'locomotive', media: 'screen'
15: = javascript_include_tag  'locomotive'
16: 
17: = render 'locomotive/shared/main_app_head_before_backbone'
Trace of template inclusion: vendor/bundle/ruby/2.0.0/gems/locomotive_cms-2.4.1/app/views/locomotive/layouts/application.html.haml

Rails.root: /repos/Code/optionsorca.com/loco/optionsorca_cms

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"id"=>"53f22ba57752294410000004"}
Show session dump

Resolution:

Change line 5 in file: main.css.scss

from: @import "compass/css3/transform-legacy";

to: @import "compass/css3/transform";

tgautier commented 10 years ago

Same problem here, thanks for the issue this saved me quite some time.

dinglixiang commented 10 years ago

Thanks. @adamjerickson

ivanbenko commented 10 years ago

Thanks , @adamjerickson

did commented 10 years ago

what a terrific issue description! thanks @adamjerickson :-)