# Upgrade to 0.8.1, extensions failing (multi\_site, reorder..)

**URL:** <https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849>\
**Category:** Radiant CMS\
**Created:** [December 5, 2009, 6:36am UTC](https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849 "2009-12-05T06:36:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [December 5, 2009, 6:36am UTC](https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849/1 "2009-12-05T06:36:23Z")

</div>

Hi,

I’m having a hell of a time trying to get 0.8.1 working for me, with any  
extensions that manipulate the admin navigation system.

With multi\_site I’m getting this error:

undefined method `nav’ for #Radiant::AdminUI:0x103618b78

This is the same error for a fresh Radiant project, with just Ray and  
multi-site installed. I say “installed”, it fails on running the  
migration task, complaining of the above error and disabling the  
extension. Enabling it and manually migrating or even just running the  
server returns the same error…

Using OS X 10.6.2, stock Ruby, all Gems updated…

WTF?! Looking at the changelogs et al, there’s mention of these  
extensions being updated for 0.9, so I can’t imagine that they’ve been  
overlooked and are broken, so why is it failing without cause on my  
end??

Thanks in advance.  
Jon.

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [December 10, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849/2 "2009-12-10T14:37:14Z")

</div>

Jonathan McCoy wrote:

> Hi,
> 
> I’m having a hell of a time trying to get 0.8.1 working for me, with any  
> extensions that manipulate the admin navigation system.
> 
> With multi\_site I’m getting this error:  
> undefined method `nav’ for #Radiant::AdminUI:0x103618b78

Try this:

1. open the file multi\_site\_extension.rb (it’s located in the plugin’s  
root)
2. comment row 28: #admin.nav[:settings] \<\< …
3. add a row: admin.tabs.add(“Sites”, “/admin/sites”)

It should become something like this:

def activate  
require ‘multi\_site/route\_extensions’  
require ‘multi\_site/route\_set\_extensions’  
Page.send :include, MultiSite::PageExtensions  
SiteController.send :include, MultiSite::SiteControllerExtensions  
Admin::PagesController.send :include,  
MultiSite::PagesControllerExtensions  
admin.pages.index.add :bottom, “site\_subnav”  
 → #admin.nav[:settings] \<\< admin.nav\_item(“Sites”, “Sites”,  
“/admin/sites”)  
 → admin.tabs.add(“Sites”, “/admin/sites”)  
@sites = load\_default\_regions  
end

> Thanks in advance.  
> Jon.

Tell me if it works!

Fabrizio

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [December 10, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849/3 "2009-12-10T14:52:37Z")

</div>

Fabrizio Ruatta wrote:

> Tell me if it works!  
> … I forgot to also say this:

in the 2 files:  
multi\_site\app\views\admin\sites\new.html.haml  
multi\_site\app\views\admin\sites\edit.html.haml

remove the first line (ie: - body\_classes \<\< “reversed” )

Fabrizio

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [December 10, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/upgrade-to-0-8-1-extensions-failing-multi-site-reorder/179849/4 "2009-12-10T16:26:11Z")

</div>

Fabrizio Ruatta wrote:

> Fabrizio Ruatta wrote:
> 
> > Tell me if it works!  
> > … I forgot to also say this:
> 
> in the 2 files:  
> multi\_site\app\views\admin\sites\new.html.haml  
> multi\_site\app\views\admin\sites\edit.html.haml
> 
> remove the first line (ie: - body\_classes \<\< “reversed” )
> 
> Fabrizio

Hi Fabrizio,

I tried a freshly built Radiant app with the same plugins I use, and it  
worked without any mods. The only difference (minus the DB settings),  
was the Rakefile, which lo and behold, contained Vlad. Commenting out  
Vlad makes the original app work perfectly.

After a bit of research, it turns out it’s related to the use of  
‘export’ in the routes (for the import/export controller) which is  
clashing with Vlad. By undef’ing export after Vlad is declared, it  
actually solves the problem. Looks like the routes in Radiant need  
cleaning up a bit?

Jon.
