Bug #744
Wordpress import is failing on method dealing with entries
| Status : | New | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | - | |||
| Resolution : |
Description
I am running edge rails and typo trunk, with frozen rails at 1.0.0.
ruby wordpress.rb --db localwordpressdatabase_-_blog --prefix wp_tsNewBlog
From within the typo/db/converters when I run
It converts entries categories, but fails on entries.
Converting 40 categories..
Converting 135 entries..
../../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_sup
port/dependencies.rb:123:in @const_missing': uninitialized constant ApplicationC
ontroller (NameError)
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:131:in @const_missing'
from ../../config/../app/controllers/textfilter_controller.rb:1
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:140:in @load'
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:56:in @require_or_load'
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:30:in @depend_on'
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:85:in @require_dependency'
from ../../config/../app/models/text_filter.rb:2
from ../../config/../vendor/rails/activerecord/lib/../../activesupport/l
ib/active_support/dependencies.rb:140:in @load'
... 7 levels...
from wordpress.rb:58:in @convert_entries'
from wordpress.rb:55:in @convert_entries'
from wordpress.rb:18:in @initialize'
from wordpress.rb:187
History
04/30/2006 07:24 AM - ts-thomasswift-com -
I was able to get it to run by commenting out these two lines and changing user_nicename to user_nickname.
line 19#self.convert_prefsline 46
(CASE LENGTH(user_nickname) WHEN '0' THEN user_login ELSE user_nickname END) AS author,line 58
#a.text_filter = self.options[:text_filter]
Be advised it wont run the import preference function, but I was just looking for the data.