当来宾用户签出并且不选择创建帐户时,帐户将被创建。此外,当用户试图用他用于购买的电子邮件“注册”他的帐户时,系统甚至在不请求密码的情况下登录。
失败的解决方案
Woocommerce > Settings > Account & Privacy中启用/禁用“允许客户在结帐期间登录现有帐户”选项。实例信息
我在Woocommerce > Settings > Account & Privacy中启用的其他配置如下:
下面是有关WordPress生产实例的信息(我还在Windows实例中测试了相同的错误):
### wp-core ###
version: 5.3.2
site_language: en_US
user_language: en_US
timezone: +01:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
user_registration: 0
default_comment_status: open
multisite: false
user_count: 11
dotorg_communication: true
### wp-active-theme ###
name: Storefront Child Theme (storefront-child)
version: 1.0.0
author_website: (undefined)
parent_theme: Storefront (storefront)
theme_features: post-thumbnails, automatic-feed-links, custom-logo, menus, html5, custom-background, custom-header, site-logo, title-tag, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-font-sizes, editor-style, responsive-embeds, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, starter-content, widgets
### wp-parent-theme ###
name: Storefront (storefront)
version: 2.5.3
author: Automattic
author_website: https://woocommerce.com/
### wp-themes-inactive (1) ###
Twenty Twenty: version: 1.0, author: the WordPress team (latest version: 1.1)
### wp-plugins-active (10) ###
Autoptimize: version: 2.5.1, author: Frank Goossens (futtta) (latest version: 2.6.1)
Contact Form 7: version: 5.1.5, author: Takayuki Miyoshi (latest version: 5.1.6)
GDPR Cookie Consent: version: 1.8.2, author: WebToffee
TeraWallet: version: 1.3.11, author: WCBeginner
Tidio Chat: version: 4.2.1, author: Tidio Ltd.
WooCommerce: version: 3.8.0, author: Automattic (latest version: 3.8.1)
WooCommerce Admin: version: 0.22.0, author: WooCommerce (latest version: 0.24.0)
WooCommerce Stripe Gateway: version: 4.3.1, author: WooCommerce
YITH WooCommerce Social Login: version: 1.3.7, author: YITH (latest version: 1.3.9)
Yoast SEO: version: 12.5.1, author: Team Yoast (latest version: 12.8)
### wp-plugins-inactive (3) ###
All-in-One WP Migration: version: 7.10, author: ServMask (latest version: 7.14)
Order Delivery Date for WooCommerce (Lite version): version: 3.10, author: Tyche Softwares
Query Monitor: version: 3.4.0, author: John Blackbourn (latest version: 3.5.2)
### wp-media ###
image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
gd_version: bundled (2.1.0 compatible)
ghostscript_version: unknown
### wp-server ###
server_architecture: Linux 2.6.32-754.14.2.el6.x86_64 x86_64
httpd_software: Apache
php_version: 7.0.33 64bit
php_sapi: cgi-fcgi
max_input_variables: 8000
time_limit: 30
memory_limit: 512M
max_input_time: 180
upload_max_size: 2M
php_post_max_size: 8M
curl_version: 7.67.0 OpenSSL/1.0.2t
suhosin: false
imagick_availability: false
htaccess_extra_rules: true
### wp-database ###
extension: mysqli
server_version: 10.3.21-MariaDB
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable发布于 2020-02-25 18:25:38
乔伊(@jricketts4 4)在woocommerce论坛中的回答
你好@pirralhobat 我花了一分钟才弄清楚你的报告,但我终于明白了。我们在这里看到的是预期的行为,实际上不需要你用截图记录的前两个步骤。 发生这种情况的原因是三种设置的组合:
仅禁用以下一项将“修复”您不想看到的问题:
( a)您将不允许您的客户通过“我的帐户”页面注册,或者( b)您将不会在注册期间自动生成密码(要求您的客户输入自己的密码)。
如果这一切都没有意义,请告诉我!
问题确实是对组合的解释。
最后,我禁用了“创建帐户时,自动生成帐户密码”,并添加代码来进行电子邮件验证,从而验证过去使用该网站进行采购的用户的有效性。这最终会阻止任何试图使用以前用于购买的电子邮件创建帐户的用户。
https://stackoverflow.com/questions/59757927
复制相似问题