• Resolved dana_cz

    (@dana_cz)


    Hi,

    I’ve written a plugin that uses ‘downloads’ as custom taxonomy (as custom taxonomy category). The site and the download section is already established.

    Once I installed Woocommerce, I can’t now access the ‘downloads’ taxonomy, it gives me 404 errors. I changed the endpoint slug of ‘Downloads’ in the Advanced settings of Woocommerce, but it still gives me 404 error.

    I tried resetting WordPress permalinks, clearing cache in my browser, using multiple browsers and incognito.

    When I deactivate Woocommerce, it works.

    WordPress Environment
    
    WordPress address (URL): https://geekygamingstuff.com
    Site address (URL): https://geekygamingstuff.com
    WC Version: 7.6.1
    REST API Version: ? 7.6.1
    WC Blocks Version: ? 9.8.5
    Action Scheduler Version: ? 3.5.4
    Log Directory Writable: ?
    WP Version: 6.2
    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: 256 MB
    PHP Time Limit: 90
    PHP Max Input Vars: 20000
    cURL Version: 7.81.0
    OpenSSL/3.0.2 SUHOSIN Installed: –
    MySQL Version: 5.6.51
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ? Database WC Database Version: 7.6.1
    WC Database Prefix: gm_
    Total Database Size: 48.63MB
    Database Data Size: 44.34MB
    Database Index Size: 4.29MB
    gm_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gm_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gm_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    gm_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_comments: Data: 0.22MB + Index: 0.09MB + Engine InnoDB
    gm_dlm_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_dlm_order: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_dlm_order_customer: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_dlm_order_item: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_dlm_order_transaction: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_dlm_reports_log: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    gm_dlm_session: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_download_log: Data: 0.22MB + Index: 0.09MB + Engine InnoDB
    gm_ezoic_endpoints: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_mailerlite_checkouts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_mailerlite_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_ml_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_options: Data: 10.45MB + Index: 0.14MB + Engine InnoDB
    gm_packetery_carrier: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_packetery_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_packetery_order: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_postmeta: Data: 3.52MB + Index: 1.84MB + Engine InnoDB
    gm_posts: Data: 27.52MB + Index: 0.45MB + Engine InnoDB
    gm_redirection_404: Data: 1.02MB + Index: 0.20MB + Engine InnoDB
    gm_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    gm_redirection_logs: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    gm_subscribe_reloaded_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    gm_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    gm_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    gm_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    gm_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gm_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    gm_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gm_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    gm_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gm_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gm_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts acf: 1
    acf-field: 6
    acf-field-group: 4
    attachment: 1411
    csp-report: 1
    dlm_download: 16
    dlm_download_version: 20
    gifts: 2
    lazyblocks: 1
    nav_menu_item: 17
    page: 22
    post: 113
    product: 3
    product_variation: 4
    revision: 658
    sims: 16
    wp_block: 8
    wp_global_styles: 1 Security Secure connection (HTTPS): ?
    Hide errors from visitors: ? Active Plugins (19) QueryHunter: by Joe Davies – 2.6
    Ads.txt Manager: by Ads.txt Manager – 1.0.9
    Advanced Custom Fields: by WP Engine – 6.1.6
    Titan Anti-spam & Security: by CreativeMotion – 7.3.5
    Download Monitor: by WPChill – 4.7.78
    Downloads: by Dana – 1.0
    Ezoic: by Ezoic Inc. – 2.8.28
    Flexible Shipping: by Octolize – 4.21.1
    LuckyWP Table of Contents: by LuckyWP – 2.1.4
    MailerLite - Signup forms (official): by MailerLite – 1.6.7
    Packeta: by Zásilkovna s.r.o. – 1.5.2
    Redirection: by John Godley – 5.3.10
    Responsive Lightbox & Gallery: by dFactory – 2.4.5
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.23.3 WebP Express: by Bj?rn Rosell – 0.25.6
    MailerLite - WooCommerce integration: by MailerLite – 1.8.4
    WooCommerce PayPal Payments: by WooCommerce – 2.0.4
    WooCommerce: by Automattic – 7.6.1
    WP 2FA - Two-factor authentication for WordPress: by WP White Security – 2.4.1 Inactive Plugins (4) Customer Reviews for WooCommerce: by CusRev – 5.25.0
    Enable Media Replace: by ShortPixel – 4.1.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Web Stories: by Google – 1.32.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)
    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: –
    Enforce Approved Product Download Directories: ?
    Order datastore: WC_Order_Data_Store_CPT WC Pages Shop base: #9190 - /shop/
    Cart: #9192 - /cart/
    Checkout: #9194 - /checkout/
    My account: #9196 - /my-account/
    Terms and conditions: ? Page not set Theme Name:
    Version: (update to version 0 is available)
    Author URL:
    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: ggs/woocommerce/single-product.php WooCommerce PayPal Payments Onboarded: ?
    Shop country code: CZ
    WooCommerce currency supported: ?
    Advanced Card Processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: –
    Vault enabled: ?
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: –
    Tracking enabled: ? Admin Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    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: block-editor-feature-enabled
    minified-js
    new-product-management-experience
    product-variation-management
    settings Daily Cron: ? Next scheduled: 2023-05-05 13:45:16 +02:00
    Options: ?
    Notes: 58
    Onboarding: completed Action Scheduler Complete: 52
    Oldest: 2023-05-01 15:46:32 +0200
    Newest: 2023-05-05 09:16:47 +0200 Pending: 3
    Oldest: 2023-05-05 10:10:05 +0200
    Newest: 2023-05-06 09:16:47 +0200 Status report information Generated at: 2023-05-05 10:10:09 +02:00
    `
    • This topic was modified 1 year, 6 months ago by dana_cz.

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

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

    (@babylon1999)

    Hello @dana_cz,

    If I understand you correctly, your custom taxonomy page is no longer accessible after installing WooCommerce.

    WooCommerce creates only a few taxonomies, and none of them are related to downloads. As this appears to be an issue with your custom plugin, it falls outside the scope of our support I’m afraid.

    However, I suggest posting the code for your custom plugin here so that if another community member comes across the thread, they can help you debug the issue.

    You may also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well. :?)

    Cheers!

    Thread Starter dana_cz

    (@dana_cz)

    Thanks for getting back to me. The only code for the plugin is this:

    function dl_categories() {
    // set up labels
    $labels = array(
    'name' => 'Download Categories',
    'singular_name' => 'Download Category',
    'search_items' => 'Search Download Categories',
    'all_items' => 'All Download Categories',
    'edit_item' => 'Edit Download Category',
    'update_item' => 'Update Download Category',
    'add_new_item' => 'Add New Download Category',
    'new_item_name' => 'New Download Category',
    'menu_name' => 'Download Categories'
    );
    // register taxonomy
    register_taxonomy( 'downloads', 'sims', array(
    'hierarchical' => true,
    'labels' => $labels,
    'query_var' => true,
    'show_ui' => true,
    'show_in_rest' =>true,
    'show_admin_column' => true
    ) );
    }
    add_action( 'init', 'dl_categories' );

    So I’m not sure what in here would cause it to stop working when Woocommerce is activated.

    Hi @dana_cz

    Thanks for sharing the custom code snippet you are using here.

    In addition to what @babylon1999 shared above, if you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Downloads Slug’ is closed to new replies.