Re: [Radiant] Re: need help to move a site from one host to another

2012-08-31 Thread Robert Chang
Jim,

Thanks for getting back to me. i don't recall editing the contents of this
file. Here they are:

require_dependency 'application_controller'

class CopyMoveExtension < Radiant::Extension
  version "2.0.0"
  description "Adds the ability to copy and move a page and all of its
children"
  url "http://gravityblast.com/projects/radiant-copymove-extension/";

  define_routes do |map|
map.with_options(:controller => "admin/pages") do |cm|
  cm.copy_page_admin_page '/admin/pages/:id/copy_page', :action
=> 'copy_page'
  cm.copy_children_admin_page '/admin/pages/:id/copy_children', :action
=> 'copy_children'
  cm.copy_tree_admin_page '/admin/pages/:id/copy_tree', :action
=> 'copy_tree'
  cm.move_admin_page  '/admin/pages/:id/move',  :action
=> 'move'
end
  end

  def activate
Admin::PagesController.class_eval do
  include CopyMove::Controller
  helper :copy_move
end
Page.class_eval { include CopyMove::Model }
admin.page.index.add :sitemap_head, 'copy_move_extra_th'
admin.page.index.add :node, 'copy_move_extra_td', :after =>
"add_child_column"
admin.page.index.add :bottom, 'copy_move_popup'
  end
end

Where should i check next? Thanks for your help.

Robert

On Wed, Aug 29, 2012 at 12:02 PM, Jim Gay  wrote:

> Robert,
>
> I'm sorry for the late reply.
>
> Your error mentions a problem on:
>
> /home/robert/radiant/vendor/extensions/copy_move/copy_move_extension.rb:18:in
> `activate'
>
> What's happening in that file? Checking there may help you and us figure
> it out.
>
>


Re: [Radiant] Re: need help to move a site from one host to another

2012-08-29 Thread Jim Gay
Robert,

I'm sorry for the late reply.

Your error mentions a problem on:
/home/robert/radiant/vendor/extensions/copy_move/copy_move_extension.rb:18:in
`activate'

What's happening in that file? Checking there may help you and us figure it out.

On Tue, Aug 7, 2012 at 3:29 PM, Robert Chang  wrote:
> Jim,
>
> Thanks for the quick reply. Here's the error i get after i try bundle exec
> script/server:
>
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in
> `': iconv will be deprecated in the future, use
> String#encode instead.
> => Booting WEBrick
> => Rails 2.3.8 application starting on http://0.0.0.0:3000
> NOTE: Gem.source_index is deprecated, use Specification. It will be removed
> on or after 2011-11-01.
> Gem.source_index called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
> NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
> removed on or after 2011-11-01.
> Gem::SourceIndex#search called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
> NOTE: Gem.source_index is deprecated, use Specification. It will be removed
> on or after 2011-11-01.
> Gem.source_index called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
> NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will
> be removed on or after 2011-11-01.
> Gem::SourceIndex#refresh! called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34.
> NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It
> will be removed on or after 2011-11-01.
> Gem::SourceIndex#load_gems_in called from
> /home/robert/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:322.
> NOTE: Gem.source_index is deprecated, use Specification. It will be removed
> on or after 2011-11-01.
> Gem.source_index called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
> NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
> removed on or after 2011-11-01.
> Gem::SourceIndex#search called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
> NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
> removed on or after 2011-11-01.
> Gem::SourceIndex#search called from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
> `load': cannot load such file -- admin/resource_helper.rb (LoadError)
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
> `block in load_file'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
> `new_constants_in'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in
> `load_file'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in
> `require_or_load'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in
> `depend_on'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in
> `require_dependency'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:197:in
> `default_helper_module!'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:212:in
> `inherited_with_helper'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/app/controllers/admin/resource_controller.rb:1:in
> `'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
> `load'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
> `block in load_file'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
> `new_constants_in'
> from
> /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in

Re: [Radiant] Re: need help to move a site from one host to another

2012-08-07 Thread Robert Chang
Jim,

Thanks for the quick reply. Here's the error i get after i try bundle exec
script/server:

/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in
`': iconv will be deprecated in the future, use
String#encode instead.
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
NOTE: Gem.source_index is deprecated, use Specification. It will be removed
on or after 2011-11-01.
Gem.source_index called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
removed on or after 2011-11-01.
Gem::SourceIndex#search called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed
on or after 2011-11-01.
Gem.source_index called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will
be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It
will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from
/home/robert/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:322.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed
on or after 2011-11-01.
Gem.source_index called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
removed on or after 2011-11-01.
Gem::SourceIndex#search called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
removed on or after 2011-11-01.
Gem::SourceIndex#search called from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
`load': cannot load such file -- admin/resource_helper.rb (LoadError)
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
`block in load_file'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in
`load_file'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in
`require_or_load'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in
`depend_on'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in
`require_dependency'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:197:in
`default_helper_module!'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:212:in
`inherited_with_helper'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/app/controllers/admin/resource_controller.rb:1:in
`'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
`load'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in
`block in load_file'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in
`load_file'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in
`require_or_load'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in
`load_missing_constant'
from
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in

Re: [Radiant] Re: need help to move a site from one host to another

2012-08-07 Thread Jim Gay
Nobody will be able to help without specific errors.

Start with posting 1 error here and let's see how we can help.

On Wed, Aug 1, 2012 at 5:46 PM, robert  wrote:
> Excuse me for resurrecting this thread, but I'm trying to do the same thing.
> I'm running Radiant 0.9.1 with the Archive, CopyMove, FancyBox, Navigation
> Tags, Paperclipped, Ray, Reorder and Settings extensions. I copied the MySQL
> DB and the radiant folder to new server. Then began following instructions
> to upgrade. I got a bunch of errors/alerts in step 7 "bundle exec
> script/server". There were several Gem::SourceIndex notices about things
> being deprecated. Then I got a whole bunch of load errors. I tried it again,
> making sure to follow the instructions exactly on the web page, but I'm
> still getting these errors. If I ignore the errors and continue with the
> instructions, I get to the step "bundle exec rake radiant:update" and then
> it aborts because it didn't know how to build the task radiant:update. Could
> someone please help me figure out what I'm doing wrong? I'm going to need
> some hand holding with this. If there's another way to migrate this site,
> I'd be happy to give that a try. Thanks for your help.
>
> Robert
>
>



-- 
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338


Re: [Radiant] Re: need help to move a site from one host to another

2012-08-05 Thread robert
Excuse me for resurrecting this thread, but I'm trying to do the same 
thing. I'm running Radiant 0.9.1 with the Archive, CopyMove, FancyBox, 
Navigation Tags, Paperclipped, Ray, Reorder and Settings extensions. I 
copied the MySQL DB and the radiant folder to new server. Then began 
following instructions to upgrade. I got a bunch of errors/alerts in step 7 
"bundle exec script/server". There were several Gem::SourceIndex notices 
about things being deprecated. Then I got a whole bunch of load errors. I 
tried it again, making sure to follow the instructions exactly on the web 
page, but I'm still getting these errors. If I ignore the errors and 
continue with the instructions, I get to the step "bundle exec rake 
radiant:update" and then it aborts because it didn't know how to build the 
task radiant:update. Could someone please help me figure out what I'm doing 
wrong? I'm going to need some hand holding with this. If there's another 
way to migrate this site, I'd be happy to give that a try. Thanks for your 
help.

Robert




Re: [Radiant] Re: need help to move a site from one host to another

2012-05-15 Thread Jim Gay
Are you setting the password in the proper environment?
For example, your server might be running in production or development
and your console uses another environment.

On Tue, May 15, 2012 at 6:33 AM, corinna  wrote:
> Hi Jim
>
> thank you for the instructions you have given me.
> They have worked out fine.
>
> I am experiencing another problem.
>
> I have tried to reset the administrator password following this howto
> https://github.com/radiant/radiant/wiki/Reset-Your-Admin-Password
>
> I can see the changes  in the user table, however I am not able to
> login.
> (I have restarted the server, just because it was cheep enough...)
> I have noticed that the two hashes are different.
>
> Maybe there is difference between the hash functions that are called
> by the webpage
> and called from the console.
>
> Sorry for not being able to do it by myself.
>
> Best regards
> Corinna
> On 2 Mag, 16:33, Jim Gay  wrote:
>> Oh. I forgot to mention these instructions for 
>> upgrading:https://gist.github.com/1540782
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, May 2, 2012 at 10:33 AM, Jim Gay  wrote:
>> > On Wed, May 2, 2012 at 4:28 AM, corinna  wrote:
>> >> Hi to everyone,
>> >> I am new to this group and to radiant as well.
>>
>> >> A friend of a collegue of mine, published a website for my collegue
>> >> using radiant 0.9
>> >> and now my collegue want the website to be hosted on one of our
>> >> server.
>>
>> >> I have managed to install radiant 1.0.1 on a debian and
>> >> my collegue's friend have given me a zip file of his installation (on
>> >> radiant 0.9)
>>
>> >> I have search for a procedure to install the website on a new host but
>> >> I haven't find
>> >> anything that I could use in this case, probably my search was
>> >> inefficient.
>>
>> >> I need both information on
>> >> 1) how to move a website from a host to another
>> >> 2) how to "import" a website from an older version of radiant to a
>> >> newer version
>>
>> > Dump your database from one host and import it into your new server.
>> > Then move the code and any other files over and alter your DNS to
>> > point to the new server.
>>
>> > Do you have any more specific questions?
>> > What database server are you using? (postgresql, mysql, etc.)
>> > What application server are you using? (apache/mongrel, unicorn,
>> > nginx/passenger, etc.)
>>
>> >> Thank you for the support you could give me.
>> >> Best regards
>> >> Corinna Vera
>>
>> > --
>> > Write intention revealing code #=> http://www.clean-ruby.com
>>
>> > Jim Gay
>> > Saturn Flyer LLC
>> > 571-403-0338
>>
>> --
>> Write intention revealing code #=> http://www.clean-ruby.com
>>
>> Jim Gay
>> Saturn Flyer LLC
>> 571-403-0338



-- 
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338


[Radiant] Re: need help to move a site from one host to another

2012-05-15 Thread corinna
Hi Jim

thank you for the instructions you have given me.
They have worked out fine.

I am experiencing another problem.

I have tried to reset the administrator password following this howto
https://github.com/radiant/radiant/wiki/Reset-Your-Admin-Password

I can see the changes  in the user table, however I am not able to
login.
(I have restarted the server, just because it was cheep enough...)
I have noticed that the two hashes are different.

Maybe there is difference between the hash functions that are called
by the webpage
and called from the console.

Sorry for not being able to do it by myself.

Best regards
Corinna
On 2 Mag, 16:33, Jim Gay  wrote:
> Oh. I forgot to mention these instructions for 
> upgrading:https://gist.github.com/1540782
>
>
>
>
>
>
>
>
>
> On Wed, May 2, 2012 at 10:33 AM, Jim Gay  wrote:
> > On Wed, May 2, 2012 at 4:28 AM, corinna  wrote:
> >> Hi to everyone,
> >> I am new to this group and to radiant as well.
>
> >> A friend of a collegue of mine, published a website for my collegue
> >> using radiant 0.9
> >> and now my collegue want the website to be hosted on one of our
> >> server.
>
> >> I have managed to install radiant 1.0.1 on a debian and
> >> my collegue's friend have given me a zip file of his installation (on
> >> radiant 0.9)
>
> >> I have search for a procedure to install the website on a new host but
> >> I haven't find
> >> anything that I could use in this case, probably my search was
> >> inefficient.
>
> >> I need both information on
> >> 1) how to move a website from a host to another
> >> 2) how to "import" a website from an older version of radiant to a
> >> newer version
>
> > Dump your database from one host and import it into your new server.
> > Then move the code and any other files over and alter your DNS to
> > point to the new server.
>
> > Do you have any more specific questions?
> > What database server are you using? (postgresql, mysql, etc.)
> > What application server are you using? (apache/mongrel, unicorn,
> > nginx/passenger, etc.)
>
> >> Thank you for the support you could give me.
> >> Best regards
> >> Corinna Vera
>
> > --
> > Write intention revealing code #=> http://www.clean-ruby.com
>
> > Jim Gay
> > Saturn Flyer LLC
> > 571-403-0338
>
> --
> Write intention revealing code #=> http://www.clean-ruby.com
>
> Jim Gay
> Saturn Flyer LLC
> 571-403-0338