【问题标题】:Fatal error: Can't use method return value in write context in (word-press plugin)致命错误:无法在(word-press 插件)的写入上下文中使用方法返回值
【发布时间】:2020-03-11 07:14:58
【问题描述】:

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

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

发生了什么事?有什么办法可以解决吗?先感谢您。 代码下方:

 if ( !empty( $customer->getEmail() ) ) {
                                $customerInfo .= '<br />'
                                    . '<a href="mailto:' . esc_attr( $customer->getEmail() ) . '">'
                                        . esc_html( $customer->getEmail() )
                                    . '</a>';
                            }

【问题讨论】:

  • 代码在哪里?
  • 添加好的代码:)

标签: php wordpress plugins


【解决方案1】:

有两个冲突。要么你没有正确安装你的wordpress,要么你的插件有冲突,尝试更改插件或重新安装wordpress。

【讨论】:

  • 感谢您的回答,但问题是:我可以通过 c-panel 重新安装 word-press 对吗?是否有丢失我所有网站的风险?
  • 可能有,所以你应该确保先正确备份所有内容。
  • 通过 FTP 删除特定的插件文件夹很可能应该能够让您的网站再次运行。
  • 不,简单地释放您的站点、提取您的数据库并下载所有文件是没有风险的。然后去做。或者你也可以删除你的插件
猜你喜欢
  • 1970-01-01
  • 2016-08-12
  • 1970-01-01
  • 1970-01-01
  • 2019-11-06
  • 2012-06-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多