Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

Undefined method Gdn_Statistics::IsEnabled() / {dashboard_link} directing to the wrong url

Hi fellow Vanilla users!

I'm getting ready to upgrade forum and hoping to make it go as smooth as possible. I've got 2.5 (dev) and 2.3 (live) running in parallel but after running utility/update on the development database I click the dashboard link and get bounced to /dashboard/settings.

The error is as follows:

Call to undefined method Gdn_Statistics::IsEnabled()
The error occurred on or near: /home/paulus/
71:       $Sender->FireEvent('DefineAdminPermissions');
72:       $Sender->Permission($Sender->RequiredAdminPermissions, '', FALSE);
73:       $Sender->AddSideMenu('dashboard/settings');
75:       if (!Gdn_Statistics::IsEnabled() && Gdn_Statistics::IsLocalhost()) {
76:          $Sender->Render('dashboardlocalhost', '', 'plugins/VanillaStats');
77:       } else {
78:          $Sender->AddJsFile('plugins/VanillaStats/js/vanillastats.js');
79:          $Sender->AddJsFile('plugins/VanillaStats/js/picker.js');

The function does appear to be in the class, and we are using the {dashboard_link} placeholder for the link to the admin area, which still seems to be the best practice in the other themes that ship with Vanilla.

I can access the new-fangled admin area by adding /home to the URL.

It looks like 'dashboard/settings' rather than 'dashboard/settings/home' is hardcoded into the Gdn_Theme->link() method.

Maybe having worked through this to right the point that I'm ready to post it, it might be better placed on Github!


Sign In or Register to comment.