• Resolved dinavshka

    (@dinavshka)


    When you click the “Confirm order” button, some users receive the message ” Error when trying to place an order. Try again.” The error does not occur at all and not always.

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

    I suspect that some PHP error (probably coming from a compatibility conflict between WooCommerce and your theme or any of your active plugins) is preventing the checkout functionality from being completed as expected.

    Could you please enable WP_Debug on your site and replicate the issue again to see if you see any errors?

    You can read more about how to enable WP_Debug here:
    https://wordpress.org/support/article/editing-wp-config-php/#wp_debug

    Here are the basic steps:

    1. Login to your site through FTP
    2. Make a backup of wp-config.php
    3. Open this file and add the code below
    4. Save and re-upload this file

    Find this line of code: define('WP_DEBUG', false);

    Change it be this:

    `
    // Enable WP_DEBUG mode
    define(‘WP_DEBUG’, true);

    // Enable Debug logging to the /wp-content/debug.log file
    define(‘WP_DEBUG_LOG’, true);

    // Disable display of errors and warnings
    define(‘WP_DEBUG_DISPLAY’, false);
    @ini_set(‘display_errors’,0);
    `

    Once you’ve done that, try making that error happen again. You will find a debug.log file created in your /wp-content/ folder – please send that to us so we can see what might be going on.

    Thanks so much!

    Thread Starter dinavshka

    (@dinavshka)

    Thanks. Here’s what I got in the file:

    [ 3,258 lines deleted ]

    • This reply was modified 6 years, 6 months ago by Jan Dembowski.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @dinPlease Please do not post large code or responses like that here, it doesn’t work after ~10 lines or so.

    If you need share that data please use https://pastebin.com/ instead and post the link to that paste.

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

The topic ‘Error when you click ” Confirm order”’ is closed to new replies.