Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Wordpress:安装任何插件时出错_Javascript_Php_Wordpress - Fatal编程技术网

Javascript Wordpress:安装任何插件时出错

Javascript Wordpress:安装任何插件时出错,javascript,php,wordpress,Javascript,Php,Wordpress,我正在设置wordpress主题并尝试安装任何插件。这显示了我安装任何插件时的错误 if($this->result&&!is\wp\u error($this->result)){ 如果(!$this->错误){ 回显“”。”.sprintf($this->upgrader->strings['skin\u update\u successful',$title)。“。”。“('Show details')。”。”; } echo'jQuery(\'.waiting-'.esc_js($th

我正在设置wordpress主题并尝试安装任何插件。这显示了我安装任何插件时的错误

if($this->result&&!is\wp\u error($this->result)){
如果(!$this->错误){
回显“”。”.sprintf($this->upgrader->strings['skin\u update\u successful',$title)。“。”。“('Show details')。”。

”; } echo'jQuery(\'.waiting-'.esc_js($this->upgrader->update_current)。'\').hide(); } $this->reset(); $this->flush_output(); }
您可以尝试其他主题,看看是否存在相同的问题。然后尝试重新安装wordpress。如果仍然存在错误,则可能是服务器问题

请查看有关sprintf使用的文档。
    if($this->result && ! is_wp_error($this->result)){
if(!$this->error){
echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' . '<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) . ' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' . '</p></div>';
}
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>';
}
$this->reset();
$this->flush_output();
}