nginx服务器上的wordpress ubermenu警告

时间:2017-09-21 21:08:42

标签: php wordpress nginx amazon-s3

我的aws服务器上有一个站点,PHP 7.1和nginx作为php的服务器。 Wordpress最新版本正在运行。很多时候,每20分钟我就会在访问网站时看到502错误。 Nginx服务器日志显示以下警告。

*674241 FastCGI sent in stderr: "m_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Cannot assign an empty string to a string offset in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 673
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Cannot assign an empty string to a string offset in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 673
PHP message: PHP Warning:  Illegal string offset 'submenu_type_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 371
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Cannot assign an empty string to a string offset in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 673
PHP message: PHP Warning:  Illegal string offset 'item_display_calc' in wp-content/plugins/ubermenu/includes/menuitems/UberMenuItem.class.php on line 563

在简单的谷歌搜索后,我得到了这个文件:http://sevenspark.com/docs/ubermenu-3/faqs/php-7-1-warnings之后错误仍然相同。

请提供一些有用的解决方案,谢谢

1 个答案:

答案 0 :(得分:0)

我刚刚注释掉了代码的初始化行

// $this->settings['item_display_calc'] = '';