My Joomla site shows PHP error: failed to open stream

My Joomla site shows PHP error: failed to open stream

我正在 Joomla 网站上工作,最近刚刚将 PHP 更新到 7.2,但我的网站开始出现错误。我也将 Joomla 更新到最新版本,但仍然出现错误。我不擅长 PHP 并且不知道如何解决它。

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

我认为错误来自我的 Joomla 模板,我正在使用这个 https://www.joomforest.com/joomla/templates/jf-social

我无法获得该模板开发人员的支持,因为我的订阅已过期,更改模板对我来说会花费很多时间, 你能请任何人建议如何解决它吗?

非常感谢!

尝试删除第52行

require_once(/public_html/libraries/joomla/document/html/renderer/head.php)

来自文件

/public_html/templates/jf_social/error.php

您的 joomla 版本不再支持 renderer/head.php。如果没有更多错误,则一切正常,否则您的模板将不再受支持。

然后转到文件

/public_html/templates/jf_social/features/color.php

并编辑行

function Color($hex){

function __construct($hex){