Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.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
Php 致命错误:Can';t在(word press插件)中的写入上下文中使用方法返回值_Php_Wordpress_Plugins - Fatal编程技术网

Php 致命错误:Can';t在(word press插件)中的写入上下文中使用方法返回值

Php 致命错误:Can';t在(word press插件)中的写入上下文中使用方法返回值,php,wordpress,plugins,Php,Wordpress,Plugins,我刚刚在我的word press网站上安装了一个插件,现在我收到了以下消息: 致命错误:无法在第194行的/home2/royaldlx/public_html/wp content/plugins/motopress hotel booking lite/includes/admin/manage cpt pages/booking-manage-cpt-page.php中的写入上下文中使用方法返回值 发生了什么事?有没有办法解决这个问题?先谢谢你。 代码如下: if ( !empty( $

我刚刚在我的word press网站上安装了一个插件,现在我收到了以下消息:

致命错误:无法在第194行的/home2/royaldlx/public_html/wp content/plugins/motopress hotel booking lite/includes/admin/manage cpt pages/booking-manage-cpt-page.php中的写入上下文中使用方法返回值

发生了什么事?有没有办法解决这个问题?先谢谢你。 代码如下:

 if ( !empty( $customer->getEmail() ) ) {
                                $customerInfo .= '<br />'
                                    . '<a href="mailto:' . esc_attr( $customer->getEmail() ) . '">'
                                        . esc_html( $customer->getEmail() )
                                    . '</a>';
                            }
if(!empty($customer->getEmail())){
$customerInfo.='
' . ''; }
有两个冲突。要么您没有正确安装wordpress,要么您的插件冲突,请尝试更改插件或重新安装wordpress

代码在哪里?确定代码添加:)谢谢你的回答,但问题:我可以通过c面板重新安装word press吗?我的所有网站都有丢失的风险吗?可能有,所以你应该确保首先正确备份所有内容。不过,通过FTP删除特定的插件文件夹很可能会让你的网站重新运行。不,没有丢失网站的风险,只需简单地提取数据库,然后下载所有文件。那就做吧。或者你也可以删除你的插件