0
Welcome Guest! Login
0 items Join Now

SOLVED Joomla 3.8/Gantry 4 - fix for offline and error pages

  • SOLVED Joomla 3.8/Gantry 4 - fix for offline and error pages

    Posted 7 years 7 months ago
    • Hi there,

      I noticed your announcement for the fix. I would like to add,
      that the class JDocumentRendererHead is obsolete and an alias for class HeadRenderer.
      Refer to classmap.php in folder "libraries" of Joomla root directory.
      So I fixed it like this:
      // require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');
      // $header_renderer = new JDocumentRendererHead($doc);
      
      $header_renderer = new Joomla\CMS\Document\Renderer\Html\HeadRenderer($doc);

      As far as I know the class is autoloaded, that is why I did not use "require_once" or "JLoader::import()";
    • Last Edit: 7 years 7 months ago by Christoph Hagedorn. Reason: typo
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Joomla 3.8/Gantry 4 - fix for offline and error pages

    Posted 7 years 7 months ago
    • Thanks I'll pass that along to our developers.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Joomla 3.8/Gantry 4 - fix for offline and error pages

    Posted 7 years 7 months ago
    • So I checked with our DEVS and your method does not work in anything less than J3.8 and we have to have it work in earlier versions of Joomla too.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Joomla 3.8/Gantry 4 - fix for offline and error pages

    Posted 7 years 7 months ago
    • Yes, that's true. It is not backward compatible.

Time to create page: 0.065 seconds