会员插件有两个php异常日志问题

Anky 发布于 分类:建议

第一个:

PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, stdClass given
文件:wpcom-member/includes/social-login.php 第 1177 行

第二个:每次个新用户微信登录新注册账号时都会警告一次

2026/03/28 11:57:44 [error] 3473#0: *443 FastCGI sent in stderr: "PHP message: PHP Warning: Trying to access array offset on false in /www/wwwroot/domain.com/wp-includes/pluggable.php on line 2338; PHP message: PHP Warning: Trying to access array offset on false in /www/wwwroot/domain.com/wp-includes/pluggable.php on line 2339; PHP message: PHP Warning: Trying to access array offset on false in /www/wwwroot/domain.com/wp-includes/pluggable.php on line 2340; PHP message: PHP Warning: Trying to access array offset on false in /www/wwwroot/domain.com/wp-includes/pluggable.php on line 2341" while reading response header from upstream, client: 1.11.111.11, server: domain.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "domain.com", referrer: "https://domain.com/social/"

反馈一下

1个回复

  • Lomu
    Lomu

    第一个问题后续这边更新优化增加下类型判断;第二个问题的话排查应该并非插件原因导致,您也可以根据您的报错位置看下相关代码,大概是发送新用户通知邮件的,如果是咱们用户中心插件默认配置应该是不会运行到这里,在上面 wp_send_new_user_notification_to_user 这个filetr的时候就会返回false,您应该是有其他插件或者二次开发修改过这部分业务代码导致。

微信咨询
QQ咨询
扫码关注

扫码关注微信

关注我们获取最新资讯 关注微信公众号 立即扫码关注我们