# New page can't be added anymore

**URL:** <https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373>\
**Category:** Radiant CMS\
**Created:** [October 16, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373 "2007-10-16T13:10:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [October 16, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373/1 "2007-10-16T13:10:56Z")

</div>

Hello people,

I am a newbie and I developed a running application with radiant 0.6.1  
that used at the beginning MySQL as database.

However, after changing the database from MYSQL to DB2, if I click on  
“add a new page” botton in radiant admin it

return this error:

ActionView::TemplateError (undefined method `filter\_id’ for  
nil:NilClass) on line #69 of vendor/radi  
ant/app/views/admin/page/edit.rhtml:  
66: }  
67: return false;  
68: }  
69: var last\_filter = “\<%= default\_filter\_name %\>”;  
70: function load\_filter\_reference(part) {  
71: filter\_type = $F(“part[” + part + “][filter\_id]”);  
72: popup = $(‘filter-reference-popup’);

```
#{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:93:in

```

`content_f or' #{RAILS_ROOT}/vendor/radiant/app/views/admin/page/edit.rhtml:69:in`_run\_rhtml\_47vendor47radiant  
47app47views47admin47page47edit46rhtml’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/helpers/capture\_helper.rb:108:in  
 `call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:108:in`capture_  
erb\_with\_buffer’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/helpers/capture\_helper.rb:67:in  
`capture' (eval):1:in`content\_for’  
#{RAILS\_ROOT}/vendor/radiant/app/views/admin/page/edit.rhtml:1:in  
`eval' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:93:in`content\_f  
or’  
#{RAILS\_ROOT}/vendor/radiant/app/views/admin/page/edit.rhtml:1:in  
`_run_rhtml_47vendor47radiant4 7app47views47admin47page47edit46rhtml' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in`send’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/base.rb:326:in  
`compile_and_render_templat e' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in`render\_template’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/base.rb:260:in  
`render_file' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:806:in`render\_file’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:738:in  
`render_with_no_layou t' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:863:in`render\_without\_layou  
t’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:798:in  
`render_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:748:in`render\_with\_no\_layou  
t’  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/deprecation.rb:44:in  
`silence' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:747:in`render\_with\_no\_layou  
t’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/layout.rb:244:in  
`render_without_ben chmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in`render’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in  
`measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in`render’  
#{RAILS\_ROOT}/vendor/radiant/app/controllers/admin/page\_controller.rb:19:in  
`new' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in`send’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:1095:in  
`perform_action_with out_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in`call\_filter’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:638:in  
`call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in`call’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:637:in  
`call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in`call\_filter’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:438:in  
`call' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in`call\_filter’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:638:in  
`call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in`call’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:637:in  
`call_filter' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in`perform\_action\_wi  
thout\_benchmark’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/benchmarking.rb:66:in  
`perform_actio n_without_rescue' E:/dbbiblio/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in`measure’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/benchmarking.rb:66:in  
`perform_actio n_without_rescue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in`perform\_action’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:430:in  
`send' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in`process\_without\_filt  
ers’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:624:in  
`process_without_s ession_management_support' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in`proces  
s’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:330:in  
`process' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in`dispatch’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:  
78:in `process' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb: 76:in`synchronize’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:  
76:in `process' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618:in`process\_client’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in  
`each' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in`process\_client’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in  
`run' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in`initialize’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in  
`new' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in`run’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in  
`initialize' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in`new’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in  
`run' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configura tor.rb:271:in`run’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configura  
tor.rb:270:in `each' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configura tor.rb:270:in`run’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel\_rails:127  
:in `run' E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/command.r b:211:in`run’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel\_rails:243

```
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in

```

`load' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in`load’  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:342:in  
`new_constant s_in' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in`load’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/commands/servers/mongrel.rb:60  
E:/dbbiblio/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_origi nal_require' E:/dbbiblio/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in`new\_constant  
s\_in’  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:495:in  
`require' #{RAILS_ROOT}/vendor/rails/railties/lib/commands/server.rb:39 E:/dbbiblio/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_origi  
nal\_require’  
E:/dbbiblio/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
script/server:3

Is there anybody who can help me??

I tried to update radiant 0.6.1 to 0.6.3 version, but when I run the  
update rake task “rake radiant:update” I got

back this error:

“rake aborted! Don’t know how to built task ‘radiant:update’”

Best regards and many thanks!

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [October 18, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373/2 "2007-10-18T16:36:43Z")

</div>

Did you migrate the database from MYSQL to DB2?

```
For testing, initialize new new database in DB2 by running "rake

```

production db:bootstrap". Radiant should work, albeit without any data.

```
If it works and you want your old data from MYSQL, then you must 

```

dump it  
from MYSQL and import it in DB2. Then do a “rake production db:migrate”  
to  
migrate the schema to the new radiant version. Or do this in MYSQL  
before  
dumping the data.

```
AFAIK, there is somewhere a Radiant extension that exports/imports 

```

the  
DB in YAML. Search the mailing list for it.

```
/AITOR
```

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [October 18, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373/3 "2007-10-18T16:41:25Z")

</div>

the command-line way to dump data base

## backup

mysqldump -u [username] -p [password] [databasename] \> [backupfile.sql]

## restore to mysql (possibly similar way for DB2 ???)

```
mysql -u [username] -p [password] [database_to_restore] < 

```

[backupfile.sql]

saji

- Aitor Garay-Romero [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [2007-10-18 16:35:54 +0200]:

> ```
> AFAIK, there is somewhere a Radiant extension that exports/imports the
> 
> ```
> 
> > I am a newbie and I developed a running application with radiant 0.6.1  
> > ant/app/views/admin/page/edit.rhtml:  
> > `content_f erb_with_buffer' #{RAILS_ROOT}/vendor/radiant/app/views/admin/page/edit.rhtml:1:in `render\_file’  
> > t’
> > 
> > ```
> > E:/dbbiblio/InstantRails/ruby/lib/ruby/1.8/benchmark.rb:293:in
> > 
> > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
> > 
> > ```
> > 
> > `call\_filter’
> > 
> > ```
> > #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
> > 
> > E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-
> > 
> > ```
> > 
> > `process_client' 1.0.1-mswin32/lib/mongrel.rb:736:in E:/dbbiblio/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel- :in `run’  
> > #{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:488:in  
> > E:/dbbiblio/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> > `new\_constant  
> > E:/dbbiblio/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in
> > 
> > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
Saji N. Hameed

APEC Climate Center +82 51 668 7470  
National Pension Corporation Busan Building 12F  
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 removed\_email\_address@domain.invalid  
KOREA

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [October 19, 2007, 10:36am UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373/4 "2007-10-19T10:36:57Z")

</div>

Run a “rake --tasks” to see if the Rakefile is in shape and the  
“radiant:update” task is there.

```
If the rake-tasks are not working i assume that you didn't run a 

```

“rake  
db:update” neither.

```
/AITOR
```

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [October 19, 2007, 9:33am UTC](https://www.ruby-forum.com/t/new-page-cant-be-added-anymore/117373/5 "2007-10-19T09:33:31Z")

</div>

Aitor Garay-Romero wrote:

I already migrated from MYSQL to DB2 and i dumped my old data from MYSQL  
and imported 'em in DB2 and the application is runnig.

However, the problem is that if i enter in admin and i try to add a new  
page the button by clikking “Add child”, it don’t work and return me the  
error i posted before.

I also tried to update radiant 0.6.1 to 0.6.3 version, but when I run  
the  
update rake task “rake radiant:update” I got back this error:

“rake aborted! Don’t know how to built task ‘radiant:update’”

cheers
