PHP 7.0更新到7.1和至少7.2

时间:2018-06-09 作者:alain bellec

我想最终将WP的php从7.0版本升级到7.2版本。

例如,SG optimizer在尝试升级到php 7.1时给出错误

这些是:

以下插件/主题与PHP 7.1不兼容。

Html5 Audio PlayerSee Errors
FILE: /var/www/html/wp-content/plugins/html5-audio-player/inc/follow.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/inc/custom-offer.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/cmb2/js/index.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/cmb2/css/index.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/cmb2/images/index.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/cmb2/includes/index.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/wp-content/plugins/html5-audio-player/cmb2/index.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WPForms LiteSee Errors
FILE: /var/www/html/wp-content/plugins/wpforms-lite/includes/analytics/class-monster-insights.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

End Report 1528548781
我不知道该怎么办?那该相信什么呢?这些错误是否严重?

我可以升级吗?如果安全升级到php 7.1和php 7.2,该怎么办?还有什么不该做的呢?

如果可能的话,用简单的方法。。。

我必须告诉你,我已经在我的机器上安装了php 7.2,它似乎工作得很好,但WP的php仍然是7.0,正常吗?

您好。

1 个回复
SO网友:Rick Hellewell

许多插件都有一个“空”索引。什么都不做的php;插件代码在别处。

但您需要联系插件的作者/支持人员以获得明确的答案。

结束

相关推荐

是否可以在Single.php中根据POST格式定制POST?

首先让我知道,我以前写过一个博客,我已经根据帖子格式进行了自定义,但我已经在博客主页(即索引)上进行了自定义。php。现在我正在制作另一个博客,我想通过帖子格式对其进行自定义,但这次我想自定义阅读页面上的帖子,即单篇。php(根据帖子类型)。是否可以这样做,或者我们只能在索引上自定义帖子格式。php。Update: Sorry:-其post格式不是post类型