2017-06-29 53 views
0

所以,我的网络管理员控制台上我的WordPress网站是给我这个错误在顶部:错误在我的网络管理员控制台中的WordPress

注意: is_current_page被称为不正确。函数被调用之后才有可能准确地确定当前的页面是什么。有关更多信息,请参阅WordPress中的调试。 (在4.5.6版本中添加了该 消息。)在 /var/www/html/wp-includes/functions.php上线4139

它这重复了好几次。我如何让它消失?它发生在我删除了一个导致另一个插件出现问题的插件之后。

任何意见将不胜感激!

这是行4139:

* Filters whether to trigger an error for _doing_it_wrong() calls. 
* 
* @since 3.1.0 
* 
* @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true. 
*/ 
if (WP_DEBUG && apply_filters('doing_it_wrong_trigger_error', true)) { 
    if (function_exists('__')) { 
     if (is_null($version)) { 
      $version = ''; 
     } else { 
      /* translators: %s: version number */ 
      $version = sprintf(__('(This message was added in version %s.)'), $version); 
     } 
     /* translators: %s: Codex URL */ 
     $message .= ' ' . sprintf(__('Please see <a href="%s">Debugging in WordPress</a> for more information.'), 
      __('https://codex.wordpress.org/Debugging_in_WordPress') 
     ); 
     /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message */ 
     trigger_error(sprintf(__('%1$s was called <strong>incorrectly</strong>. %2$s %3$s'), $function, $message, $version)); 
    } else { 
     if (is_null($version)) { 
      $version = ''; 
     } else { 
      $version = sprintf('(This message was added in version %s.)', $version); 
     } 
     $message .= sprintf(' Please see <a href="%s">Debugging in WordPress</a> for more information.', 
      'https://codex.wordpress.org/Debugging_in_WordPress' 
     ); 
     trigger_error(sprintf('%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version)); 
    } 
} 
+0

你的functions.php文件的4139行是什么?您是否尝试过停用所有插件? – j08691

+0

不,我还没有尝试停用所有插件。我会试试 –

+0

好的,我的网络停用了所有的插件,它仍然显示出来...... –

回答

0

我做出了错误的行前加入@ 4139.

@trigger_error(sprintf的(走__(“%1 $ S被称为不正确。%2 $ s%3 $ s'),$ function,$ message,$ version));