Title: Error caused failed order
Last modified: January 4, 2024

---

# Error caused failed order

 *  Resolved [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-caused-failed-order/)
 * Hello,
 * Please check the post at [https://wordpress.org/support/topic/error-error-saving-order-id/](https://wordpress.org/support/topic/error-error-saving-order-id/)
 * Also, please check the error on server, and it will cause failed order:
 *     ```wp-block-code
       2024/01/03 17:23:45 [error] 40435#40435: *2082 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1610PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1611PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1613PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622" while reading response header from upstream, client: 47.128.58.31, server: mysite.com, request: "GET /shop/happy-school-bag/18-inch-waterproof-nylon-graffiti-pattern-harajuku-school-backpack/?verified=1 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-two-fpm.sock:", host: "mysite.com"
   
       2024/01/03 17:36:32 [error] 40433#40433: *2306 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "GET /checkout/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/shop/briefcases/15-7-17-inch-genuine-leather-mens-retro-business-briefcases-messenger-bag-for-15-6-laptop/?attribute_pa_color=dark-brown&attribute_pa_size=17-inch&attribute_pa_material=genuine-leather&utm_source=Google&utm_medium=GoogleFreeList&utm_campaign=GoogleShopping&utm_term=Bags&utm_content=D1&wmc-currency=USD&srsltid=AfmBOoqI3ADEC0Qglwz8ikwndEPFuehD890lzld6agiplwFv26aK9E8jrYE"
   
       2024/01/03 17:37:46 [error] 40433#40433: *2325 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "GET /checkout/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/shop/briefcases/15-7-17-inch-genuine-leather-mens-retro-business-briefcases-messenger-bag-for-15-6-laptop/?attribute_pa_color=dark-brown&attribute_pa_size=17-inch&attribute_pa_material=genuine-leather&utm_source=Google&utm_medium=GoogleFreeList&utm_campaign=GoogleShopping&utm_term=Bags&utm_content=D1&wmc-currency=USD&srsltid=AfmBOoqI3ADEC0Qglwz8ikwndEPFuehD890lzld6agiplwFv26aK9E8jrYE"
   
       2024/01/03 17:39:26 [error] 40433#40433: *2351 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "POST /wp-json/wc/store/v1/batch?_locale=user HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/checkout/"
   
       2024/01/03 17:39:33 [error] 40433#40433: *2351 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "POST /wp-json/wc/store/v1/batch?_locale=user HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/checkout/"
   
       2024/01/03 17:39:40 [error] 40433#40433: *2351 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "POST /wp-json/wc/store/v1/batch?_locale=user HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/checkout/"
   
       2024/01/03 17:40:00 [error] 40434#40434: *2355 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "POST /wp-json/wc/store/v1/batch?_locale=user HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/checkout/"
   
       2024/01/03 17:42:11 [error] 40435#40435: *2400 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 72.220.101.34, server: mysite.com, request: "POST /wp-json/wc/store/v1/batch?_locale=user HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/checkout/"
   
       2024/01/03 18:36:26 [error] 40433#40433: *4600 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1610PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1611PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1613PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1610PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1611PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1613PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/lovc
   
       2024/01/03 19:32:10 [error] 40434#40434: *5601 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1610PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1611PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1613PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1610PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1611PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1613PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/lovc
   
       2024/01/04 01:59:29 [error] 55095#55095: *2538 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading upstream, client: 24.199.120.100, server: mysite.com, request: "GET /cart/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/cart/"
   
       2024/01/04 02:00:53 [error] 55096#55096: *2570 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /checkout/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/cart/"
   
       2024/01/04 02:01:30 [error] 55096#55096: *2582 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "rates" in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/mysite.com/htdocs/wp-content/plugins/dokan-pro/includes/Shipping/Hooks.php on line 777" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /checkout/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php81-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/cart/"
       ```
   
 * So, anyway to fix the issue?

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

 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-caused-failed-order/#post-17316703)
 * Also, we only enabled two modules:
 * [https://prnt.sc/RJM4esOV1gEq](https://prnt.sc/RJM4esOV1gEq)
 * I mean there is no shipping module enabled.
 * Two questions please:
 * 1# Still there is Dokan Shipping enabled by default
 *  [https://prnt.sc/KyoSb9bStbpK](https://prnt.sc/KyoSb9bStbpK)
 * The issue persist, even disable Dokan shipping.
 * We do not allow vender to set any custom shipping, should we disable this Dokan
   shipping by default?
 * 2# Anyway to fix the issue please?
 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-caused-failed-order/#post-17316781)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/),
 * I can see you are talking about the premium feature of Dokan as shown in [this screenshot](https://snipboard.io/9iOWku.jpg).
 * According to the forum guidelines, [commercial products are not supported](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products)
   in these forums. I hope this explains the scenario.
 * Thanks!

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

The topic ‘Error caused failed order’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/error-caused-failed-order/#post-17316781)
 * Status: resolved