0
我在woocommerce网站的评论中看到这个错误。 我认为这个问题是与电子邮件,但如何解决呢 请帮助警告:strlen()期望参数1是字符串,对象在2481行的格式化.php中给出
警告:strlen的()预计参数1是字符串,对象formatting.php给出线2481
线2481第二行
<code>
// Test for the minimum length the email can be
if (strlen($email) < 3) {
/**
* Filter whether an email address is valid.
*
* This filter is evaluated under several different contexts, such as 'email_too_short',
* 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits',
* 'domain_no_periods', 'sub_hyphen_limits', 'sub_invalid_chars', or no specific context.
</code>
你的错误意味着你正在传递一个对象到你的strlen函数。所以$ email是一个对象。 这个$电子邮件从哪里来? –