致命错误:无法重新声明function()-WP主题

我们最近进行了网站迁移, PHP和WP升级。从PHP 5.6升级到7.0后, 我们当前正在使用自定义主题, 并不断出现以下错误:

致命错误:无法在第220行重新声明get_resources()(…)/functions.php

已经将所有include更改为include_once, 但仍收到相同的错误。

有人遇到过类似的问题吗?


#1


PHP在PHP7中引入了一个名为get_resources()的函数:

get_resources(PHP 7)get_resources —返回活动资源

在此处阅读完整的手册条目。

你必须将WordPress版本升级到最新版本-该修复程序就在其中。

来源:

https://www.srcmini02.com/62522.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37787.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?