• Resolved strongim2

    (@strongim2)


    I’m having an odd issue where one product’s permalink is going to a “Page Not Found”, while another similar product in the same category shows up just fine.

    The URL to the Not Found product is https://www.fleetlineproducts.com/products/mounting-kits/half-tandem-fender-mounting-kit/4255/

    The URL to the working product is https://www.fleetlineproducts.com/products/mounting-kits/half-tandem-fender-mounting-kit/4255-x/

    Both products have pretty much the same settings. Even clicking on the “View” link from the product administration page (e.g., the View link that shows up when hovering over the product title in the product list in administration) goes to the Page Not Found page. I tried resetting the permalinks, but that didn’t help. I also tried clearing WC transients and WP transients from the WooCommerce status tools, but that didn’t help either.

    I first went through a few technicians at my hosting provider to figure this out, but after taking some time, even they were unable to figure out what was going on with this particular product link.

    I thought that perhaps it didn’t like the all-numeric product slug, but adding a letter to that didn’t resolve the situation either. Removing the main category or the subcategory for the product goes to a working page, but keeping the category/subcategory structure (which is what WooCommerce seems to want to do) is not working for this particular product.

    Here is my status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.fleetlineproducts.com
    Site address (URL): https://www.fleetlineproducts.com
    WC Version: 3.6.4
    Log Directory Writable: ✔
    WP Version: 5.2.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.17-1+ubuntu18.04.1+deb.sury.org+3
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1b
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.25-28-log
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.6.4
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 8.22MB
    Database Data Size: 6.24MB
    Database Index Size: 1.98MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.02MB + Index: 0.09MB
    wp_duplicator_packages: Data: 0.02MB + Index: 0.02MB
    wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB
    wp_gf_entry: Data: 0.02MB + Index: 0.03MB
    wp_gf_entry_meta: Data: 0.02MB + Index: 0.05MB
    wp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB
    wp_gf_form: Data: 0.02MB + Index: 0.00MB
    wp_gf_form_meta: Data: 0.02MB + Index: 0.00MB
    wp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB
    wp_gf_form_view: Data: 0.02MB + Index: 0.03MB
    wp_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB
    wp_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB
    wp_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB
    wp_itsec_lockouts: Data: 0.02MB + Index: 0.08MB
    wp_itsec_logs: Data: 1.02MB + Index: 0.09MB
    wp_itsec_temp: Data: 0.02MB + Index: 0.06MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_options: Data: 0.30MB + Index: 0.06MB
    wp_postmeta: Data: 2.52MB + Index: 0.39MB
    wp_posts: Data: 1.50MB + Index: 0.16MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.03MB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB
    wp_users: Data: 0.02MB + Index: 0.05MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    acf-field: 10
    acf-field-group: 5
    attachment: 464
    custom_css: 1
    et_pb_layout: 3
    nav_menu_item: 15
    oembed_cache: 2
    page: 14
    popup: 1
    popup_theme: 6
    post: 4
    product: 55
    revision: 77
    scheduled-action: 18
    seemore: 7
    wpmm_theme: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (15) ###
    
    Gravity Forms: by rocketgenius – 2.4.9
    Advanced Custom Fields: by Elliot Condon – 5.8.0
    Akismet Anti-Spam: by Automattic – 4.1.2
    iThemes Security: by iThemes – 7.3.3
    Duplicate Post: by Enrico Battocchi – 3.2.2
    MainWP Child: by MainWP – 3.5.7
    Max Mega Menu: by megamenu.com – 2.6
    Popup Maker - Remote Content: by WP Popup Maker – 1.1.4
    Popup Maker: by WP Popup Maker – 1.8.6
    ShortPixel Image Optimizer: by ShortPixel – 4.13.1
    Simple Image Sizes: by Rahe – 3.2.1
    Simple Wp Sitemap: by Webbjocke – 1.2.1
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.14
    
    WooCommerce: by Automattic – 3.6.4
    Yoast SEO: by Team Yoast – 11.2.1 – Not tested with the active version of WooCommerce
    
    ### Inactive Plugins (3) ###
    
    Force Regenerate Thumbnails: by Pedro Elsner – 2.0.6
    Product Gallery Slider for Woocommerce: by codeixer – 2.0.3
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.1
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    object-cache.php: Memcached Redux
    
    ### Must Use Plugins (3) ###
    
    Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4
    Stop long comments: by WPEngine – 0.0.4
    WP Engine System: by WP Engine – 3.2.1
    
    ### 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: ❌ Page not set
    Cart: ❌ Page not set
    Checkout: ❌ Page not set
    My account: ❌ Page not set
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Divi - Child
    Version: 1.0.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Divi
    Parent Theme Version: 3.22.7
    Parent Theme Author URL: http://www.elegantthemes.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: divi-child/woocommerce/archive-product.php
    
    ### Action Scheduler ###
    
    Complete: 18
    Oldest: 2019-05-29 11:25:16 -0500
    Newest: 2019-06-04 17:55:14 -0500
    
    Pending: 0
    Oldest: –
    Newest: –
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    This is definitely an odd case!

    When you reached out to your host, did any of the technicians update the .htaccess file and attempt to resave the permalinks afterwards? If not, I would recommend updating the file with the following code mentioned here to see if it helps: https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter strongim2

    (@strongim2)

    It is not yet resolved. Updating the permalinks did not help, though I haven’t had the host perform the permissions thing with the htaccess file yet.

    AJ a11n

    (@amandasjackson)

    Hi there,

    I haven’t had the host perform the permissions thing with the htaccess file yet.

    Please do let us know if having the hosting update the .htaccess file and then resaving the permalinks works. I believe Lacey mentioned that the file needs to be updated first before the permalinks are saved.

    Thread Starter strongim2

    (@strongim2)

    The host (WP Engine) claims they are unable to change file permissions (the wpbeginner site suggests changing permissions on the HTACCESS file to 666, resetting permalinks, then setting the permissions back). I’m unsure as to whether that suggestion was important, being that the contents of the HTACCESS file are exactly as specified in the wpbeginner suggestion already.

    At any rate, the solution (resetting the permalinks) did not work. This technique was already applied prior to initiating this topic, so it was basically telling me to try something I already tried.

    I’m going to try just re-creating the product, and we’ll see if the URL works at that point.

    Hi @strongim2

    Just checking-in with you on this:

    I’m going to try just re-creating the product, and we’ll see if the URL works at that point.

    Did this resolve the problem?

    In case it didn’t can you take a look at your web host’s PHP error log to see if there are any error messages that were recorded there? These messages (if any) might help us in finding the trigger behind the problem, and will help us in resolving it.

    While it is unlikely, it might also help to do a full conflict test as mentioned here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/ You can do this on your WP Engine staging site. Once this is done, please try updating the products to see if the problemn resolves itself.

    Let us know how that went.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Permalink for one product not working’ is closed to new replies.