[typo] Trouble starting up Typo 5.0.3 on Bluehost

Brad Hawkins bradleyvance at mac.com
Sun Apr 6 15:47:43 EDT 2008


Now you might need to run:

chmod -R 775 ~/path/to/typo/public




On Apr 6, 2008, at 12:39 PM, Randy Shepherd wrote:

> Brad, thank you very much for your prompt reply. I just made the tweak
> you suggested, but it seems to have no effect. What follows is my
> .htaccess file:
>
> # General Apache options
> #AddHandler fastcgi-script .fcgi
> AddHandler fcgid-script .fcgi
> AddHandler cgi-script .cgi
> #Options +FollowSymLinks +ExecCGI
> SetEnv RAILS_ENV production
>
> # If you don't want Rails to look in certain directories,
> # use the following rewrite rules so that Apache won't rewrite certain
> requests
> #
> # Example:
> #   RewriteCond %{REQUEST_URI} ^/notrails.*
> #   RewriteRule .* - [L]
>
> # Redirect all requests not available on the filesystem to Rails
> RewriteEngine On
>
> # If Typo is accessed via an Alias directive, then you MUST also set
> # the RewriteBase in this htaccess file.
> #
> # Example:
> #   Alias /blog /path/to/typo/public
> #   RewriteBase /blog
>
> RewriteRule ^$ index.html [QSA]
> RewriteRule ^([^.]+)/!$ $1.html [QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>
> # In case Typo experiences terminal errors
> # Instead of displaying this message you can supply a file here which
> will be rendered instead
> #
> # Example:
> #   ErrorDocument 500 /500.html
>
> ErrorDocument 500 "<h2>Application error</h2>Typo failed to start  
> properly"
>
>
> Brad Hawkins wrote:
>> Did you add:
>>
>> AddHandler fcgid-script .fcgi
>>
>> to your .htaccess file in your public folder?
>>
>> The standard:
>>
>> AddHandler fastcgi-script .fcgi
>>
>> doesn't seem to work with bluehost.
>>
>>
>> On Apr 6, 2008, at 12:14 PM, Randy Shepherd wrote:
>>
>>
>>> I installed Typo 5.0.3 as per the instructions found at
>>> http://bartgdev.com/articles/2006/08/07/installing-typo-on-bluehost
>>>
>>> In a nutshell:
>>> 1) wgot the tar, unpacked it under ~/ruby/typo
>>> 2) Created a symlink from my public_html dir to the typo install dir
>>> 3) Set up the db, updated my database.yml
>>> 4) Configured my environment.rb and .htaccess to production
>>> 5) Installed a couple extra gems; theme-support and theme-generator.
>>> 6) Ran public/dispatch.fcgi from my app root, which displays...
>>>
>>> Liquid doesn't seem to be loaded... uninitialized constant Liquid
>>> Status: 500 Internal Server Error
>>> Content-Type: text/html
>>>
>>> <html><body><h1>500 Internal Server
>>> Error</h1></body></html>levitat1 at levitated.org [~/ruby/typo-5.0.3]#
>>>
>>> ---
>>>
>>> I get the following error in my log (The nil:NilClass is a reference
>>> to
>>> a var called "this_blog" on both traces.):
>>>
>>> # Logfile created on Sun Apr 06 12:47:41 -0600 2008
>>>
>>> Processing ArticlesController#index (for at 2008-04-06 12:48:20)  
>>> [GET]
>>> Parameters: {"action"=>"index", "controller"=>"articles"}
>>>
>>> NoMethodError (undefined method `lang' for nil:NilClass):
>>> /app/controllers/application.rb:46:in `load_lang'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:469:in
>>> `send!'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:469:in
>>> `call'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:441:in
>>> `run'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:716:in
>>> `run_before_filters'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:695:in
>>> `call_filters'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:689:in
>>> `perform_action_without_benchmark'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> benchmarking.rb:68:in
>>> `perform_action_without_rescue'
>>> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> benchmarking.rb:68:in
>>> `perform_action_without_rescue'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> rescue.rb:199:in
>>> `perform_action_without_caching'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> caching.rb:678:in
>>> `perform_action'
>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
>>> connection_adapters/abstract/query_cache.rb:33:in
>>> `cache'
>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
>>> query_cache.rb:8:in
>>> `cache'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> caching.rb:677:in
>>> `perform_action'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> base.rb:524:in
>>> `send'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> base.rb:524:in
>>> `process_without_filters'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> filters.rb:685:in
>>> `process_without_session_management_support'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> session_management.rb:123:in
>>> `process'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> base.rb:388:in
>>> `process'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> dispatcher.rb:171:in
>>> `handle_request'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> dispatcher.rb:115:in
>>> `dispatch'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> dispatcher.rb:126:in
>>> `dispatch_cgi'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> dispatcher.rb:9:in
>>> `dispatch'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:101:in
>>> `process_request'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:149:in
>>> `with_signal_handler'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:99:in
>>> `process_request'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:77:in
>>> `process_each_request'
>>> /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `each_cgi'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:76:in
>>> `process_each_request'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:50:in
>>> `process!'
>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:24:in
>>> `process!'
>>> public/dispatch.fcgi:24
>>>
>>>
>>>
>>> Processing ArticlesController#index (for at 2008-04-06 12:48:20)  
>>> [GET]
>>> Parameters: {"action"=>"index", "controller"=>"articles"}
>>>
>>>
>>> NoMethodError (undefined method `current_theme' for nil:NilClass):
>>> /app/controllers/content_controller.rb:60:in `theme_layout'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> layout.rb:236:in
>>> `send!'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> layout.rb:236:in
>>> `active_layout'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> layout.rb:293:in
>>> `pick_layout'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> layout.rb:256:in
>>> `render_without_benchmark'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> benchmarking.rb:51:in
>>> `render'
>>> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> benchmarking.rb:51:in
>>> `render'
>>> /app/controllers/application.rb:26:in `rescue_action_in_public'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> rescue.rb:125:in
>>> `rescue_action'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> rescue.rb:203:in
>>> `perform_action_without_caching'
>>> /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
>>> caching.rb:678:in
>>> `perform_action'
>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
>>> connection_adapters/abstract/query_cache.rb:33:in
>>> `cache'
>>> "./production.log" 118 lines, 10170 characters
>>>
>>>
>>> Anyone see this issue, or have any idea of what's going on? It seems
>>> like "this_blog" is not being initialized on start-up, but I haven't
>>> the
>>> slightest idea why.  Also, I have no idea what the message "Liquid
>>> doesn't seem to be loaded... uninitialized constant Liquid"...any
>>> ideas
>>> on this?
>>>
>>> I have googled around but cannot find any good leads. Any and all  
>>> help
>>> is greatly appreciated.
>>>
>>> Thanks!
>>> Randy
>>> _______________________________________________
>>> Typo-list mailing list
>>> Typo-list at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/typo-list
>>>
>>
>> _______________________________________________
>> Typo-list mailing list
>> Typo-list at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/typo-list
>>
>>
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list



More information about the Typo-list mailing list