404 Page Error

404 Page Error

AVID1
Excursionist
30 0 7

After doing a broken link scan there were numerous 404 pages. After fixing most of them I have a few left over that I need help with.

  1. The first issue is a page that 404'd from a link on the product page to a PDF file that was incorrectly linked. I since deleted the actual link and it no longer shows on the product page but the code is still showing on that page even though the link is gone which causes it to still show in the scan.
  2. The second issue I have are links to collection pages that show 404's when doing a broken link scan but when I click on the url it takes me to the collection page showing all products. Here is an example of a link that came up in the scan. https://avidhealthandwellness.com/collections/vendors?q=Finnmark+Designs?sort_by=title-ascending It appears it is hitting on an "ascending" filter but I don't have one active.

Any help would be appreciated on these two issues. Thanks.

Replies 6 (6)

beauxbreaux
Shopify Partner
262 21 45

1. For this I would need a know a bit more to see what is going on with the code. The URL to this would be helpful.

 

2.

The link you gave is not working due to the filter tagged onto the end as it is an incorrect format.

 

So for example (this works): https://avidhealthandwellness.com/collections/vendors?q=Finnmark+Designs

 

In your original URL you gave has two query parameters (the question mark) and this is an incorrect format.

The filter is: ?sort_by=title-ascending it should be using '&'

 

This is the actual URL for that filter : https://avidhealthandwellness.com/collections/vendors?filter.v.price.gte=&filter.v.price.lte=&q=Finn...

 

I actually ended up having to click a few other filters just to get the "title-ascending" to work as it seems it is the default when the page is loaded. I also noticed that even though the page defaults to A-Z you still have 'sort by' but is part of the selection list. Is this part of your Avone theme or a plugin? 

Beaux Barker
Developer
Hire me on Fiverr
AVID1
Excursionist
30 0 7

Thanks for your quick response. Here is the link for my first issue. Full Protective Sheath for Harvia M Series Sauna Wood Stoves - WL450– Avid Health and Wellness The 404 error was from a link within this product page. At the bottom of the product information you will see a link named "installation Manual". I had originally had a second link below this named "safety" which linked to a PDF file via Shopify files. I deleted this on my product page but it still shows in the back end code which is causing the 404. I've also attached a screenshot of my scan in this message from brokenlinkcheck.com.

As for number 2, I copied direct from the scan shown in the photo. Here is a link from number 2 in the screen shot. Hope this helps. Finnmark Designs– Avid Health and Wellness

As you can see if shows the products in that category but it is still coming back in the scan as a 404. There are numerous ones as you can see in the image marked under the Link Text column marked as "clear all".

Broken Link SS 09-18-24.jpeg

beauxbreaux
Shopify Partner
262 21 45

For #1 you need to remove the code from your liquid file as I can absolutely see it from the front end code:

<h3><a rel="noopener" href="Harvia-WL450-Safety" target="_blank"><strong></strong></a></h3>

The only thing removed was the actual words to show up. How was this originally entered?

 

#2 This one is going to be a bit time consuming but creating redirects for these URLS might be the way to go. Something is absolutely wrong with the filters and the dynamically created URLs from the filters. Essentially there is a working version of those URLs and when navigating your site no one would ever have a clue because all of your links are actually correct but there are several links cached  that are not correct. This can also happen when you change the slug of your product. Now they luckily have the little checkbox that automatically redirects the old page. The issue you are facing is similar but a bit different in that we have no idea why these URLs are being created or else we would fix the root issue. 

 

You can send me over the urls in text format.  You can send me over these 12 here that you are showing me. This way I don't have to hand type everything out lol. I can show you step by step what I am doing to create the redirect and how to add it to Shopify. 

 

 

 

 

 

Beaux Barker
Developer
Hire me on Fiverr
AVID1
Excursionist
30 0 7

#1. Just to be clear that snippet of code that you included in your message is all that I need to remove? I’m always leery about touching anything related to code, but I will make a copy of the theme to see how it goes. All I did was copy the PDF file from Shopify>content>files and hyperlinked the “Safety” text like the installation manual link. When I deleted it the code remained for some reason. 

#2. I went into the theme and disabled the filter option, which seems to solve the other 404s. Not the best option, but it will work for now. Attempting to retrieve my GMC account from suspension so I need to get the site in good working order. I rescanned and all of those in my former screenshot cleared, but as I’m using the free version of the website more urls came back with the same filtering issue so I will just work through that for now and reach back out if I continue to have issues. 

beauxbreaux
Shopify Partner
262 21 45

#1 Yup you have the manually remove the code unless you are able to find the url within the editor. For example going to customize and finding that particular page, click the section where the link was showing up and then see in the menu to the left if there is anywhere with the old link. If so then you can remove it from there. If you are unable to essentially reverse the steps you did before you may end up having to manually remove it. If you need me to check, you can always invite me to look. 

 

#2 Sometimes the 'broken urls' are indeed just cached information that takes time to fall off. Next time you do a scan make sure you clear your browser cache so you get an accurate reading. I imagine you are probably limited to 1500 - 2000 scans on the free version. I may be able to write a script to do a full scan and send it over to you. 

 

edit: Wait, you can probably get a full list of 404's from Google Search Console for free.

Beaux Barker
Developer
Hire me on Fiverr
AVID1
Excursionist
30 0 7

Sent you a direct message