• Resolved kv07

    (@vtkadima)


    The error we are facing comes during the checkout phase, specifically when a payment gateway is selected as the payment method. This error triggers a ‘403 Forbidden’ response, indicating a potential issue with access or permissions. For the past two weeks, we have been collaboratively troubleshooting this issue with the technical support team of the Payment Gateway. Through this extensive debugging process, it has been conclusively determined that the root cause is not related to the Payment Gateway itself. Instead, the issue seems to be associated with WooCommerce.

    Further analysis of the debug logs revealed entries related to Sentry class destruct methods and specific references to the \WordPress\MWC\SequentialOrderNumbers\WC_Seq_Order_Number_Pro->set_sequential_order_number. These entries suggest a possible conflict or malfunction in the way this plugin interacts with WooCommerce’s order creation process. This insight shifts our focus towards resolving potential incompatibilities or errors within the WooCommerce setup on the hosted environment, particularly in relation to sequential order numbering functionality.

    How do I go about solving these issues?

    See the bug report below.

    GoDaddy\WordPress\MWC\Core\WooCommerce\Models\Orders\Order->update, GoDaddy\WordPress\MWC\Common\Events\Events::broadcast, GoDaddy\WordPress\MWC\Common\Events\Events::broadcastEvent, GoDaddy\WordPress\MWC\Common\Exceptions\SentryException->__destruct, Sentry\captureException, Sentry\State\Hub->captureException, Sentry\Client->captureException, Sentry\Client->captureEvent, Sentry\Client->prepareEvent, Sentry\Client->addThrowableToEvent, Sentry\StacktraceBuilder->buildFromException, Sentry\StacktraceBuilder->buildFromBacktrace, Sentry\FrameBuilder->buildFromBacktraceFrame, Sentry\FrameBuilder->getFunctionArguments, Sentry\Serializer\RepresentationSerializer->representationSerialize, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\RepresentationSerializer->serializeValue, Sentry\Serializer\AbstractSerializer->serializeValue, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [11-Dec-2023 13:31:07 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action(‘woocommerce_checkout_update_order_meta’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\GoogleAnalytics\Helpers\Order_Helper::store_ga_identity, SkyVerge\WooCommerce\PluginFramework\v5_11_0\SV_WC_Order_Compatibility::update_order_meta, WC_Data->save_meta_data, WC_Data_Store->__call, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update_meta, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->after_meta_change, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->update, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update, do_action(‘woocommerce_update_order’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\Core\WooCommerce\Interceptors\OrderInterceptor->onWooCommerceUpdateOrder, GoDaddy\WordPress\MWC\Core\WooCommerce\Models\Orders\Order->update, GoDaddy\WordPress\MWC\Common\Events\Events::broadcast, GoDaddy\WordPress\MWC\Common\Events\Events::broadcastEvent, GoDaddy\WordPress\MWC\Common\Exceptions\SentryException->__destruct, Sentry\captureException, Sentry\State\Hub->captureException, Sentry\Client->captureException, Sentry\Client->captureEvent, Sentry\Client->prepareEvent, Sentry\Client->addThrowableToEvent, Sentry\StacktraceBuilder->buildFromException, Sentry\StacktraceBuilder->buildFromBacktrace, Sentry\FrameBuilder->buildFromBacktraceFrame, Sentry\FrameBuilder->getFunctionArguments, Sentry\Serializer\RepresentationSerializer->representationSerialize, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\RepresentationSerializer->serializeValue, Sentry\Serializer\AbstractSerializer->serializeValue, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [11-Dec-2023 13:31:07 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action(‘woocommerce_checkout_update_order_meta’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\GoogleAnalytics\Helpers\Order_Helper::store_ga_identity, SkyVerge\WooCommerce\PluginFramework\v5_11_0\SV_WC_Order_Compatibility::update_order_meta, WC_Data->save_meta_data, WC_Data_Store->__call, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update_meta, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->after_meta_change, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->update, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update, do_action(‘woocommerce_update_order’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\Core\WooCommerce\Interceptors\OrderInterceptor->onWooCommerceUpdateOrder, GoDaddy\WordPress\MWC\Core\WooCommerce\Models\Orders\Order->update, GoDaddy\WordPress\MWC\Common\Events\Events::broadcast, GoDaddy\WordPress\MWC\Common\Events\Events::broadcastEvent, GoDaddy\WordPress\MWC\Common\Exceptions\SentryException->__destruct, Sentry\captureException, Sentry\State\Hub->captureException, Sentry\Client->captureException, Sentry\Client->captureEvent, Sentry\Client->prepareEvent, Sentry\Client->addThrowableToEvent, Sentry\StacktraceBuilder->buildFromException, Sentry\StacktraceBuilder->buildFromBacktrace, Sentry\FrameBuilder->buildFromBacktraceFrame, Sentry\FrameBuilder->getFunctionArguments, Sentry\Serializer\RepresentationSerializer->representationSerialize, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\RepresentationSerializer->serializeValue, Sentry\Serializer\AbstractSerializer->serializeValue, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [11-Dec-2023 13:31:07 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action(‘woocommerce_checkout_update_order_meta’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\GoogleAnalytics\Helpers\Order_Helper::store_ga_identity, SkyVerge\WooCommerce\PluginFramework\v5_11_0\SV_WC_Order_Compatibility::update_order_meta, WC_Data->save_meta_data, WC_Data_Store->__call, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update_meta, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->after_meta_change, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->update, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update, do_action(‘woocommerce_update_order’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\Core\WooCommerce\Interceptors\OrderInterceptor->onWooCommerceUpdateOrder, GoDaddy\WordPress\MWC\Core\WooCommerce\Models\Orders\Order->update, GoDaddy\WordPress\MWC\Common\Events\Events::broadcast, GoDaddy\WordPress\MWC\Common\Events\Events::broadcastEvent, GoDaddy\WordPress\MWC\Common\Exceptions\SentryException->__destruct, Sentry\captureException, Sentry\State\Hub->captureException, Sentry\Client->captureException, Sentry\Client->captureEvent, Sentry\Client->prepareEvent, Sentry\Client->addThrowableToEvent, Sentry\StacktraceBuilder->buildFromException, Sentry\StacktraceBuilder->buildFromBacktrace, Sentry\FrameBuilder->buildFromBacktraceFrame, Sentry\FrameBuilder->getFunctionArguments, Sentry\Serializer\RepresentationSerializer->representationSerialize, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\RepresentationSerializer->serializeValue, Sentry\Serializer\AbstractSerializer->serializeValue, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [11-Dec-2023 13:31:07 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action(‘woocommerce_checkout_update_order_meta’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\GoogleAnalytics\Helpers\Order_Helper::store_ga_identity, SkyVerge\WooCommerce\PluginFramework\v5_11_0\SV_WC_Order_Compatibility::update_order_meta, WC_Data->save_meta_data, WC_Data_Store->__call, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update_meta, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->after_meta_change, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->update, Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore->update, do_action(‘woocommerce_update_order’), WP_Hook->do_action, WP_Hook->apply_filters, GoDaddy\WordPress\MWC\Core\WooCommerce\Interceptors\OrderInterceptor->onWooCommerceUpdateOrder, GoDaddy\WordPress\MWC\Core\WooCommerce\Models\Orders\Order->update, GoDaddy\WordPress\MWC\Common\Events\Events::broadcast, GoDaddy\WordPress\MWC\Common\Events\Events::broadcastEvent, GoDaddy\WordPress\MWC\Common\Exceptions\SentryException->__destruct, Sentry\captureException, Sentry\State\Hub->captureException, Sentry\Client->captureException, Sentry\Client->captureEvent, Sentry\Client->prepareEvent, Sentry\Client->addThrowableToEvent, Sentry\StacktraceBuilder->buildFromException, Sentry\StacktraceBuilder->buildFromBacktrace, Sentry\FrameBuilder->buildFromBacktraceFrame, Sentry\FrameBuilder->getFunctionArguments, Sentry\Serializer\RepresentationSerializer->representationSerialize, Sentry\Serializer\AbstractSerializer->serializeRecursively, Sentry\Serializer\RepresentationSerializer->serializeValue, Sentry\Serializer\AbstractSerializer->serializeValue, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

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

Viewing 1 replies (of 1 total)
  • Hi @vtkadima

    Thanks for reaching out!

    I am sorry to hear that you’re having issues on your site’s checkout page when a payment gateway was chosen, you received the error message 403 Forbidden.

    I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Once we have more information, we’ll be able to assist you further.

Viewing 1 replies (of 1 total)
  • The topic ‘Error 403 Forbidden triggered in Checkout Process’ is closed to new replies.