• Resolved atlinstructional

    (@atlinstructional)


    After upgrading to version 2.3.9 I’m receiving the following error upon clicking the Pay button: “Could not initiate PayPal Checkout…Error! Empty WPEC plugin data received from the create-order AJAX call. Expected an order ID to be passed.”

    Rolled back to version 2.3.7 and everything is fine.

    One observation: If I created new products in 2.3.9 they would work, but products created in earlier versions would not.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter atlinstructional

    (@atlinstructional)

    Some additional info: The WordPress debug log indicates the error is related to the following

    …/wp-express-checkout/includes/class-order-summary-table.php on line 48 – Attempt to read property “public” on null

    ?…/wp-express-checkout/admin/includes/class-admin-order-summary-table.php on line 45 – Attempt to read property “public” on null?

    …/wp-express-checkout/includes/class-paypal-button-ajax-handler.php on line 325 – Undefined array key “applied”

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. Do you currently have a cache plugin running in your site? Does your server run any caching system? Can you share the shortcode you are currently using?

    Can you also carry out the following troubleshooting steps.

    https://wp-express-checkout.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/

    Thank you.

    Thread Starter atlinstructional

    (@atlinstructional)

    Thanks for the reply. There is no cache with WordPress or the server, and there are no other plugins in use. Example of shortcode is [wp_express_checkout product_id=”1484″]. The error also occurs without shortcode when a product is chosen directly through the Shop page that the plugin created.

    Based on the errors on the WordPress debug log (see my earlier post) the new plugin version appears not able to properly locate the old products in the database. When rolling back to the older version they are located and the transactions are successful.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for providing more information. This will help the developers investigate further your findings.

    Kind regards.

    Plugin Author mra13

    (@mra13)

    I have checked it on my site and I can’t see any issue. There is a high likelihood that some kind of caching happening with the JavaScript file (public.js). It can work with the older version because the cached version of the JavaScript file (which is old) will be compatible with the older version. We have made changes to the JavaScript file in the newer version so if it is loading the cached version, it will have a mismatch in the data that is being sent from the client to the server.

    Do you have a link to the page where your button is so I can inspect hte page’s HTML code and check if it is loading the updated copy of the plugin’s JavaScript file?

    Thread Starter atlinstructional

    (@atlinstructional)

    Here is a test page with 5 products. The first two (without thumbnails ) are newer and work OK. The other three are older and do not work in this version 2.3.9. If I roll back to 2.3.7 they will work.

    https://www.sociopolitical.net/shop-products/

    Thank you.

    Plugin Author mra13

    (@mra13)

    Thank you. Looks like the PayPal API related updates we had to make couldn’t handle the special characters in the product name (for example the – character is considered a special character). That was throwing things off.

    We just released another update that should solve it. Please upgrade the plugin when you can. Let me know if this works better.

    Thread Starter atlinstructional

    (@atlinstructional)

    This latest update resolved the issue. Thanks for the great support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Empty WPEC Plugin Data Error After Update’ is closed to new replies.