0
Welcome Guest! Login
0 items Join Now

Gantry 4.0.5 Installer Fails in Joomla 3

  • Gantry 4.0.5 Installer Fails in Joomla 3

    Posted 12 years 6 months ago
    • I understand that you're posting that your templates are mostly Joomla 3-compatible, but I've encountered several, simply from updating Gantry.

      Updating Gantry to the latest 4.0.5 gives the following error:
      Fatal error: Call to undefined method JAdministrator::get() in C:\Program Files (x86)\Ampps\www\sitename\tmp\install_5073c64fb00ad\install.script.php on line 293

      The code in question is obviously a call to grab some parameters:
      $app = JFactory::getApplication();
                  $enqueued_messages = $app->get('_messageQueue');
                  $other_messages = array();
                  if (!empty($enqueued_messages) && is_array($enqueued_messages))
                  {
                      foreach ($enqueued_messages as $enqueued_message)
                      {
                          if (!($enqueued_message['message'] == JText::_('JLIB_INSTALLER_ERROR_NOTFINDXMLSETUPFILE') && $enqueued_message['type']) == 'error')
                          {
                              $other_messages[] = $enqueued_message;
                          }
                      }
                  }
                  $app->set('_messageQueue', $other_messages);

      The other problem is in navigating to any Gantry-enabled template. Using the latest Gantry 4.0.5, when I navigate to the edit template view for a template, I get the following error:
      Fatal error: Call to undefined method JController::getInstance() in C:\Program Files (x86)\Ampps\www\sitename\administrator\components\com_gantry\gantry.php on line 25
      Well, line 25 needs to be changed to
      $controller = JControllerAdmin::getInstance('Gantry');
      It looks like JController has been removed, and now you have to specify which controller you're using.

      But then, even after fixing that, we get the following error:
      Fatal error: Class GantryController cannot extend from interface JController in C:\Program Files (x86)\Ampps\www\sitename\administrator\components\com_gantry\controller.php on line 24
      So similarily, line 24 needs to be changed to:
      class GantryController extends JControllerAdmin

      After all these changes, your page will load, but you're still stuck with no output (and an error from the Isis admin template if that's enabled).

      All this to say...
      Gantry has bugs. Real bugs. But that's nothing to be ashamed about. I've been working on your competition's template engine (YooTheme), and they have the exact same problems. The furthest I was able to get was exactly where your template view is now. I'm sure you guys will get to fixing them. But if you need help, I can fork your guys' github repo and make a pull request.

      Good luck fixing, and cheers!
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry 4.0.5 Installer Fails in Joomla 3

    Posted 12 years 6 months ago
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Gantry 4.0.5 Installer Fails in Joomla 3

    Posted 12 years 6 months ago
    • gantry 4.1.1 is out now with j3.0 compatibility.

      kat :)
    • Kat05 / QA Lead & Support / Germany

Time to create page: 0.080 seconds