Helix 3 bug in error.php - Forum | JoomShaper
Solved Helix Framework

Helix 3 bug in error.php

Asked by joomlaprofessionals 5 years ago Last activity 5 years ago

In Helix 3 there is a file error.php. Line 42 of that file reads:

require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

But, Joomla 3.9.26 and 3.9.27 (possibly also older versions) don't have the folder /libraries/joomla/document so in case of an error and themplate loads error.php then it can't execute the require_once statement of line 42 and the site crashes. How can this be solved?

Accepted answer

Marked as the solution
Toufiq Senior Staff

Hi there,

Thanks for contacting us. Please follow the instructions.

Go to the file location

templates/your_template/error.php

Find out this line of code

require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

And replace with this code

$header_contents = '';
if(!class_exists('JDocumentRendererHead')) {
  $head = JPATH_LIBRARIES . '/joomla/document/html/renderer/head.php';
  if(file_exists($head)) {
    require_once($head);
  }
}

-Thanks

Log in to reply.