字符串偏移量非法警告nav-menu.php

时间:2019-06-29 10:16:04

标签: php

我收到此错误

  

”警告:   601行上/home/smsti/public_html/wp-includes/nav-menu.php中的字符串偏移量'output_key'非法

,我意识到文件中的这段代码是错误的,但是我在PHP中还不是很出色,我想知道是否有人可以帮助我重写这一部分来消除错误。

$items[$k]->$args['output_key'] = $i++;

1 个答案:

答案 0 :(得分:0)

将其替换为wp-config.php中的行而不是

旧代码

define('WP_DEBUG', false);

新代码

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
相关问题