Helix 3 Bug In Error.php - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Helix 3 Bug In Error.php

J

joomlaprofessionals

Helix Framework 4 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?

0
1 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18655

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

0