0
Welcome Guest! Login
0 items Join Now

SOLVED Fatal error: Call to undefined method JToolBar::setT

    • mfubib's Avatar
    • mfubib
    • Rocketeer
    • Posts: 69
    • Thanks: 0

    SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 5 months ago
    • Hi,

      I seem to have broken something. After making a variety of changes to my site (including uninstalling some components, changing menus etc), I went to edit the site template and got the following error message:

      Fatal error: Call to undefined method JToolBar::setToolBar() in /home/justapor/public_html/administrator/templates/rt_missioncontrol/lib/rtcore.class.php on line 294

      Now I am unable to log into Mission Control.

      Here is the code the message is referring to:
             //create new toolbar object
              $toolbar = new JToolbar('toolbar');
             
              //$toolbar->_buttonPath[0] = $this->basePath.DS.'libraries'.DS.'joomla'.DS.'html'.DS.'toolbar'.DS.'button';
              
              $toolbar->setToolBar($newbar);     //this is line 294
              
              //$toolbar->_bar = $newbar;
              $toolbar->setButtonPath($bar->getButtonPath());
              $toolbar->_actions = $actions;
              $toolbar->_first = $first; 
              $this->toolbar = $toolbar;
              $this->actions = $actions;
              $this->first = $first;
       
              //new help button
              $helpbar = new JToolbar('help');
              //$helpbar->_buttonPath[0] = $this->basePath.DS.'libraries'.DS.'joomla'.DS.'html'.DS.'toolbar'.DS.'button';
              $helpbar->setToolbar($newhelp);
       
              $this->help = $helpbar;
       
          }
       

      Does anyone know what could be causing this?
    • Last Edit: 13 years 5 months ago by mfubib.
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 5 months ago
    • Did you unpublish the missioncontrol plugin? that's required for this to function properly. Also you are running MissionControl2 for Joomla 1.7 right?
    • mfubib's Avatar
    • mfubib
    • Rocketeer
    • Posts: 69
    • Thanks: 0

    Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 5 months ago
    • I've managed to get access to the admin panel by changing the default template in the database and have checked that the 'System - MissionControl Support' plugin is installed & enabled & yes, I am running J1.7.2 and MC2.1.

      I've just reinstalled Mission Control which seems to have fixed the JToolbar issue - but I'm still not able to edit my Panacea template styles - when I click on them now I get "404 - An error has occurred. Component not found"

      Any idea why this is? The front end of the site is working fine.
    • mfubib's Avatar
    • mfubib
    • Rocketeer
    • Posts: 69
    • Thanks: 0

    Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 5 months ago
    • I've had no luck in figuring out what is causing this so have just restored from a working backup - as always, thanks for your help Andy.
    • jooru's Avatar
    • jooru
    • Hero Rocketeer
    • Posts: 379
    • Thanks: 10
    • It’s Webtime! )

    Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 3 months ago
    • I have such problem now.

      1. Install clear Joomla from scratch.
      2. Install Gantry.
      3. Install MissionControl, it's ok - MissionControl is in the list of available Templates.
      4. Set MissionControl as default template.

      ...and get an error:

      PHP Fatal error: Call to undefined method JToolBar::setToolBar() in /home/<...>/www/administrator/templates/rt_missioncontrol/lib/rtcore.class.php on line 294

      Joomla: ver. 1.7.3
      Gantry: ver. 3.2.13
      MissionControl: ver. 2.2

      ======================================

      UPD: Problem is self-solved in 15 minutes. Maybe, it was old cache files - I don't know why I turn it "on" in the beginning... Thanks for your attention! :)
    • — We don’t put dates, with a date the document becomes invalid.
      © Tomcat Behemoth, “The Master and Margarita” by Mikhail Bulgakov
  • Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 3 months ago
    • Just ran into the same problem ....
      1) everything working
      2) uninstalled 3 extensions (including k2)
      3) get error PHP Fatal error: Call to undefined method JToolBar::setToolBar() in /home/<...>/www/administrator/templates/rt_missioncontrol/lib/rtcore.class.php on line 294
      on sign in

      I cannot sign on administration to make any corrections!
      Waiting to see if problem is self solving as above - but even if it does this appears to need looking at by someone with knowledge....
    • Have trowel, will travel.
  • Re: SOLVED Fatal error: Call to undefined method JToolBar::setT

    Posted 13 years 3 months ago
    • some advice here:

      www.rockettheme.com/forum/index.php?f=42..._v=viewtopic#p757145

      about resetting values in database table led to me being able to log in with different admin template;

      I then reinstalled MissionControl and everything appears to work...

      I have no idea what happened in uninstall of some extensions to cause MissionControl to fail nor why using ftp to copy MissionControl from another site over top of the one in my problem site didn't do the trick... but at least the issue is resolved for now.
    • Have trowel, will travel.

Time to create page: 0.069 seconds