• Resolved siwhyatt

    (@siwhyatt)


    I am currently unable to edit pages or posts while I have woocommerce activated.

    After doing some testing on a staging copy of my site, I can confirm this is not due to conflicts with any other plugins.

    Deactivating woocommerce fixes the problem.

    Deactivating all other plugins and only activating woocommerce triggers the problem.

    Please find a copy of woocommerce status report below:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://greenpasturefarms.co.uk
    Site address (URL): https://greenpasturefarms.co.uk
    WC Version: 7.0.1
    REST API Version: ? 7.0.1
    WC Blocks Version: ? 8.8.2
    Action Scheduler Version: ? 3.5.2
    Log Directory Writable: ?
    WP Version: 6.1
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.32
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.71.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.31
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.0.1
    WC Database Prefix: wpjh_
    Total Database Size: 617.24MB
    Database Data Size: 423.02MB
    Database Index Size: 194.22MB
    wpjh_woocommerce_sessions: Data: 5.02MB + Index: 0.14MB + Engine InnoDB
    wpjh_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpjh_woocommerce_order_items: Data: 6.52MB + Index: 2.52MB + Engine InnoDB
    wpjh_woocommerce_order_itemmeta: Data: 69.59MB + Index: 36.11MB + Engine InnoDB
    wpjh_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpjh_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_woocommerce_shipping_zone_locations: Data: 0.16MB + Index: 0.16MB + Engine InnoDB
    wpjh_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_woocommerce_payment_tokens: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
    wpjh_woocommerce_payment_tokenmeta: Data: 0.27MB + Index: 0.27MB + Engine InnoDB
    wpjh_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_actionscheduler_actions: Data: 37.06MB + Index: 24.31MB + Engine InnoDB
    wpjh_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_actionscheduler_logs: Data: 16.55MB + Index: 10.03MB + Engine InnoDB
    wpjh_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_atum_product_data: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpjh_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_aws_index: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wpjh_b2s_network_insights: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_b2s_posts: Data: 0.02MB + Index: 0.14MB + Engine InnoDB
    wpjh_b2s_posts_drafts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_b2s_posts_favorites: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_b2s_posts_insights: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_b2s_posts_network_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_b2s_posts_sched_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_b2s_user: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpjh_b2s_user_contact: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_b2s_user_network_settings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_bv_ip_store: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_commentmeta: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
    wpjh_comments: Data: 11.52MB + Index: 9.09MB + Engine InnoDB
    wpjh_giftvouchers_invoice_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_hkb_analytics_search_atomic: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wpjh_hkb_exits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_hkb_visits: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wpjh_hkb_voting: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_hustle_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_hustle_entries_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpjh_hustle_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_hustle_modules_meta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    wpjh_hustle_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpjh_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_itsec_dashboard_events: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wpjh_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpjh_itsec_logs: Data: 2.52MB + Index: 0.36MB + Engine InnoDB
    wpjh_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpjh_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_forms: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailpoet_log: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailpoet_newsletter_links: Data: 1.52MB + Index: 1.73MB + Engine InnoDB
    wpjh_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_newsletter_templates: Data: 8.52MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailpoet_newsletters: Data: 1.50MB + Index: 0.03MB + Engine InnoDB
    wpjh_mailpoet_scheduled_task_subscribers: Data: 6.39MB + Index: 3.08MB + Engine InnoDB
    wpjh_mailpoet_scheduled_tasks: Data: 0.13MB + Index: 0.13MB + Engine InnoDB
    wpjh_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_mailpoet_sending_queues: Data: 39.52MB + Index: 0.03MB + Engine InnoDB
    wpjh_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpjh_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_statistics_newsletters: Data: 0.23MB + Index: 0.20MB + Engine InnoDB
    wpjh_mailpoet_statistics_opens: Data: 0.11MB + Index: 0.25MB + Engine InnoDB
    wpjh_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpjh_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpjh_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_subscriber_segment: Data: 1.52MB + Index: 1.95MB + Engine InnoDB
    wpjh_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_mailpoet_subscribers: Data: 3.52MB + Index: 5.67MB + Engine InnoDB
    wpjh_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_user_agents: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wpjh_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_options: Data: 65.42MB + Index: 9.80MB + Engine InnoDB
    wpjh_postmeta: Data: 80.61MB + Index: 55.14MB + Engine InnoDB
    wpjh_posts: Data: 6.52MB + Index: 2.56MB + Engine InnoDB
    wpjh_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wpjh_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_revslider_sliders: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    wpjh_revslider_slides: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wpjh_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_rs_expiredpoints_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_rs_templates_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_rsgiftvoucher: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_rspointexpiry: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wpjh_rsrecordpoints: Data: 9.52MB + Index: 0.00MB + Engine InnoDB
    wpjh_sumo_reward_encashing_submitted_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_sumo_reward_send_point_submitted_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_term_relationships: Data: 0.25MB + Index: 0.14MB + Engine InnoDB
    wpjh_term_taxonomy: Data: 0.20MB + Index: 0.20MB + Engine InnoDB
    wpjh_termmeta: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    wpjh_terms: Data: 0.19MB + Index: 0.16MB + Engine InnoDB
    wpjh_tm_taskmeta: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    wpjh_tm_tasks: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
    wpjh_usermeta: Data: 21.55MB + Index: 16.06MB + Engine InnoDB
    wpjh_users: Data: 2.52MB + Index: 0.95MB + Engine InnoDB
    wpjh_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wpjh_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_autoship_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_autoship_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_autoship_schedule_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_autoship_schedules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_customer_lookup: Data: 0.36MB + Index: 0.20MB + Engine InnoDB
    wpjh_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_wc_order_coupon_lookup: Data: 0.14MB + Index: 0.17MB + Engine InnoDB
    wpjh_wc_order_product_lookup: Data: 7.52MB + Index: 6.06MB + Engine InnoDB
    wpjh_wc_order_stats: Data: 1.52MB + Index: 0.67MB + Engine InnoDB
    wpjh_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpjh_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wpjh_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wcra_referral: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wcra_referral_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wdr_order_item_discounts: Data: 0.36MB + Index: 0.00MB + Engine InnoDB
    wpjh_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpjh_wprm_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_wprm_ratings: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpjh_yoast_indexable: Data: 5.52MB + Index: 2.72MB + Engine InnoDB
    wpjh_yoast_indexable_hierarchy: Data: 0.42MB + Index: 0.52MB + Engine InnoDB
    wpjh_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpjh_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wpjh_yoast_prominent_words: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpjh_yoast_seo_links: Data: 0.22MB + Index: 0.13MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    astra_adv_header: 2
    astra-advanced-hook: 3
    attachment: 557
    boxzilla-box: 1
    br_minmax_limitation: 1
    cookielawinfo: 19
    custom_css: 2
    customize_changeset: 6
    cwginstocknotifier: 382
    epkb_post_type_1: 41
    feedback: 218
    fusion_element: 1
    giftcard: 4
    ht_kb: 42
    itsec-dash-card: 6
    itsec-dashboard: 1
    jetpack_migration: 2
    mailpoet_page: 1
    mc4wp-form: 1
    nav_menu_item: 195
    oembed_cache: 40
    page: 26
    phoen_ticket_systems: 1
    post: 138
    product: 195
    product_variation: 67
    revision: 16
    shipment: 27
    shop_coupon: 150
    shop_order: 9291
    shop_order_refund: 1070
    slide: 3
    sumo_payment_plans: 1
    sumo_pp_cron_jobs: 7
    sumo_pp_masterlog: 35
    sumo_pp_payments: 6
    themefusion_elastic: 2
    user_request: 9
    voucher_template: 1
    wafs: 1
    wcct_countdown: 5
    wcdp_payment: 68
    woo_discount: 3
    woo_discount_cart: 1
    wp_block: 3
    wp_global_styles: 1
    wpgv_voucher_product: 1
    wprm_recipe: 15
    xlwcty_thankyou: 5
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (41) ###
    
    Stackable - Gutenberg Blocks (Premium): by Gambit Technologies
    Inc – 3.6.1
    
    FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.20.0
    Akismet Anti-Spam: by Automattic – 5.0.1
    Astra Pro: by Brainstorm Force – 3.9.2
    Import / Export Customizer Settings: by Brainstorm Force – 1.0.6
    Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 3.0
    iThemes Security: by iThemes – 8.1.3
    Booster Plus for WooCommerce: by Pluggabl LLC – 5.6.5
    CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.4
    Customer Reviews for WooCommerce: by CusRev – 5.6.4
    Yoast Duplicate Post: by Enrico Battocchi and Team Yoast – 4.5
    Knowledge Base for Documents and FAQs: by Echo Plugins – 9.12.0
    Google Customer Reviews for WooCommerce: by eCreations – 2.6.12
    Envato Market: by Envato – 2.0.7
    Gmail SMTP: by naa986 – 1.2.3.3
    Site Kit by Google: by Google – 1.86.0
    Heartbeat Control by WP Rocket: by WP Rocket – 2.0
    Jetpack: by Automattic – 11.5
    MailPoet Premium: by MailPoet – 3.102.0
    MailPoet: by MailPoet – 3.102.0
    Order Delivery Date Pro for WooCommerce: by Tyche Softwares – 9.34.1
    SUMO Reward Points: by Fantastic Plugins – 26.1
    Search & Filter: by Code Amp – 1.2.15
    Spectra: by Brainstorm Force – 2.0.13
    Woo Discount Rules PRO 2.0: by Flycart – 2.5.1
    Woo Discount Rules: by Flycart – 2.5.0
    WooCommerce Blocks: by Automattic – 8.8.2
    WPC Product Bundles for WooCommerce (Premium): by WPClever – 6.2.1
    WooCommerce Stripe Gateway: by WooCommerce – 6.9.0
    WooCommerce Max Quantity: by Isabel Castillo – 1.5.2
    Advanced Order Export For WooCommerce (Pro): by AlgolPlus – 3.3.3
    WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.11.5
    WooCommerce Table Rate Shipping: by Bolder Elements – 4.3.7
    WooCommerce: by Automattic – 7.0.1
    Hustle: by WPMU DEV – 7.6.0
    Yoast SEO: by Team Yoast – 19.9
    WP-Optimize - Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.2.9
    
    WP Recipe Maker: by Bootstrapped Ventures – 8.5.0
    WP Rollback: by GiveWP.com – 1.7.2
    Custom Product Tabs for WooCommerce: by YIKES
    Inc. – 1.8.1
    
    YITH WooCommerce Order & Shipment Tracking Premium: by YITH – 2.8.0
    
    ### Inactive Plugins (2) ###
    
    Order Delivery Date Pro Addon for Product based lockout: by Tyche Softwares – 1.0.0
    Password Protect WordPress Lite: by BWPS – 1.8.5
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### 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)
    wbs_bundle (wbs_bundle)
    wgm_gift_card (wgm_gift_card)
    woosb (woosb)
    
    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: #16552 - /shop/
    Basket: #16564 - /cart/
    Checkout: #16586 - /checkout/
    My account: #16576 - /my-account/
    Terms and conditions: #19691 - /about/terms-conditions/
    
    ### Theme ###
    
    Name: Astra Child
    Version: 1.0.0
    Author URL: https://wpastra.com/about/
    Child Theme: ?
    Parent Theme Name: Astra
    Parent Theme Version: 3.9.2
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    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-02 14:50:57 +01:00
    Options: ?
    Notes: 74
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 66,475
    Oldest: 2022-10-02 10:25:02 +0000
    Newest: 2022-11-02 10:24:30 +0000
    
    Failed: 3,125
    Oldest: 2019-11-05 14:23:22 +0000
    Newest: 2022-11-02 10:24:30 +0000
    
    Pending: 17
    Oldest: 2022-11-02 10:25:21 +0000
    Newest: 2022-11-11 15:01:41 +0000
    
    ### Status report information ###
    
    Generated at: 2022-11-02 11:24:40 +01:00
    

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Saif

    (@babylon1999)

    Hello @siwhyatt,

    I am currently unable to edit pages or posts while I have woocommerce activated.

    Just to make sure I understand this, you’re not able to edit/add any new pages or posts when WooCommerce is enabled.

    I tried installing a fresh version of WooCommerce on a new test site and wasn’t able to replicate the problem.

    Just because you were able to edit the posts when removing WooComemrce doesn’t necessarily the problem was with WooCommerce, perhaps another plugin or theme was conflicting with woocommerce.

    I understand you disabled all plugins, but did that include even page builders?

    Also, please try switching to the Storefront theme to see if the problem is with your theme.

    Let us know your findings.

    Thread Starter siwhyatt

    (@siwhyatt)

    Thanks for your reply.

    It appears to be some woocommerce functions that I added via the theme file editor that are causing the issue.

    To clarify, the website works fine, customers can place orders, and the functions work as intended.

    I can also add new posts and pages.

    The only issue is when I try to edit an existing page or post.

    I appreciate that it is probably out of the scope of this forum to ask for advice on functions, but I thought perhaps you could advise me whether there is an error in the code I have written, or if there is some other issue going on which is out of my control? I’m not sure why, even if my code is suboptimal, it should cause a WordPress critical error when trying to edit a page or post, even when that page or post has nothing to do with woocommerce?

    The code which causes the problem is the following:

    //Remove add to cart on Christmas conflicts
    
    function hwn_is_purchasable($product_purchasable,$product) {
    	
        $xmas_category = 'Christmas';
    	
    	$array_xmas_incompatible = array(2201, 2202, 2370, 98, 101, 185, 182, 104, 1483, 226, 2377, 718, 88, 2193, 172, 175, 200, 105, 184, 112, 202, 186, 183, 120, 2187, 216, 92, 214);
    	
    // Return true if cart empty
        if (!WC()->cart->get_cart_contents_count() == 0) {
    		
    		if (has_term($xmas_category, 'product_cat', $product_id)) {
    			foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item) {
    
    				$product = $cart_item['data'];
    
    				if (has_term($array_xmas_incompatible, 'product_cat', $product->id)) {
    					return false;
    				}
    			}	
    			return $product_purchasable;
    			
    		} else {
    			if (has_term($array_xmas_incompatible, 'product_cat', $product_id)) {
    				foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item) {
    
    					$product = $cart_item['data'];
    
    					if (has_term($xmas_category, 'product_cat', $product->id)) {
    						return false;
    					}
    				}	
    				return $product_purchasable;
    				
    			} else {
    				return $product_purchasable;
    			}
    		}
    
        }
        // Otherwise, return true.
        return $product_purchasable;
    }
    add_filter('woocommerce_is_purchasable', 'hwn_is_purchasable',10,2);
    
    //Display message when unavailable
    
    add_action( 'woocommerce_before_single_product_summary', 'unavailable_product_display_message', 20 );
    function unavailable_product_display_message() {
        global $product;
    
        if(! $product->is_purchasable() ){
           echo '<p style="color:#e00000;">' . __("This product is not compatible with items already in your basket. Not all products are available for Christmas delivery. If you wish to purchase offal, nose to tail, chickens or bones or fats please place a separate order. If you wish to order bacon or gammon for Christmas, please use the Christmas Bacon and Gammon products in the Christmas category. Thank you") . '</p>';
        }
    }

    Thanks,

    Simon

    Pranav R.

    (@pranavrana89)

    Hey @siwhyatt!

    It won’t be possible for us to assist you with your custom code. It is hard to tell what exactly is breaking without checking the input and output values of your functions and hooks and no access to the error log.

    But, following is how you can troubleshoot your code:
    1. Check the hooks documentation to ensure you’re using those correctly, like the parameters and the data types.
    2. Then, ensure that your custom functions are receiving the values in the expected format.

    Most probably, you’ll find the problem in these two steps; but if you don’t, check the data/values that your hooks are outputting to ensure these are in the expected format. This should tell you what is wrong with the output.

    Note: You must check the actual errors that are thrown from the PHP Error logs. Knowing the errors will help you find and fix these problems.

    Best!

    Hi

    I have the same problem in the past week and cannot edit posts and pages.

    I’m not a developer so I haven’t done coding on the website.

    I am using the free Neve theme.

    After reading this recent topic, I tried editing a page after deactivating Woocommerce and it worked.

    There has to be a recent Woocommerce change which is causing this issue.

    Thread Starter siwhyatt

    (@siwhyatt)

    @wearabletattoo it could also be another plugin that works with WooCommerce that might not trigger when WC is deactivated.

    To be sure it would be worthwhile deactivating all the other plugins except WC then see if you still get the error?

    Thank you for your reply.
    I did that and discovered that two plugins are causing this same error.
    I cannot edit pages while Dsers Dropshipping Solution: Find Products On Aliexpress for Woocommerce and/or WebToffee PayPal Express Checkout Payment Gatewy for Woocommerce (Free) active.
    I’ve reported the issue to the relevant plugins developers.

    Hi,
    I would like to make a correction of the feedback I posted to this forum earlier.
    After further tests in all possible areas of the store and admin page functionality, I found out that infact Dsers Dropshipping Solution: Find Products On Aliexpress for Woocommerce and/or WebToffee PayPal Express Checkout Payment Gateway for Woocommerce (Free) aren’t causing the error. The below plugin interfered with them.

    The problem is with WooCommerce Multilingual & Multicurrency.

    It prevents from pages being edited and store customization. Also, the currency icons are incorrect on automated emails.

    Hi @wearabletattoo

    I’m glad you were able to find the culprit of your issue here.

    Since this is a third-party plugin which we don’t provide support for (please see our Support Policy here), it would be best reaching out to the plugin’s developers for further assistance here.

    https://www.ads-software.com/plugins/woocommerce-multilingual/

    All the best and hopefully, the issue will be fixed soon.

    Thanks!

    Thread Starter siwhyatt

    (@siwhyatt)

    Glad you found the root of the issue @wearabletattoo – hope you can get a timely solution!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woocommerce causes critical error when trying to edit page or post’ is closed to new replies.