Can Not save Packaging
-
In reference to this thread: https://www.ads-software.com/support/topic/can-not-save-packaging/
It is marked as resolved but no resolution was posted.
This issue persists with all installs of WooCommerce Shipping & Tax.
The shipping labels paper size and email receipts checkbox as well as the on/off widget all get saved and remain persistent throughout the WP Dashboard. However when adding any type of Packaging to the settings, they report as being saved properly but upon refresh they are gone. This happens across all of our websites.
The page in question is here: /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings
For some reason I’m thinking this is curl related. I ran “curl -I https://domain.com/wp-json/wc/v1” and it returned a 200. Yet when saving the packaging packages I see this in the httpd logs:
[IP ADDRESS] – – [19/Nov/2022:17:51:31 -0600] “PUT /wp-json/wc/v1/connect/packages HTTP/1.1” 403 15550 “https://domain.com/wp-admin/admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
Any help would be super duper.
Thanks.
-
Hello @tmcguire ,
I understand this can be quite frustrating.
Just to be sure you are following these steps:
– Navigating to WooCommerce > Settings > Shipping > WooCommerce Shipping
– Created a package using the “Add package” button:
Link to image: https://d.pr/i/KDSxJS– Filled the details of the package and saved it
– You see your new custom package in the list
– Used the “Save changes” button at the bottom and see this small success message:
Link to image: https://d.pr/i/b4DjSq– Reloaded the page and the custom package you’ve created is no longer there
Please confirm if the above are the same steps that you are following.
I’ve just tried this on a test site and I couldn’t reproduce the problem you’ve shared. As a next step, please follow these:
– Do you see any JavaScript errors on that page? You can check for JavaScript errors with your browser of choice by following the steps outlined here: https://www.ads-software.com/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis
– Please share your current System Status Report. You can get it by navigating to theWooCommerce / Status
section of your site. Once there, click on theGet system report
button and then copy it by clicking on theCopy for support
button. Then paste it here in a comment.
– Check your WooCommerce > Status > Logs page and check if you have any recent fatal error thereDepending on what we find in the items above we might request additional troubleshooting steps/details OR redirect you to a more appropriate support platform but let’s cross that bridge when we get there.
Here is a video showing the issue: https://streamable.com/7epazv
I have done everything above on several websites. No errors are reported except for that 403 in the server logs. I’m not sure that’s even related.
I have activated the logs for the shipping & tax plugin and no errors are ported in the logs. Debug is turned on in wp-config.php as well.
This morning I setup fresh website with only the necessary plugins and the problem still exists.
After adding a new package and saving it, I do see the green ‘saved’ message. But then on refresh the package is gone.
Here is the system report:
### WordPress Environment ### WordPress address (URL): https://www.hivedrive.com Site address (URL): https://www.hivedrive.com WC Version: 7.1.0 REST API Version: ? 7.1.0 WC Blocks Version: ? 8.7.5 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 32 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.86.0 OpenSSL/1.1.1s SUHOSIN Installed: – MySQL Version: 5.7.40 Max Upload Size: 32 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.1.0 WC Database Prefix: wptest_ Total Database Size: 2.56MB Database Data Size: 2.24MB Database Index Size: 0.32MB wptest_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wptest_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_gla_budget_recommendations: Data: 0.11MB + Index: 0.12MB + Engine MyISAM wptest_gla_merchant_issues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_gla_shipping_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_gla_shipping_times: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_options: Data: 2.06MB + Index: 0.07MB + Engine MyISAM wptest_postmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wptest_posts: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wptest_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_usermeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wptest_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wptest_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wptest_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wptest_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 3 mailpoet_page: 1 page: 8 post: 3 product: 1 revision: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (4) ### Jetpack: by Automattic – 11.5.1 WooCommerce Payments: by Automattic – 5.0.3 WooCommerce Shipping & Tax: by WooCommerce – 2.0.0 WooCommerce: by Automattic – 7.1.0 ### Inactive Plugins (0) ### ### Settings ### API Enabled: ? Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ? ### WC Pages ### Shop base: #6 - /shop/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Storefront Version: 4.2.0 Author URL: https://woocommerce.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ? No Subscriptions Mode: ? Live Subscriptions Live URL: https://www.hivedrive.com Subscription Statuses: – WooCommerce Account Connected: ? No ### Store Setup ### Country / State: United States (US) — Texas ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-11-22 17:39:05 +00:00 Options: ? Notes: 17 Onboarding: completed ### WooCommerce Payments ### Version: 5.0.3 Connected to WPCOM: Yes Blog ID: redacted Account ID: acct_redacted ### Action Scheduler ### Complete: 19 Oldest: 2022-11-21 17:39:08 +0000 Newest: 2022-11-21 18:03:13 +0000 Failed: 1 Oldest: 2022-11-21 17:48:12 +0000 Newest: 2022-11-21 17:48:12 +0000 Pending: 3 Oldest: 2022-11-21 18:57:47 +0000 Newest: 2022-11-22 17:57:47 +0000 ### Status report information ### Generated at: 2022-11-21 18:49:37 +00:00
Update. I had the bright idea to take a look at the Apache mod_security logs and it turns out there are a set of rules that monitor the ‘METHODS’ for GET and POST data that is causing the 403 to be returned.
When disabling this particular mod_security config file the settings save and stay saved!
rules/REQUEST-911-METHOD-ENFORCEMENT.confKeeping the config disabled is not something I am okay with. I have instead whitelisted my IP in the mod_security user conf.
In conclusion, these rules are part of the standard config for WHM/CPanel servers and it seems could be the cause for errors relating to this plugin. I would recommend the plugin developer investigate the issue further as the benefits of fixing this PUT method would greatly improve the plugin use.
Hey there @tmcguire,
Thank you so much for investigating further, and sharing the findings! Some of our customers might indeed find this guide helpful! I will be passing this info to our developers as well.
We appreciate you being an active part of the community ??
I’ll go ahead with marking this thread as resolved now. Feel free to open a new one, should another issue arises.
Have a wonderful day!
- The topic ‘Can Not save Packaging’ is closed to new replies.