我的Joomla网站显示PHP错误:无法打开流

问题描述 投票:-1回答:1

我正在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

我无法从该模板开发人员那里获得支持,因为我的订阅已过期,并且更改模板将花费我很多时间,能否请任何人建议如何解决?

非常感谢!

php joomla
1个回答
0
投票

尝试删除第52行

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

来自文件

/public_html/templates/jf_social/error.php

您的joomla版本不再支持renderer / head.php。

© www.soinside.com 2019 - 2024. All rights reserved.