title: My Joomla site shows PHP error: failed to open stream
body: <p>I am working on a Joomla site, and just recently updated PHP to 7.2, but my site started throwing errors. I have also updated Joomla to the latest version, but errors still appear. I'm not good in PHP and don't know how to fix it.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /public_html/templates/jf_social/features/color.php on line 11
  
  Warning: require_once(/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /public_html/templates/jf_social/error.php on line 52
  
  Fatal error: require_once(): Failed opening required '/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/php:/opt/cpanel/ea-php73/root/usr/share/pear') in /public_html/templates/jf_social/error.php on line 52</code></pre>
  </div>
  </div>
  </p>
  
  <p>I think error comes from my Joomla template, I am using this one <a href="https://www.joomforest.com/joomla/templates/jf-social" rel="nofollow noreferrer">https://www.joomforest.com/joomla/templates/jf-social</a></p>
  
  <p>I can't receive support from that template developers, because my subscription is expired, and changing the template will take a lot of time for me,
  can you please anyone advise how to fix it?</p>
  
  <p>Thank you very much!</p>