0
Welcome Guest! Login
0 items Join Now

Most Templates do not work, class name error

    • Sam Totman's Avatar
    • Sam Totman
    • Newbie
    • Posts: 5
    • Thanks: 0
    • Director of External Relations at Anderson University in South Carolina

    Most Templates do not work, class name error

    Posted 13 years 4 months ago
    • I'm having difficulty getting almost any of the templates to work on this specific site. I haven't had this problem on my other rt wordpress site. I continue to get the following error whenever I switch to a different rt template.

      Class name must be a valid object or a string in ...[my site ]..../wp-content/plugins/gantry/widgets/menu.php on line 142

      I get this error whether I use the menu widget or not.

      http://www.michaelduduit.info
      Wordpress 3.3
      Gantry Version 1.22


      The only template I can get to show anything is syndicate but I would prefer to have hybrid.

      Line (group) referenced in error.
       protected function initializeMenu($instance = null) {
              $menu = null;
              if (null == $instance) {
                  $instance = $this->getInstance();
              }
              $theme_info = self::$themes[$instance['theme']];
              $theme = new $theme_info['class'];
       
              $menu = new GantryMenu($theme, $instance);
              $menu->initialize();
              return $menu;
          }
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Most Templates do not work, class name error

    Posted 13 years 4 months ago
    • Usually this happens when switching themes if there is a menu widget in use on the previous themes. When you switch themes, the widget position assignments don't carry over from one to the other, it's not really a plug and play type situation. Make sure you have disabled the Gantry menu widget in ALL of the themes. Sometime it tries to do something funky with it when switching. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
    • Hasanah's Avatar
    • Hasanah
    • Newbie
    • Posts: 4
    • Thanks: 0

    Re: Most Templates do not work, class name error

    Posted 13 years 1 month ago
    • Sorry, I'm a bit confuse. What do you mean with 'gantry menu widget'. Would you explain the step-by-step
      Thank you in advanced
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Most Templates do not work, class name error

    Posted 13 years 1 month ago
    • In your widgets screen, there is a Gantry Menu Widget placed in the position where your Navigation is - that is what creates your menu. Remove it from the widget position.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: Most Templates do not work, class name error

    Posted 12 years 5 months ago
    • Thank you

Time to create page: 0.064 seconds