Visual Editor not working with Product Category
-
We had some issues with Visual Editor after the upgrade to WP v5.x and managed to fix the editor not displaying by installing Classic Editor with Gutenbury disabled. If we add the Product Category element in a new page using the Visual Editor then all appears OK. However if we try to edit an category existing (pre WP v5.x) page then the editor displays code, eg
[vc_row type="in_container" scene_position="center" text_color="dark" text_align="left" overlay_strength="0.3"][vc_column column_padding="no-extra-padding" column_padding_position="all" background_color_opacity="1" background_hover_color_opacity="1" width="1/1"][displayProduct id="367"][/vc_column][/vc_row]
Any ideas please? The WP and WooCommerce versions are:
WordPress 5.2.3
WooCommerce 3.7.1
Classic Editor 1.5
etc
-
Hey there!
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.Sysyem Status Report:
### WordPress Environment ### WordPress address (URL): https://www.mydomain.com Site address (URL): https://www.mydomain.com WC Version: 3.7.1 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: ? 5.2.3 - There is a newer version of WordPress available (5.4.2) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.19 PHP Post Max Size: 8 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.71.0 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.6.47 Max Upload Size: 2 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.7.1 WC Database Prefix: wp_ Total Database Size: 60.07MB Database Data Size: 43.58MB Database Index Size: 16.49MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.45MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM options: Data: 0.02MB + Index: 0.01MB + Engine MyISAM postmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM posts: Data: 0.01MB + Index: 0.01MB + Engine MyISAM termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM usermeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_alm: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.27MB + Index: 0.28MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_magictoolbox_store: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_magiczoomplus_store: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_action_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_field_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_object_meta: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 6.39MB + Index: 0.09MB + Engine InnoDB wp_postmeta: Data: 8.48MB + Index: 5.84MB + Engine InnoDB wp_postmeta_ISSUES: Data: 2.52MB + Index: 3.03MB + Engine InnoDB wp_postmeta_WORKING: Data: 2.52MB + Index: 3.03MB + Engine InnoDB wp_posts: Data: 10.42MB + Index: 0.61MB + Engine InnoDB wp_stock_log: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_swift_performance_image_optimizer: Data: 1.17MB + Index: 0.52MB + Engine MyISAM wp_swift_performance_warmup: Data: 0.02MB + Index: 0.04MB + Engine MyISAM wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.19MB + Index: 0.14MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.03MB + Index: 0.05MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBlockedIPLog: Data: 0.13MB + Index: 0.09MB + Engine MyISAM wp_wfBlocks7: Data: 0.22MB + Index: 0.13MB + Engine MyISAM wp_wfConfig: Data: 2.73MB + Index: 0.02MB + Engine MyISAM wp_wfCrawlers: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileMods: Data: 1.94MB + Index: 0.41MB + Engine MyISAM wp_wfHits: Data: 2.04MB + Index: 0.55MB + Engine MyISAM wp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfIssues: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_wfKnownFileList: Data: 1.02MB + Index: 0.12MB + Engine MyISAM wp_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.04MB + Engine MyISAM wp_wfLocs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wfLogins: Data: 0.35MB + Index: 0.08MB + Engine MyISAM wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfNotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfpklist_template_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfStatus: Data: 0.16MB + Index: 0.06MB + Engine MyISAM wp_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_extra_flat_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woof_query_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpml_mails: Data: 0.19MB + Index: 0.00MB + Engine MyISAM wp_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.07MB + Index: 0.08MB + Engine MyISAM ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (40) ### ManageWP - Worker: by GoDaddy – 4.9.3 AfterShip - WooCommerce Tracking: by AfterShip – 1.9.15 – Not tested with the active version of WooCommerce Better Search Replace: by Delicious Brains – 1.3.3 CBX Woo Sales Stat: by Codeboxr Team – 1.1.1 – Not tested with the active version of WooCommerce Classic Editor: by WordPress Contributors – 1.5 Contact Form 7: by Takayuki Miyoshi – 5.1.6 Contact Form Submissions: by Jason Green – 1.6.2 WooCommerce Single Product Page Builder: by SiteSao Team – 3.0.6 – Not tested with the active version of WooCommerce Display Product for WooCommerce: by Sureshopress – 2.0.19 – Not tested with the active version of WooCommerce Duplicate Page: by mndpsingh287 – 4.0 Salient Visual Composer: by Michael M - WPBakery.com | Modified by ThemeNectar – 4.11.2 Migrate Guru: by Migrate Guru – 3.4 Magic Zoom Plus: by Magic Toolbox – 6.7.40 Ni WooCommerce Sales Report: by anzia – 3.3.8 Ninja Forms: by Saturday Drive – 3.4.23 Postmen Woocommerce Shipping: by <a href="https://www.postmen.com/">Postmen</a> – 1.1.9 – Not tested with the active version of WooCommerce WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Basic): by WebToffee – 2.6.2 SagePay Server Gateway for WooCommerce: by PatSaTECH – 1.1.0 Simple CSV/XLS Exporter: by Shambix – 1.5.4.1 – Not tested with the active version of WooCommerce Sorting WooCommerce Pro: by Galal Aly – 4.0 – Not tested with the active version of WooCommerce Swift Performance Lite: by SWTE – 2.1.2 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.26 WaspThemes - Yellow Pencil Pro: by WaspThemes – 5.5.5 Google Analytics by WebKinder: by WebKinder – 1.8.0 Advanced Flat Rate Shipping For WooCommerce: by Thedotstore – 3.6.3 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.1 WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 – Not tested with the active version of WooCommerce WooCommerce Auto Restore Stock: by Gerhard Potgieter – 1.0.1 – Not tested with the active version of WooCommerce WooCommerce Button Variations: by Candle Studio – 1.4.1 – Not tested with the active version of WooCommerce WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.19 – 2.0.3 is available WooCommerce Stock Manager: by Vladislav Musílek – 2.0.2 – Not tested with the active version of WooCommerce WooCommerce Wholesale Lead Capture: by Rymera Web Co – 1.11 – Not tested with the active version of WooCommerce WooCommerce Wholesale Order Form: by Rymera Web Co – 1.11 – Not tested with the active version of WooCommerce WooCommerce Wholesale Prices: by Rymera Web Co – 1.10 WooCommerce: by Automattic – 3.7.1 – 4.3.0 is available Wordfence Security: by Wordfence – 7.4.9 Yoast SEO: by Team Yoast – 13.0 WP Mail Logging: by MailPoet – 1.9.5 WP Maintenance Mode: by Designmodo – 2.2.4 WP Menu Cart Pro: by Jeremiah Prummer Ewout Fernhout – 3.0.3 – Not tested with the active version of WooCommerce ### Inactive Plugins (0) ### ### Must Use Plugins (2) ### ManageWP - Worker Loader: by GoDaddy – Swift Performance Lite early loader: by – ### Settings ### API Enabled: ? Force SSL: – Currency: GBP (£) 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: #437 - /shop/ Basket: #438 - /cart/ Checkout: #439 - /checkout/ My account: #440 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Salient Version: 7.0.8 Author URL: https://themenectar.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 ### Archive Template: Your theme has a woocommerce.php file. You will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: salient/woocommerce/cart/cart-shipping.php version 2.5.0 is out of date. The core version is 3.6.0 salient/woocommerce/cart/cart-totals.php salient/woocommerce/cart/cart.php version 2.3.8 is out of date. The core version is 3.7.0 salient/woocommerce/cart/shipping-calculator.php version 2.0.8 is out of date. The core version is 3.5.0 salient/woocommerce/checkout/form-checkout.php version 2.3.0 is out of date. The core version is 3.5.0 salient/woocommerce/checkout/form-shipping.php version 2.2.0 is out of date. The core version is 3.6.0 salient/woocommerce/checkout/review-order.php version 2.3.0 is out of date. The core version is 3.3.0 salient/woocommerce/content-product.php version 2.5.0 is out of date. The core version is 3.6.0 salient/woocommerce/content-single-product.php version 1.6.4 is out of date. The core version is 3.6.0 salient/woocommerce/loop/add-to-cart.php version 2.5.0 is out of date. The core version is 3.3.0 salient/woocommerce/single-product/product-image.php version 2.0.14 is out of date. The core version is 3.5.1 salient/woocommerce/single-product/tabs/description.php salient/woocommerce/single-product/tabs/tabs.php Outdated Templates: ? Learn how to update ### Action Scheduler ### Complete: 4 Oldest: 2020-06-12 14:13:11 +0000 Newest: 2020-07-08 11:58:17 +0000 Pending: 0 Oldest: – Newest: – Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Hey @nickwuk !
Generally, we only support the last 2 versions of WooCommerce. I think it may be a good idea to first update to the latest version to see if that helps. Before doing any major updates like that please take the necessary precautions like backups.
If that does not help then it may be caused be either a conflict with your theme or with another plugin.
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
@arcangelini thank you for your advice. We would like to update WooCommerce to the latest version but your plugin warns us that the following plugins (with version tested) have not been tested with WC version 4.x:
- Advanced Flat Rate Shipping For WooCommerce 3.8.0
- Advanced Order Export For WooCommerce 3.8
- Ni WooCommerce Sales Report 3.8.1
- SagePay Server Gateway for WooCommerce 3.7.0
- WooCommerce Advanced Free Shipping 3.5.0
- WooCommerce PayPal Checkout Gateway 3.9
- WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Basic) 3.9
- WooCommerce Stock Manager 3.6.5
- WooCommerce Wholesale Lead Capture 3.5.4
- WooCommerce Wholesale Order Form 3.5.4
- WooCommerce Wholesale Prices 3.7.0
- Yoast SEO 3.9
- AfterShip – WooCommerce Tracking
- CBX Woo Sales Stat
- Display Product for WooCommerce
- Postmen Woocommerce Shipping
- Simple CSV/XLS Exporter
- Sorting WooCommerce Pro
- WooCommerce Auto Restore Stock
- WooCommerce Button Variations
- WooCommerce Single Product Page Builder
- WP Menu Cart Pro
If there’s no typical known issues relating to the visual editor and products following a WP5.x upgrade, then what we’ll have to do is test the WC upgrade on a copy test site first to see if any of your procedures above will correct the issue.
We would like to update WooCommerce to the latest version but your plugin warns us that the following plugins (with version tested) have not been tested with WC version 4.x:
Both WordPress and WooCommerce have had updates since the last versions of those plugins were released, which is why you may see a message saying it hasn’t been tested with the current versions. The “tested up to” numbers are only changed when a new version of the plugin is released.
When they release the next update, those numbers will be changed to match the current WordPress and WooCommerce versions.Though, indeed it’s best to do your upgrade on a test/staging site first, and/or make a backup of your site.
Everything now up-to-date and I’ve found that if I deactivate the Display Product for WooCommerce plugin then Visual Composer for the page containing the “Display Product for WooCommerce” element then returns; reactivate and it breaks and just shows code.
It’s the shortcode that is showing eg
[displayProduct id="9285"]
, sometimes preceded with other code. I’ve found this post by Salient that suggests to either installing the Classic Editor plugin (which we have), or to update the Salient Theme and then the ‘Salient Visual Composer’ plugin (which I assume would then become the ‘WPBakery Page Builder’ plugin.-
This reply was modified 4 years, 8 months ago by
nickwuk.
Hey again @nickwuk !
I am glad you were able to find that. It does sound like you have found the issue and it is related to a conflict specifically with Salient.
You will want to follow their instructions or reach out to their support for more help.
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
- The topic ‘Visual Editor not working with Product Category’ is closed to new replies.