• When we install this plugin, and try to add items to a cart for a logged-in user only, we get a complicated “The resources was unprocessable” message – see below.

    Our site is complicated site with numerous plugins and custom functions. It also has both a DEV site and a LIVE site, so we can create an account for you at the former – or you can do so yourself – to examine the problem. We also understand that we can attempt a normal troubleshooting process, but we’re hoping you might have a quick fix.

    Here’s the error message:

    The resource was unprocessable. {“resource”:”ecomOrder”,”context”:”{\”ecomOrder\”:{\”customerid\”:\”266934\”,\”currency\”:\”USD\”,\”email\”:\”[email protected]\”,\”externalcheckoutid\”:\”5b803b137966d\”,\”id\”:\”\”,\”source\”:\”1\”,\”totalPrice\”:\”23491\”,\”orderDate\”:\”2018-08-24T17:06:27+00:00\”,\”orderUrl\”:\”https:\\\/\\\/dev.gbes.com\\\/cart\\\/\”,\”orderProducts\”:[{\”category\”:\”LEED\”,\”externalid\”:1198,\”name\”:\”LEED Green Associate Practice Tests for LEED v4 GA Exam Prep\”,\”price\”:6997,\”quantity\”:1,\”imageUrl\”:\”https:\\\/\\\/dev.gbes.com\\\/content\\\/uploads\\\/2016\\\/11\\\/PracticeTest_GA-600×400.png\”,\”description\”:\”Includes our exam simulator with 600 practice test questions\”},{\”category\”:\”LEED\”,\”externalid\”:1313,\”name\”:\”LEED Green Associate Exam Prep Crash Course\”,\”price\”:12997,\”quantity\”:1,\”imageUrl\”:\”https:\\\/\\\/dev.gbes.com\\\/content\\\/uploads\\\/2016\\\/12\\\/Webinar_GA.jpg\”,\”description\”:\”\”},{\”category\”:\”LEED\”,\”externalid\”:1232,\”name\”:\”LEED Green Associate Study Sheets\”,\”price\”:3497,\”quantity\”:1,\”imageUrl\”:\”https:\\\/\\\/dev.gbes.com\\\/content\\\/uploads\\\/2016\\\/11\\\/Book_GA-600×400.png\”,\”description\”:\”2 sheets, each formatted 11\\\” x 17\\\” (PDF download)\”}]}}”,”response”:{},”0″:”#0 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/guzzle\/src\/Middleware.php(66): GuzzleHttp\\Exception\\RequestException::create(Object(GuzzleHttp\\Psr7\\Request), Object(GuzzleHttp\\Psr7\\Response))\n#1 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(203): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}(Object(GuzzleHttp\\Psr7\\Response))\n#2 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(156): GuzzleHttp\\Promise\\Promise::callHandler(1, Object(GuzzleHttp\\Psr7\\Response), Array)\n#3 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/TaskQueue.php(47): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}()\n#4 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(246): GuzzleHttp\\Promise\\TaskQueue->run(true)\n#5 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(223): GuzzleHttp\\Promise\\Promise->invokeWaitFn()\n#6 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(267): GuzzleHttp\\Promise\\Promise->waitIfPending()\n#7 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(225): GuzzleHttp\\Promise\\Promise->invokeWaitList()\n#8 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/promises\/src\/Promise.php(62): GuzzleHttp\\Promise\\Promise->waitIfPending()\n#9 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/vendor\/guzzlehttp\/guzzle\/src\/Client.php(131): GuzzleHttp\\Promise\\Promise->wait()\n#10 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/includes\/api-client\/class-activecampaign-for-woocommerce-api-client.php(355): GuzzleHttp\\Client->request(‘POST’, ‘ecomOrders?filt…’, Array)\n#11 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/includes\/traits\/class-activecampaign-for-woocommerce-interacts-with-api-trait.php(188): Activecampaign_For_Woocommerce_Api_Client->execute()\n#12 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/includes\/repositories\/class-activecampaign-for-woocommerce-ecom-order-repository.php(155): Activecampaign_For_Woocommerce_Ecom_Order_Repository->create_and_set_model_properties_from_api(Object(Activecampaign_For_Woocommerce_Api_Client), Object(Activecampaign_For_Woocommerce_Ecom_Order), Array)\n#13 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/includes\/commands\/class-activecampaign-for-woocommerce-update-cart-command.php(133): Activecampaign_For_Woocommerce_Ecom_Order_Repository->create(Object(Activecampaign_For_Woocommerce_Ecom_Order))\n#14 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(286): Activecampaign_For_Woocommerce_Update_Cart_Command->execute(”)\n#15 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#16 \/home\/gbesgreen\/www\/cms\/wp-includes\/plugin.php(453): WP_Hook->do_action(Array)\n#17 \/home\/gbesgreen\/www\/content\/plugins\/activecampaign-for-woocommerce\/includes\/events\/class-activecampaign-for-woocommerce-cart-updated-event.php(32): do_action(‘activecampaign_…’)\n#18 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(288): Activecampaign_For_Woocommerce_Cart_Updated_Event->trigger(‘e53a0a2978c2887…’)\n#19 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#20 \/home\/gbesgreen\/www\/cms\/wp-includes\/plugin.php(453): WP_Hook->do_action(Array)\n#21 \/home\/gbesgreen\/www\/content\/plugins\/woocommerce\/includes\/class-wc-cart.php(1127): do_action(‘woocommerce_add…’, ‘e53a0a2978c2887…’, 1232, 1, 0, Array, Array)\n#22 \/home\/gbesgreen\/www\/content\/plugins\/woocommerce\/includes\/class-wc-form-handler.php(841): WC_Cart->add_to_cart(1232, 1)\n#23 \/home\/gbesgreen\/www\/content\/plugins\/woocommerce\/includes\/class-wc-form-handler.php(815): WC_Form_Handler::add_to_cart_handler_simple(1232)\n#24 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(286): WC_Form_Handler::add_to_cart_action(”)\n#25 \/home\/gbesgreen\/www\/cms\/wp-includes\/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#26 \/home\/gbesgreen\/www\/cms\/wp-includes\/plugin.php(453): WP_Hook->do_action(Array)\n#27 \/home\/gbesgreen\/www\/cms\/wp-settings.php(471): do_action(‘wp_loaded’)\n#28 \/home\/gbesgreen\/www\/cms\/wp-config.php(140): require_once(‘\/home\/gbesgreen…’)\n#29 \/home\/gbesgreen\/www\/cms\/wp-load.php(37): require_once(‘\/home\/gbesgreen…’)\n#30 \/home\/gbesgreen\/www\/cms\/wp-blog-header.php(13): require_once(‘\/home\/gbesgreen…’)\n#31 \/home\/gbesgreen\/www\/index.php(17): require(‘\/home\/gbesgreen…’)\n#32 {main}”}

    • This topic was modified 6 years, 3 months ago by CK MacLeod.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter CK MacLeod

    (@ck-macleod)

    I’ve now completed a troubleshooting routine, including de-activations of all but obviously essential plugins, and switching to a vanilla theme (Twenty Sixteen), and we are still getting the errors and are unable either to add or to remove items from the shopping cart when logged in.

    The PHP log registers the above error or error type in a less verbose format, though appears to be covering the same territory. Here are two:

    2018/08/24 13:33:33 [error] 5754#5754: *44131 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://gbes.api-us1.com/api/3/ecomOrders resulted in a 422 Unprocessable Entity response:
    {“errors”:[{“title”:”The ecomOrder connectionid was not provided.”,”detail”:””,”code”:”field_missing”,”source”:{“pointer (truncated…)
    in /home/gbesgreen/www/content/plugins/activecampaign-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
    Stack trace:
    #0 /home/gbesgreen/www/content/plugins/activecampaign-for-woocommerce/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
    #1 /home/gbesgreen/www/content/plugins/activecampaign-for-woocommerce/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
    #2 /home/gbesgreen/www/content/plugins/activecampaign-for-woocommerce/vendor/guzzlehttp/promises/src/Promise.php(15” while reading response header from upstream, client: 76.87.197.76, server: dev.gbes.com, request: “GET /cart/?remove_item=c54e7837e0cd0ced286cb5995327d1ab&_wpnonce=b68dd421da HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm-bpool7.sock:”, host: “dev.gbes.com”, referrer: “https://dev.gbes.com/cart/”
    2018/08/24 13:36:30 [error] 5755#5755: *44154 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function is_type() on string in /home/gbesgreen/www/content/plugins/woocommerce-cart-add-ons/woocommerce-cart-add-ons.php:633
    Stack trace:
    #0 /home/gbesgreen/www/cms/wp-includes/class-wp-hook.php(288): SFN_Cart_Addons->the_permalink(‘https://dev.gbe…’)
    #1 /home/gbesgreen/www/cms/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘https://dev.gbe…’, Array)
    #2 /home/gbesgreen/www/cms/wp-includes/link-template.php(27): apply_filters(‘the_permalink’, ‘https://dev.gbe…’, 24058)
    #3 /home/gbesgreen/www/cms/wp-includes/widgets/class-wp-widget-recent-posts.php(94): the_permalink(24058)
    #4 /home/gbesgreen/www/cms/wp-includes/class-wp-widget.php(372): WP_Widget_Recent_Posts->widget(Array, Array)
    #5 /home/gbesgreen/www/cms/wp-includes/widgets.php(743): WP_Widget->display_callback(Array, Array)
    #6 /home/gbesgreen/www/content/themes/twentysixteen/sidebar.php(13): dynamic_sidebar(‘sidebar-1’)
    #7 /home/gbesgreen/www/cms/wp-includes/template.php(688):” while reading upstream, client: 76.87.197.76, server: dev.gbes.com, request: “GET /catalog/exam-prep/bundles/?fwp_gbes_credential=leed-ap%2Cleed-green-associate HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm-bpool7.sock:”, host: “dev.gbes.com”, referrer: “https://dev.gbes.com/”

    I’m experiencing this as well with WooCommerce and ActiveCampaign for WooCommerce plugin that was just added yesterday. Pretty close to the same exact error. Replying just so I can see what they say!

    Thread Starter CK MacLeod

    (@ck-macleod)

    I suspect a PHP or PHP module error, and, if it was easier to change PHP version on this installation, I’d try PHP 7.x. The plugin installation instructions ask for PHP 7, although the stated “requirement” is 5.6. If PHP 7.x is required, then it should say so explicitly and without contradiction.

    Anyway, @mattmintun, maybe it will be easier for you to give it a try. I’ll have to wait until Monday or try installing at some other site for testing purposes.

    Thread Starter CK MacLeod

    (@ck-macleod)

    Nope, not a PHP 7 problem. We’re running a PHP 7.x and still getting the error. The limited info I can find points to a mistake or mistakes relating to the Guzzle library. If the developer remains unresponsive, it will be a question of either junking the plugin or trying to hack it.

    CM MacLeod,

    Are you on Siteground by any chance ? And which version of php are you using exactly ?

    I got the same issue

    Thread Starter CK MacLeod

    (@ck-macleod)

    @johnny538

    The client wasn’t on Siteground. With the plugin developer not providing any support, they decided to junk the plugin rather than have me try to hack it. PHP version: 7.0.31-1~dotdeb+8.1

    @ck-macleod

    Thanks for the info. I might try to replace the guzzle library with a new version from their GH page. If it could possibly be as easy as that. I’ll let you know if/when I do.

    • This reply was modified 6 years, 1 month ago by johnny538.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Resource was unprocessable” error’ is closed to new replies.