Forum: Radiant CMS Problems after updating app from 0.6.7 => 0.6.9

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3c415075c9e778e2d38ebf4588a68464?d=identicon&s=25 Nate Turnage (Guest)
on 2008-12-02 05:07
(Received via mailing list)
I have an app that I tried to update from 0.6.7 to 0.6.9 and have run
into a
couple of problems.

It started a bit like this. I ran "rake radiant:update" which seemed to
complete successfully. But when I tried to "rake db:migrate" I was
greeted
with the error:
...
rake aborted!
undefined method `[]' for #<Enumerable::Enumerator:0x2329874>
...


So I searched around and saw what looked like a cure here (11th
response):
http://groups.google.com/group/radiantcms-dev/brow...
...
unless '1.9'.respond_to?(:force_encoding)
  String.class_eval do
    begin
      remove_method :chars
    rescue NameError
      # OK
    end
  end
end
...


Then I ran "rake db:migrate" the migration died when it got to the
sessions
table with this error:
...
== 16 AddSessions: migrating
==================================================
-- create_table(:sessions)
rake aborted!
Mysql::Error: Table 'sessions' already exists: CREATE TABLE `sessions`
(`id`
int(11) DEFAULT NULL auto_increment PRIMARY KEY, `session_id`
varchar(255)
DEFAULT NULL, `data` text DEFAULT NULL, `updated_at` datetime DEFAULT
NULL)
ENGINE=InnoDB

(See full trace by running task with --trace)
...


So I truncated the sessions table and the rake task completed
successfully.
After that, "script/server" started the application with no problem. But
I
discovered a new problem, my database had been wiped clean during the
process, so when I tried viewing the site at 127.0.0.1:3000 I was
greeted
with a login screen.

I would really appreciate it if anybody who has run into similar
problems
could describe what they did to get through all this.

My setup:

Ruby 1.8.7
Rails 2.2.2, 2.1.2   (tried both)
Radiant 0.6.9

Extensions:

Archive
Blog Tags
Comments
Copy Move
Markdown Filter
Page Attachments
Share Layouts
Subscriber Lists
Textile Filter
Wine Pairing Widget (custom extension)

On OSX 10.5, but the application originated in Ubuntu and was lovingly
transferred over to the mac. Everything worked perfectly when it was
running
on radiant 0.6.7 in both OSX and Ubuntu.



Thanks,

Nate
57badfb3e8a4e8a81536f7dc6e47b812?d=identicon&s=25 Joe Van Dyk (Guest)
on 2008-12-02 19:55
(Received via mailing list)
Problem happened when you upgraded to Ruby 1.8.7.  Use 1.8.6 if you can.
This topic is locked and can not be replied to.