Unable to add or duplicate product in Woocommerce
-
I am unable to duplicate or add a new product in Woocommerce – it takes me to the POSTS page instead. Last week it was totally fine. I’ve disabled all plugins, and also reverted back to Twenty Twenty One theme, still doesn’t work. Perhaps it stopped working after updating to WordPress 5.9 ? I’m desperate for some help please!!!
- This topic was modified 2 years, 9 months ago by wongaloid.
-
Hi @wongaloid
This unusual behavior is likely due to a conflict with plugins or the theme. Other sites using WooCommerce haven’t reported this behavior after updating to WordPress 5.9.
It is great that you already started taking some troubleshooting steps. I would recommend doing the full conflict test properly, just to be thorough. It involves switching to a default WP theme like Twenty Twenty-One or Storefront and deactivating all plugins except for WooCommerce then checking if the issue persists. If it doesn’t, the theme and plugins are reactivated, one by one, checking which one causes the issue to reappear. Here’s the conflict test guide – https://docs.woocommerce.com/document/how-to-test-for-conflicts/
If nothing comes out of the conflict test, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Yes I have already done that, and I have just done it again – activated the theme Storefront, and disabled all plugins apart from Woocommerce – still having the same problem, when I click duplicate on a product it takes me to the POST page, and no product is duplicated. Here is the system status from Woocomerce:
### WordPress Environment ### WordPress address (URL): https://kellermann-online.com.au Site address (URL): https://kellermann-online.com.au WC Version: 6.2.0 REST API Version: ? 6.2.0 WC Blocks Version: ? 6.7.3 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.1.0 Log Directory Writable: ? WP Version: 5.9 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.27 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1l-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.2.0 WC Database Prefix: amk_ Total Database Size: 12.91MB Database Data Size: 9.19MB Database Index Size: 3.72MB amk_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB amk_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB amk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB amk_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB amk_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB amk_layerslider: Data: 0.03MB + Index: 0.00MB + Engine InnoDB amk_layerslider_drafts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_options: Data: 3.05MB + Index: 0.06MB + Engine InnoDB amk_postmeta: Data: 3.20MB + Index: 2.09MB + Engine InnoDB amk_posts: Data: 0.44MB + Index: 0.27MB + Engine InnoDB amk_sgs_log_events: Data: 1.50MB + Index: 0.00MB + Engine InnoDB amk_sgs_log_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB amk_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB amk_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB amk_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB amk_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB amk_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB amk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB amk_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 33 nav_menu_item: 4 page: 7 product: 4 revision: 43 seedprod: 1 sl-insta-account: 2 sl-insta-feed: 2 sl-insta-media: 975 wpforms: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (1) ### WooCommerce: by Automattic – 6.2.0 ### Inactive Plugins (15) ### CAPTCHA 4WP: by WP White Security – 7.0.3 Classic Editor: by WordPress Contributors – 1.6.2 Classic Widgets: by WordPress Contributors – 0.3 Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: by SeedProd – 6.9.0.8 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.7.7 ELEX WooCommerce Catalog Mode: by ELEXtensions – 1.2.5 Elision Core: by Qode Themes – 1.0.11 LayerSlider: by Kreatura Media – 7.0.8 Meta Tag Manager: by Marcus Sykes – 3.0.2 SiteGround Central: by SiteGround – 2.0.3 SiteGround Optimizer: by SiteGround – 7.0.2 SiteGround Security: by SiteGround – 1.1.3 Spotlight - Social Media Feeds: by RebelCode – 0.9.9 WPBakery Page Builder: by Michael M - WPBakery.com – 6.6.0 WPForms Lite: by WPForms – 1.7.2.1 ### Settings ### API Enabled: ? Force SSL: – Currency: AUD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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: – ### WC Pages ### Shop base: #5 - /products/ Cart: ? Page visibility should be public Checkout: ? Page ID is set but the page does not exist My account: ? Page ID is set but the page does not exist Terms and conditions: ? Page not set ### Theme ### Name: Twenty Twenty-One Version: 1.5 Author URL: https://www.ads-software.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: – ### Action Scheduler ### Complete: 92 Oldest: 2022-01-24 06:31:40 +0000 Newest: 2022-02-14 10:55:18 +0000 Pending: 1 Oldest: 2022-02-14 10:57:28 +0000 Newest: 2022-02-14 10:57:28 +0000 ### Status report information ### Generated at: 2022-02-14 10:57:26 +00:00
Hi @wongaloid
Can you clear your browser cache to see if that helps? https://wordpress.com/support/browser-issues/#clearing-your-browser-cache
I’ve also noticed you don’t have the following pages setup. To install missing WooCommerce pages, please go to WooCommerce > Status > Tools and use the page installer tool.
Cart: ? Page visibility should be public
Checkout: ? Page ID is set
but the page does not existMy account: ? Page ID is set
but the page does not existTerms and conditions: ? Page not set
Hi I’ve tried clearing browser cache before and after disabling plugins and using Storefront theme – still no luck. I’ve even tried in Safari. I normally use Chrome. Any ideas? Help!
I’m getting this message now when I try and ADD NEW product:
Warning: Creating default object from empty value in /home/customer/www/kellermann-online.com.au/public_html/wp-admin/includes/post.php on line 742
Add new productDoes that help?
Hi @wongaloid!
Have you added the missing pages as Maykato mentioned above?
Also, can you share with us your Error log report? You can find them by navigating to WooCommerce > status > Logs
I hope to hear from you soon! Thanks,
This the latest log in my system, there isn’t one from the past two days when I’ve had the problem I’m having???
2022-02-11T08:28:18+00:00 ERROR Spec is invalid because the locale could not be retrieved in feed
2022-02-11T08:28:18+00:00 ERROR stdClass Object
(
[slug] => lead_gen_existing_customers_1
[type] => marketing
[status] => unactioned
[is_snoozable] => 0
[source] => woocommerce.com
[locales] => Array
(
[0] => stdClass Object
(
[locale] =>
[title] => Talk to a consultant
[content] => As your business grows, you want to optimize costs, streamline operations, and sell more. We can help. Talk to us about how you can get the most out of WooCommerce.
))
[actions] => Array
(
[0] => stdClass Object
(
[name] => lead_gen_existing_customers_1
[locales] => Array
(
[0] => stdClass Object
(
[locale] => en_US
[label] => Yes, please
))
[url] => https://woocommerce.com/take-your-business-to-the-next-level/
[url_is_admin_query] =>
[is_primary] =>
[status] => actioned
))
[rules] => Array
(
[0] => stdClass Object
(
[type] => publish_after_time
[publish_after] => 2022-02-10 18:10:54
)[1] => stdClass Object
(
[type] => publish_before_time
[publish_before] => 2022-02-13 23:59:00
)[2] => stdClass Object
(
[type] => or
[operands] => Array
(
[0] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => US
)[1] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => CA
)[2] => stdClass Object
(
[type] => base_location_country
[operation] => =
[value] => ZA
))
)
)
)
Hi, I’ve just restored a backup from a few days ago and it’s now all good. Woocommerce version 6.1.1 installed. I then updated to Woocommerce 6.2.0 and now experiencing the same problem – cannot duplicate or create new products. In fact, I cannot create a new page etc either.
Hello @wongaloid,
You could spin up a live replica of your site, a staging site, where you could check the issue further without affecting the production site.
Some hosts offer Staging sites, but if you don’t have such a feature, you can create one with the WP Staging plugin.
On your staging site please enable debug logging in WordPress. Here’s more information on how to do it:
https://woocommerce.com/document/woocommerce-product-search/api/debugging/#section-1
After that, update WooCommerce and check if an error is logged in the
debug.log
file that could give you some indications on what may be causing this issue.Thanks!
We haven’t heard back from you in a while, so I’m going to mark this thread as resolved – we’ll be here if and/or when you are ready to continue.
- The topic ‘Unable to add or duplicate product in Woocommerce’ is closed to new replies.