• So, 402 error ‘Unable to create order’ on checkout page every time when placing order.

    What I found in debug.log (translated):
    “Function has_cap is called with an argument, which is deprecated since 2.0! Using user levels in plugins and themes is considered obsolete. Use roles and capabilities..”

    Tried also disabling all plugins except Woocommerce itself, got same result. So question is does Woocommerce really use some deprecated stuff and how we can fix it?

    Woocommerce v2.3.13 (latest)

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jeckstart

    (@jeckstart)

    I was wrong actually, has_cap was another error, not related.
    Right now I’m getting 402 error from woocommerce, and absolutely zero php errors in debug.log. What the hell

    I”m getting this as well – other sites working, but using latest WP version and cannot find any info on what to check –
    There are no paypal errors, no php errors and no event log errors.

    Thread Starter Jeckstart

    (@jeckstart)

    I have found the place where error hits.. and I dont know where to dig deeper.

    here (wc-order-functions.php 353):

    $wpdb->insert(
    	$wpdb->prefix . "woocommerce_order_items",
    	array(
    		'order_item_name' 		=> $item['order_item_name'],
    		'order_item_type' 		=> $item['order_item_type'],
    		'order_id'				=> $order_id
    	),
    	array(
    		'%s', '%s', '%d'
    	)
    );

    Sorry ;p Its a “insert into database function”, so I guess this is some kind of sql server error

    priyanka mahajan

    (@priyanka-mahajan)

    Hello,
    I am new to woocommerce and on the checkout page of my website i have found an error 402 unable to create order. Please try again later.
    please anyone let me know how to solve this error. I have search about this error but can’t find suitable solution. Here is the wesbite myitag.london
    thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘402 Error 'Unable to create order' has_cap deprecated’ is closed to new replies.