Product links in menu not working
-
I have 4 categories listed in the site’s main menu under ‘Books’. These categories are:
https://ukds.uk/book-category/learning-to-drive
https://ukds.uk/book-category/theory-test-practise-questions
https://ukds.uk/book-category/highway-code-theory-test
https://ukds.uk/book-category/glovebox-guides
For some reason the links to the category pages are not working. Each of these links just goes to the site home page?
The page I need help with: [log in to see the link]
-
Hey there @pglad you seem to have a redirect app added and that’s why you’re getting redirected on these. Also make sure you don’t have post categories of the same name as the product categories. You will cause issues there as well.
But I’d look for a redirect plugin. That seems to be your issue.
Hi ,
Thank you for reaching out.
I understand you’re having issues with your category links, as they’re redirecting to the home page instead of the intended category pages.
As a first step, please go to your WordPress Dashboard > Settings > Permalinks. Make sure they are set to Post name or Custom Structure, based on how you intend to have them set, then save the changes.
Next, please ensure that the category URLs you have listed in your menu are correct. Sometimes, a simple typo can cause this issue.
Thanks for your suggestions, but I still have not got to the bottom of this. I am not using a redirect app, and I have tried the links with all plugins disabled and a default theme with no success.
The products permalinks are separate from post permalinks, and I am using a custom base of ‘book-category’ for the book categories. All links are correctly spelt and there are no duplicate naming conflicts.
I have temporarily gotten around this problem by changing the product category link to a custom # which simply opens a sub menu. I have then started listing the individual products on those sub menus. Not ideal, but at least it works!
Hi @pglad,
Thank you for the additional details. I understand you’re using a custom permalink structure. Can you please try going to the permalink settings and saving them without making any changes? This is a common issue with WordPress overall, and the workaround is “refreshing” the permalinks this way.
Please let us know if this helps. If the issue persists, though, please share with us the necessary information below for us to investigate the issue further:
- System Status Report?which you can find via WooCommerce > Status > Get system report > Copy for support.
- Fatal error logs?(if any) under WooCommerce > Status > Logs.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Once we have more information, we’ll be able to assist you further.
Thanks!
-OPThanks again for the help, saving permalink setting did not change anything. here is the info:
` WordPress Environment</p> <p>WordPress address (URL): https://www.ukds.uk<br>Site address (URL): https://www.ukds.uk<br>WC Version: 9.2.3<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.8.1<br>Log Directory Writable: ?<br>WP Version: 6.6.2<br>WP Multisite: –<br>WP Memory Limit: 768 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_GB<br>External object cache: ? Server Environment</p> <p>Server Info: Apache<br>PHP Version: 8.1.29<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 120<br>PHP Max Input Vars: 3000<br>cURL Version: 8.2.1<br>OpenSSL/3.1.4</p> <p>SUHOSIN Installed: –<br>MySQL Version: 8.0.36-28<br>Max Upload Size: 256 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p>WC Database Version: 9.2.3<br>WC Database Prefix: 5Be9QK_<br>Total Database Size: 56.75MB<br>Database Data Size: 42.90MB<br>Database Index Size: 13.85MB<br>5Be9QK_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_woocommerce_downloadable_product_permissions: Data: 0.05MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.28MB + Engine InnoDB<br>5Be9QK_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_actionscheduler_actions: Data: 0.50MB + Index: 0.56MB + Engine InnoDB<br>5Be9QK_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_actionscheduler_logs: Data: 0.39MB + Index: 0.27MB + Engine InnoDB<br>5Be9QK_blc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_blc_instances: Data: 0.19MB + Index: 0.11MB + Engine InnoDB<br>5Be9QK_blc_links: Data: 1.52MB + Index: 0.22MB + Engine InnoDB<br>5Be9QK_blc_synch: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB<br>5Be9QK_fb3d_pages: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_frm_fields: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_frm_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_frm_item_metas: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_frm_items: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>5Be9QK_giftvouchers_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_giftvouchers_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_giftvouchers_setting: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_giftvouchers_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_mlw_qm_audit_trail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_mlw_questions: Data: 0.08MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_mlw_quizzes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_mlw_results: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_options: Data: 13.52MB + Index: 0.33MB + Engine InnoDB<br>5Be9QK_participants_database: Data: 0.19MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_participants_database_fields: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_participants_database_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_pmr_status: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_postmeta: Data: 13.52MB + Index: 6.03MB + Engine InnoDB<br>5Be9QK_posts: Data: 5.52MB + Index: 2.14MB + Engine InnoDB<br>5Be9QK_realmedialibrary: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_realmedialibrary_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_realmedialibrary_posts: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_realmedialibrary_tmp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_sgs_log_events: Data: 1.52MB + Index: 0.39MB + Engine InnoDB<br>5Be9QK_sgs_log_visitors: Data: 0.06MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_signups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_term_relationships: Data: 0.23MB + Index: 0.23MB + Engine InnoDB<br>5Be9QK_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_termmeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_usermeta: Data: 0.13MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>5Be9QK_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>5Be9QK_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wc_product_meta_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>5Be9QK_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wdr_order_item_discounts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>5Be9QK_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>5Be9QK_wt_sc_coupon_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_yoast_indexable: Data: 0.41MB + Index: 0.23MB + Engine InnoDB<br>5Be9QK_yoast_indexable_hierarchy: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>5Be9QK_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>5Be9QK_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>5Be9QK_yoast_prominent_words: Data: 0.11MB + Index: 0.22MB + Engine InnoDB<br>5Be9QK_yoast_seo_links: Data: 1.52MB + Index: 0.53MB + Engine InnoDB Post Type Counts</p> <p>aal_button: 1<br>adt_product_feed: 2<br>astra_adv_header: 2<br>astra-advanced-hook: 1<br>attachment: 707<br>custom_css: 7<br>customize_changeset: 1<br>dflip: 20<br>download: 1<br>elementor_library: 2<br>everest_form: 1<br>frm_form_actions: 1<br>frm_styles: 1<br>giftcard: 4<br>mailpoet_page: 1<br>mgmlp_media_folder: 137<br>nav_menu_item: 78<br>ninja-table: 1<br>oembed_cache: 5<br>page: 85<br>pms-subscription: 2<br>popup: 3<br>popup_theme: 8<br>post: 106<br>post_type_questionna: 3179<br>ppdgorder: 3<br>ppec-products: 6<br>product: 35<br>product_variation: 23<br>proxy-post: 323<br>qmn_log: 3<br>qsm_quiz: 1<br>revision: 197<br>rmp_menu: 1<br>saswp: 2<br>seedprod: 2<br>shop_order: 183<br>shop_order_refund: 2<br>tablepress_table: 1<br>woolentor-template: 1<br>wp_block: 5<br>wp_global_styles: 4<br>wp_navigation: 2<br>wp_template: 2<br>wpcode: 2<br>wpdesk-coupons: 5<br>wpforms: 2<br>wpgv_voucher_product: 1<br>wpmm_theme: 3<br>wpplugin__sub_log: 1 Security</p> <p>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (36)</p> <p>3D FlipBook : Dflip Lite: by DearHive – 2.3.32<br>Astra Pro: by Brainstorm Force – 4.8.0<br>Broken Link Checker: by WPMU DEV – 2.3.0<br>FunnelKit Cart for WooCommerce: by FunnelKit – 1.7.1<br>Classic Editor: by WordPress Contributors – 1.6.4<br>Classic Widgets: by WordPress Contributors – 0.3<br>CM Pay Per Post EDD Payments Addon: by CreativeMindsSolutions – 2.0.15<br>CM Pay Per Posts Pro: by CreativeMindsSolutions – 2.6.8<br>Decorator – WooCommerce Email Customizer: by WebToffee – 1.3.0<br>Docket Cache: by Nawawi Jamili – 24.07.01<br>Flexible Shipping: by Octolize – 4.25.8<br>Gift Up: by Gift Up – 2.26<br>HD Quiz: by Harmonic Design – 1.8.15<br>10Web Image Optimizer: by 10Web – Image Optimizer team – 6.0.67<br>Pages with category and tag: by YAHMAN – 0.9.0<br>Participants Database: by Roland Barker<br>xnau webdesign – 2.5.9.5</p> <p>Participants Database Directory Tools: by Roland Barker<br>xnau webdesign – 1.6.1</p> <p>Perfmatters: by forgemedia – 2.2.7<br>Phoenix Media Rename: by crossi72 – 3.11.8<br>Real Media Library (Free): by devowl.io – 4.22.22<br>Schema & Structured Data for WP & AMP: by Magazine3 – 1.35<br>Security Optimizer: by SiteGround – 1.5.4<br>10Web Booster: by 10Web – Website speed optimization team – 2.28.14<br>ThemeZee Widget Bundle: by ThemeZee – 1.6<br>Advanced Editor Tools: by Automattic – 5.9.2<br>Discount Rules Core: by Flycart – 2.6.6<br>Product Feed PRO for WooCommerce: by AdTribes.io – 13.3.6<br>WooCommerce.com Update Manager: by Automattic – 1.0.3<br>WooCommerce PayPal Payments: by WooCommerce – 2.9.0<br>WooCommerce: by Automattic – 9.2.3<br>Yoast SEO: by Team Yoast – 23.4<br>WP-Copyright-Protection: by dave.ligthart – 1.7<br>WP External Links: by WebFactory Ltd – 2.61<br>WP Mail SMTP: by WP Mail SMTP – 4.1.1<br>WPForms Lite: by WPForms – 1.9.0.4<br>xnau Plugin Updates: by Roland Barker<br>xnau webdesign – 1.5.1 Inactive Plugins (0) Dropin Plugins ()</p> <p>advanced-cache.php: advanced-cache.php<br>object-cache.php: Docket Cache Drop-in Settings</p> <p>Legacy API Enabled: –<br>Force SSL: –<br>Currency: GBP (£)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>pw gift card (pw-gift-card)<br>simple (simple)<br>variable (variable)</p> <p>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – Logging</p> <p>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 334 KB WC Pages</p> <p>Shop base: #14403 – /books-for-learner-drivers/<br>Basket: #14404 – /basket/ – Contains the [woocommerce_cart] shortcode<br>Checkout: #14405 – /checkout/ – Contains the [woocommerce_checkout] shortcode<br>My account: #14406 – /my-account/<br>Terms and conditions: #10866 – /terms-and-conditions/ Theme</p> <p>Name: UK Driving Skills<br>Version: 1.0.0<br>Author URL: https://wpastra.com/about/<br>Child Theme: ?<br>Parent Theme Name: Astra<br>Parent Theme Version: 4.8.0<br>Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme<br>WooCommerce Support: ? Templates</p> <p>Overrides: /home/customer/www/ukds.uk/public_html/wp-content/plugins/woo-discount-rules/v2/App/Views/Templates/loop/sale-flash.php version – is out of date. The core version is 1.6.4<br>/home/customer/www/ukds.uk/public_html/wp-content/plugins/woo-discount-rules/v2/App/Views/Templates/single-product/sale-flash.php version – is out of date. The core version is 1.6.4</p> <p>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p>WooCommerce PayPal Payments</p> <p>Onboarded: ?<br>Shop country code: GB<br>WooCommerce currency supported: ?<br>Advanced Card Processing available in country: ?<br>Pay Later messaging available in country: ?<br>Webhook status: –<br>PayPal Vault enabled: –<br>ACDC Vault enabled: –<br>Logging enabled: –<br>Reference Transactions: –<br>Used PayPal Checkout plugin: –<br>Subscriptions Mode: Disabled Admin</p> <p>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store</p> <p>Disabled Features: experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system</p> <p>Daily Cron: ? Next scheduled: 2024-09-11 07:27:05 +00:00<br>Options: ?<br>Notes: 59<br>Onboarding: completed Action Scheduler</p> <p>Complete: 458<br>Oldest: 2024-08-11 09:44:34 +0000<br>Newest: 2024-09-11 05:37:48 +0000</p> <p>Failed: 773<br>Oldest: 2024-04-16 13:54:59 +0000<br>Newest: 2024-07-20 12:15:02 +0000</p> <p>Pending: 6<br>Oldest: 2024-09-11 08:35:44 +0000<br>Newest: 2024-09-11 21:53:09 +0000 Status report information</p> <p>Generated at: 2024-09-11 08:39:22 +00:00</p> <p>Fatal Error Log:</p> <p><strong>2024-09-02T09:26:10+00:00</strong><strong>Critical</strong> Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context{ “error”: { “type”: 1, “file”: “/home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php”, “line”: 75 }, “backtrace”: [ “”, “#0 /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/batch-processing/wp-background-process.php(288): IPQ_Process->task(Array)”, “#1 /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/batch-processing/wp-background-process.php(172): WP_Background_Process->handle()”, “#2 /home/customer/www/ukds.uk/public_html/wp-includes/class-wp-hook.php(324): WP_Background_Process->maybe_handle(”)”, “#3 /home/customer/www/ukds.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)”, “#4 /home/customer/www/ukds.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#5 /home/customer/www/ukds.uk/public_html/wp-admin/admin-ajax.php(207): do_action(‘wp_ajax_nopriv_…’)”, “#6 {main}”, “thrown” ] }</p> <p><img src=”https://pixel.wp.com/t.gif?tab=logs&coming_soon=no&_en=wcadmin_status_view&_ts=1726044075196&_via_ua=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F128.0.0.0+Safari%2F537.36&_via_ip=5.133.46.131&_lg=en-US%2Cen%3Bq%3D0.9&_dr=https%3A%2F%2Fwww.ukds.uk%2Fwp-admin%2Fadmin.php%3Fpage%3Dwc-status%26tab%3Dlogs&_dl=https%3A%2F%2Fwww.ukds.uk%2Fwp-admin%2Fadmin.php%3Fpage%3Dwc-status%26tab%3Dlogs%26view%3Dsingle_file%26file_id%3Dfatal-errors-2024-09-02&_ut=anon&_ui=woo%3ABSjxQr5bUS53T4eJJnqMmwR1&url=https%3A%2F%2Fwww.ukds.uk&blog_lang=en_GB&blog_id=181531197&store_id=fe89166f-9a96-40a4-8557-b1a66fbd78ba&products_count=35&wc_version=9.2.3&browser_type=php-agent”></p> <p><br>`
Hey, @pglad!
Thanks for sharing the SSR. Things seem ok on it.
Can you please also share the Fatal error logs?(if any) under WooCommerce > Status > Logs.
Also please share screenshots of your permalinks page so we can take a look.
I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.Have a wonderful day!
Sorry thought I’d already done that
2024-09-10T11:19:56+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context{ “error”: { “type”: 1, “file”: “/home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php”, “line”: 75 }, “backtrace”: [ “”, “#0 /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/batch-processing/wp-background-process.php(288): IPQ_Process->task(Array)”, “#1 /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/batch-processing/wp-background-process.php(172): WP_Background_Process->handle()”, “#2 /home/customer/www/ukds.uk/public_html/wp-includes/class-wp-hook.php(324): WP_Background_Process->maybe_handle(”)”, “#3 /home/customer/www/ukds.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)”, “#4 /home/customer/www/ukds.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#5 /home/customer/www/ukds.uk/public_html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_wp_imag…’)”, “#6 {main}”, “thrown” ] }2024-09-10T11:20:29+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context2024-09-10T11:20:32+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context2024-09-10T11:21:58+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context2024-09-10T11:23:51+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context2024-09-10T11:37:07+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context2024-09-10T12:24:03+00:00Critical Uncaught Error: Call to undefined method WP_Image_Editor_GD::get_error_message() in /home/customer/www/ukds.uk/public_html/wp-content/plugins/astra-addon/classes/library/image-processing-queue/includes/class-ipq-process.php:75 Additional context
I’ve posted the screenshots you asked for
Hi @pglad,
Thank you for the additional details. The fatal error logs point to an issue with the Astra addon plugin, I doubt this is the issue causing the problem with the categories, though. That error is more towards images. You should check with Astra just in case about this error, though.
Regarding the categories redirecting you to the homepage, I understand you’ve tried already with a default theme and with every other plugin disabled, as well as tried refreshing the permalinks already, and made sure there are no naming conflicts with the custom category links. Just to be safe, can you give it a quick try by using the default category structure for products to make sure if they work that way?
This is to determine the scope of the issue. If it works with the basic structure, we can continue our efforts to focus on the custom product categories structure. If it doesn’t work even with the basic structure, then we have to dig deeper and figure out why it isn’t working at all, and further tests would be required. For instance, I just tested on your site and saw that the posts categories work fine. That’s good! So the issue is only with product categories so far.
Please keep us posted.
Thanks!
-OPHi, I tried switching to the default structure but the result was the same, all product categories still redirect to the site home page ??
Update, I actually got the categories to display correctly by changing to the default settings, but as soon as I tried the custom setting the category links redirected to the home page.
I then shortened the category permalink from ‘book-category’ to just ‘category’, and now everything is working fine. Thanks for everyone’s input!
Hey, @pglad!
I’m glad you were able to find the issue! ??
Please let us know if there’s anything else we can do to help or if you have any questions.
Have a wonderful day!
To cure this issue I modified the product category from ‘book-category’ to just ‘category’. But I now have a wee problem of Google picking up the links in the first post I made and complaining about being redirected to my home page. Is it possible to edit the URLs in the first post to prevent the redirect issue that Google is complaining about? I just need to change ‘book-category’ to ‘category’.
Regards
Patrick
Hi @pglad
You can use a redirection plugin to redirect the old “book-category” URLs to the new “category” URLs. This way, when Google or any user clicks on the old link, they will be automatically redirected to the new URL. This should resolve the issue that Google is complaining about.
Please note that URL changes should be made carefully to avoid SEO issues. If you’re not comfortable doing this, you might consider hiring a professional to assist you.
I hope this helps! If you have any other questions, feel free to ask.
- You must be logged in to reply to this topic.