0
Welcome Guest! Login
0 items Join Now

Fatal error Class 'JModuleHelper' not found

    • Mike Feng's Avatar
    • Mike Feng
    • Sr. Rocketeer
    • Posts: 197
    • Thanks: 1

    Fatal error Class 'JModuleHelper' not found

    Posted 12 years 2 weeks ago
    • Hi
      I found a supposedly fixed thread on this issue here , but this is something different. I get this error only when I have a format=raw link. It seems, without digging too much into the codes, that Gantry is trying to load modules even when Joomla is expecting a raw format output.

      To fix this, go to /libraries/gantry/core/gantry.class.php, function displayModules, and change it to:
          public function displayModules($positionStub, $layout = 'standard', $chrome = 'standard', $gridsize = GRID_SYSTEM, $pattern = null)
          {
              $input = JFactory::getApplication()->input;
              if (defined('GANTRY_FINALIZED') || $input->get('format') == 'raw') return '';
              gantry_import('core.renderers.gantrymodulesrenderer');
              return GantryModulesRenderer::display($positionStub, $layout, $chrome, $gridsize, $pattern);
          }
       

      I'm not sure if it's the best way, but it works.
    • My extensions: http://www.simbunch.com/
      http://twitter.com/simbunch

Time to create page: 0.048 seconds