Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter brego12

    (@brego12)

    Hello,

    Thank you for your reply.

    The shipping methods are already configured correctly in WooCommerce. The same checkout configuration works properly when paying with PayPal and Google Pay, and orders are created without any issue, including the shipping method.

    Because of this, it seems the shipping configuration itself is valid and assigned correctly for the customer’s address. The problem appears only in the specific case that triggered the error.

    Could you please advise what additional conditions in the PayPal Payments flow might cause WooCommerce to return the “no shipping method available” error even though the same checkout works with PayPal and Google Pay?

    Best regards

    brego12

    Thread Starter brego12

    (@brego12)

    https://privatebin.syde.com/?d656122e29b81311#E8m5qyJkPuYzk7AtMGEsSrmH8tTwjdRc3x6N18XnWWkP

    Hi @inpsydekrystian ,

    Thank you for your response.

    I followed your troubleshooting steps and disabled all plugins except WooCommerce and WooCommerce PayPal Payments, but the issue still occurs.

    When attempting to pay by card, the API returns the following error:

    {
      "success": false,
      "data": {
        "name": "",
        "message": "Failed to create WooCommerce order: No shipping method has been selected."
      }
    }
    

    It seems that WooCommerce cannot create the order because no shipping method is selected.

    I have also attached the system report in this message, as requested.

    Please let me know if the report shows a possible cause of the issue or if there are any specific shipping settings I should check.

    Best regards,
    brego12

    Thread Starter brego12

    (@brego12)

    The issue appears to be related to the new version of WooCommerce. During validation, a paragraph element is being added via a JavaScript function using a jQuery object. Specifically, this happens in the checkout.min.js file within the show_inline_errors method. Here’s the relevant code snippet for reference:

    show_inline_errors: function(t) { t.find("li[data-id]").each(function() { const t = e(this), o = t.attr("data-id"), c = e("#" + o); if (1 === c.length) { const e = o + "_description", r = t.text().trim(), i = c.closest(".form-row"), n = document.createElement("p"); n.id = e; n.className = "checkout-inline-error-message"; n.textContent = r; i.appendChild(n); c.setAttribute("aria-describedby", e); c.setAttribute("aria-invalid", "true"); } }) },

    Please verify this, but it looks like this function dynamically adds a <p> element with the class checkout-inline-error-message when validation errors are detected.

    Thread Starter brego12

    (@brego12)

    This is WooCommerce code and it generates an error during checkout form validation.

    Thread Starter brego12

    (@brego12)

    show_inline_errors: function(t) {
    t.find(“li[data-id]”).each(function() {
    const $li = e(this),
    id = $li.attr(“data-id”),
    $field = e(“#” + id);
    if ($field.length === 1) {
    const errorId = id + “_description”,
    errorText = $li.text().trim(),
    $formRow = $field.closest(“.form-row”),
    errorEl = document.createElement(“p”);
    errorEl.id = errorId;
    errorEl.className = “checkout-inline-error-message”;
    errorEl.textContent = errorText;
    $formRow.get(0).appendChild(errorEl);
    $field.attr(“aria-describedby”, errorId);
    $field.attr(“aria-invalid”, “true”);
    }
    });
    },

    Thread Starter brego12

    (@brego12)

    Hello,

    I have followed your recommendations:

    • I do not have the Broadcast Queue plugin installed.
    • I have enabled the debug mode as instructed.
    • I have cleared the debug file and broadcasted the post to one blog.

    Please find the debug logs attached.

    [13-Nov-202411:50:58 UTC] PHP Deprecated: Creation of dynamic property threewp_broadcast\ThreeWP_Broadcast::$__admin_scripts is deprecated in /public_html/site/app/plugins/threewp-broadcast/src/traits/admin_scripts.php on line 49

    [13-Nov-202411:50:58 UTC] PHP Deprecated: Creation of dynamic property threewp_broadcast\ThreeWP_Broadcast::$__admin_scripts_hooked is deprecated in /public_html/site/app/plugins/threewp-broadcast/src/traits/admin_scripts.php on line 38

    [13-Nov-202411:51:47 UTC] PHP Deprecated: Creation of dynamic property threewp_broadcast\ThreeWP_Broadcast::$trash_untrash_delete_post_1_5464 is deprecated in /public_html/site/app/plugins/threewp-broadcast/src/traits/post_actions.php on line 479

    [13-Nov-202411:52:35 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /public_html/site/app/plugins/threewp-broadcast/src/sdk/wordpress/traits/debug.php:162) in /public_html/site/wp/wp-includes/pluggable.php on line 1435

    [13-Nov-202411:52:35 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /public_html/site/app/plugins/threewp-broadcast/src/sdk/wordpress/traits/debug.php:162) in /public_html/site/wp/wp-includes/pluggable.php on line 1438

    • High enough role to link: yes
    • Post supports custom fields: yes
    • Post supports thumbnails: yes
    • High enough role to broadcast custom fields: yes
    • High enough role to broadcast taxonomies: yes
    • Blogs available to user: 5
    • Plugins that have hooked into save_post:

    delete_get_calendar_cache10 ACF_Form_Post::save_postacf_save_block_meta_valuesdisplay_tax_sync_messagebodhi_svgs_save_featured_image_meta[Anonymous function]10 Forminator_Admin::clear_pages_cache10 RankMath\Links\Links::save_post10 RankMath\Sitemap\Cache_Watcher::save_post10 RankMath\Admin\Admin::canonical_check_notice10 WPML_ACF_Translatable_Groups_Checker::on_save_field_group10 CMB2_Hookup::save_post10 CMB2_Hookup::save_post10 CMB2_Hookup::save_post15 LiteSpeed\Metabox::save_meta_box_settings100 WPML_Admin_Post_Actions::save_post_actions100 WPML_Media_Attachments_Duplication::save_post_actions639 threewp_broadcast\ThreeWP_Broadcast::nop640 threewp_broadcast\ThreeWP_Broadcast::save_post9223372036854775807 WPML_PB_Integration::queue_save_post_actions

Viewing 6 replies - 1 through 6 (of 6 total)