• Resolved sampei2727

    (@sampei2727)


    hello.
    I have a question about the error message displayed when a required item is not entered on the checkout page.

    If I don’t fill in the required fields and click the checkout button to confirm the order, WooCommerce will point out the missing fields. So far so good. However, if I hit the return key, WooCommerce displays “Please enter a coupon code.” WooCommerce’s normal behavior should display all unfilled fields.

    Even if there are no blank items, hitting the return key will not confirm the order, and will only display “Please enter a coupon code.” Normal behavior should be that even a hit of the return key should confirm the order.

    I have a feeling that something like this happened. I used the services of a hosting company to copy the original site to another domain site. The original site was working fine, and the new copy works fine with other features. But only this error message doesn’t work. What should I fix?

    I’m Japanese and I use Google Translate to communicate, so please excuse any strange expressions or lack of understanding.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://hogehoge.pro
    Site address (URL): https://hogehoge.pro
    WC Version: 7.0.0
    REST API Version: ? 7.0.0
    WC Blocks Version: ? 8.5.1
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: ? 6.0 - 新バージョンの WordPress が利用できます (6.0.3)
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: ja
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.28
    PHP Post Max Size: 1 GB
    PHP Time Limit: 180
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.13-MariaDB-log
    Max Upload Size: 1 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.0.0
    WC Database Prefix: wp_
    データベースの合計サイズ: 466.06MB
    データベースのデータサイズ: 453.02MB
    データベースのインデックスサイズ: 13.04MB
    wp_woocommerce_sessions: データ :0.16MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_api_keys: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_attribute_taxonomies: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_downloadable_product_permissions: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_woocommerce_order_items: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_order_itemmeta: データ :0.05MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_tax_rates: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_woocommerce_tax_rate_locations: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_shipping_zones: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_woocommerce_shipping_zone_locations: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_shipping_zone_methods: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_woocommerce_payment_tokens: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_payment_tokenmeta: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_log: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_actions: データ :2.52MB + インデックス :1.61MB + エンジン InnoDB
    wp_actionscheduler_claims: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_groups: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_logs: データ :1.52MB + インデックス :1.86MB + エンジン InnoDB
    wp_commentmeta: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_comments: データ :0.05MB + インデックス :0.09MB + エンジン InnoDB
    wp_eum_logs: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_e_events: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_e_notes: データ :0.02MB + インデックス :0.17MB + エンジン InnoDB
    wp_e_notes_users_relations: データ :0.02MB + インデックス :0.05MB + エンジン InnoDB
    wp_e_submissions: データ :0.02MB + インデックス :0.27MB + エンジン InnoDB
    wp_e_submissions_actions_log: データ :0.02MB + インデックス :0.11MB + エンジン InnoDB
    wp_e_submissions_values: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_links: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_options: データ :3.48MB + インデックス :0.14MB + エンジン InnoDB
    wp_postmeta: データ :358.42MB + インデックス :5.97MB + エンジン InnoDB
    wp_posts: データ :85.08MB + インデックス :1.09MB + エンジン InnoDB
    wp_termmeta: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_terms: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_term_relationships: データ :0.05MB + インデックス :0.02MB + エンジン InnoDB
    wp_term_taxonomy: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_usermeta: データ :0.09MB + インデックス :0.03MB + エンジン InnoDB
    wp_users: データ :0.02MB + インデックス :0.05MB + エンジン InnoDB
    wp_wc_admin_notes: データ :0.06MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_admin_note_actions: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_cancel_orders: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_category_lookup: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_customer_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_download_log: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_order_coupon_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_order_product_lookup: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_wc_order_stats: データ :0.02MB + インデックス :0.05MB + エンジン InnoDB
    wp_wc_order_tax_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_product_attributes_lookup: データ :0.14MB + インデックス :0.09MB + エンジン InnoDB
    wp_wc_product_download_directories: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_product_meta_lookup: データ :0.06MB + インデックス :0.09MB + エンジン InnoDB
    wp_wc_rate_limits: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_reserved_stock: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_tax_rate_classes: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_webhooks: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_yoast_indexable: データ :0.34MB + インデックス :0.34MB + エンジン InnoDB
    wp_yoast_indexable_hierarchy: データ :0.08MB + インデックス :0.05MB + エンジン InnoDB
    wp_yoast_migrations: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_yoast_primary_term: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_yoast_seo_links: データ :0.06MB + インデックス :0.03MB + エンジン InnoDB
    
    ### Post Type Counts ###
    
    aam_policy: 1
    acf-field: 5
    acf-field-group: 1
    attachment: 234
    customize_changeset: 58
    custom_css: 2
    e-landing-page: 1
    elementor_library: 36
    elementor_snippet: 2
    nav_menu_item: 95
    page: 17
    post: 7
    product: 42
    product_variation: 245
    revision: 6130
    shop_coupon: 1
    shop_order: 16
    viwec_template: 14
    wafs: 1
    wp_global_styles: 4
    yaymail_template: 11
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (33) ###
    
    Advanced Access Manager: 投稿者: Vasyl Martyniuk <[email protected]> – 6.8.5
    Advanced Custom Fields: 投稿者: Delicious Brains – 5.12.3
    All-in-One WP Migration: 投稿者: ServMask – 7.65
    BackWPup: 投稿者: Inpsyde社 – 3.10.0
    Yoast Duplicate Post: 投稿者: Enrico Battocchi & Team Yoast – 4.5
    Elementor Pro: 投稿者: Elementor.com – 3.7.5
    Elementor: 投稿者: Elementor.com – 3.7.4
    Site Kit by Google: 投稿者: Google – 1.85.0
    Media File Renamer: 投稿者: Jordy Meow – 5.4.4
    Menu Duplicator: 投稿者: Jeremy Ross – 0.6
    Min and Max Quantity for WooCommerce: 投稿者: BeRocket – 1.3.2.4
    Printful Integration for WooCommerce: 投稿者: Printful – 2.1.34
    Qty Increment Buttons for WooCommerce: 投稿者: taisho – 2.7.5
    Read More Without Refresh: 投稿者: George Gkouvousis – 3.1
    Shortcode in Menus: 投稿者: Gagan Deep Singh – 3.5.1
    Show Current Template: 投稿者: 上滝 太祐 – 0.4.6
    Simple CSS: 投稿者: Tom Usborne – 1.1.1
    Easy Updates Manager: 投稿者: Easy Updates Manager チーム – 9.0.13
    Advanced Editor Tools (previously TinyMCE Advanced): 投稿者: Automattic – 5.6.0
    Two Factor: 投稿者: プラグインの貢献者 – 0.7.2
    Update URLs: 投稿者: KaizenCoders – 1.0.4
    User Switching: 投稿者: John Blackbourn & contributors – 1.7.0
    WC Cancel Order: 投稿者: WpExperts Hub – 3.1.7
    Widget Shortcode: 投稿者: Hassan Derakhshandeh – 0.3.5
    WooCommerce Advanced Free Shipping: 投稿者: Jeroen Sormani – 1.1.5
    Checkout Fields Manager for WooCommerce: 投稿者: QuadLayers – 6.3.1
    Japanized for WooCommerce: 投稿者: 職人工房 – 2.5.3
    WooCommerce Square: 投稿者: WooCommerce – 3.1.0
    WooCommerce: 投稿者: Automattic – 7.0.0
    Yoast SEO: 投稿者: チーム Yoast – 19.7.1
    WP Multibyte Patch: 投稿者: Seisuke Kuraishi – 2.9
    Xserver Migrator: 投稿者: XSERVER Inc. – 1.6.1
    YayMail - WooCommerce Email Customizer: 投稿者: YayCommerce – 3.0.5
    
    ### Inactive Plugins (2) ###
    
    Payment Plugins for Stripe WooCommerce: 投稿者: Payment Plugins
    [email protected] – 3.3.28
    
    WooCommerce PayPal Payments: 投稿者: WooCommerce – 1.9.4
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: JPY (¥)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ?
    
    ### WC Pages ###
    
    ショップベース: #6 - /shop/
    お買い物カゴ: ? ページには、[woocommerce_cart]ショートコードまたはwoocommerce/cartブロックが含まれていません。
    購入手続き: ? ページには、[woocommerce_checkout]ショートコードまたはwoocommerce/checkoutブロックが含まれていません。
    マイアカウント: #9 - /my-account/
    利用規約: ? ページ表示状態は公開にするべきです
    
    ### Theme ###
    
    Name: hello-elementor Child
    Version: (バージョン0へのアップデートが可能です)
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Hello Elementor
    Parent Theme Version: 2.6.1
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-completed-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-invoice.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-note.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-on-hold-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-processing-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/customer-refunded-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-completed-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-invoice.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-note.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-on-hold-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-processing-order.php
    /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce-for-japan/templates/emails/plain/customer-refunded-order.php
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: 
    Debug Mode: Off
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ? Next scheduled: 2022-10-25 02:45:21 +09:00
    Options: ?
    Notes: 59
    Onboarding: skipped
    
    ### WooCommerce PayPal 決済 ###
    
    Onboarded: ?
    Shop country code: JP
    WooCommerce currency supported: ?
    PayPal card processing available in country: ?
    Pay Later messaging available in country: –
    Webhook status: –
    Vault enabled: ?
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: ?
    
    ### Action Scheduler ###
    
    Complete: 5,463
    Oldest: 2022-09-24 09:04:22 +0900
    Newest: 2022-10-24 17:46:15 +0900
    
    Pending: 3
    Oldest: 2022-10-25 06:16:39 +0900
    Newest: 2022-10-31 01:22:53 +0900
    
    ### Status report information ###
    
    Generated at: 2022-10-25 01:43:48 +09:00
    
    2022-10-24T14:17:55+00:00 CRITICAL Uncaught Error: Call to undefined function wc_print_notices() in /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3801
    Stack trace:
    #0 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/notices.php(111): woocommerce_output_all_notices()
    #1 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2223): ElementorPro\Modules\Woocommerce\Widgets\Notices->render()
    #2 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #3 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content()
    #4 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Widget_Base->print_content()
    #5 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/: /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php の行3801
    
    2022-10-24T14:17:57+00:00 CRITICAL Uncaught Error: Call to undefined function wc_print_notices() in /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3801
    Stack trace:
    #0 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/notices.php(111): woocommerce_output_all_notices()
    #1 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2223): ElementorPro\Modules\Woocommerce\Widgets\Notices->render()
    #2 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #3 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content()
    #4 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Widget_Base->print_content()
    #5 /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/: /home/xs028311/hogehoge.pro/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php の行3801

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    WP Version: ? 6.0 – 新バージョンの WordPress が利用できます (6.0.3)

    The first step is (as a general recommendation) to update the site to the latest version of WordPress. Here there is a tutorial that might help you out with that.

    May I ask if you switch your theme temporarily to Storefront does the issue persist?

    Let us know what you find.

    Thread Starter sampei2727

    (@sampei2727)

    Hello Igor H woo-hc.
    Thank you for your advice.
    After upgrading to 6.0.3, the problem was fixed.
    I apologize for wasting your precious time with such a rudimentary mistake.

    I just copied my website (version 6.0.2), so I assumed the copied site would be the same version. However, the newer website was version 6.0.0. The copy tool I used is probably designed to copy the database and configuration files after installing WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The only error I get on the checkout page is “Please enter a coupon code”.’ is closed to new replies.