Images from hs-fs/hubfs folder not loading in WordPress

Hello,

I’m hunting down images that are returning 404 errors on our site.

Almost all of them are in the “hs-fs/hubfs” folder of our site. Most of the time in WordPress, images are uploaded to the wp-content/uploads directory, but the “hs-fs” folder is referencing the root of our site.

Can you help me understand when/how this folder is generated and why images might disappear from this folder?

Thank you.

Hi, @nathanparikh :waving_hand: Welcome to the community. That file path is related to where the HubSpot CMS stores images from the file manager. My suggestion is to look in-app at the File Manager and look for the matching files and see if you spot anything that has been moved, removed, or renamed. It’s not an exact science, and it’s one place to start looking.

Hey, @Jnix284 @Indra @BarryGrennan, do you have any suggestions or tips based our your work?

Thank you! — Jaycee

Happy to help @Jaycee_Lewis

@nathanparikh you said the images/files that are using hs-fs/hubfs are referencing the root domain for your website - this is likely the cause of the issue, as the files loaded in HubSpot are likely not on the same domain, they are either using the default or have been updated to use a brand domain to replace it following these steps.

A domain can only be hosted in one place - if the root domain is hosted in Wordpress, then it can’t be the domain that’s being used in HubSpot.

If your website was ported from HubSpot to WordPress it’s possible that the file directories are referencing old locations that aren’t available anymore.

What I would recommend is copying the URL from the code for one of the 404 errors and testing the link directly, outside of the website code, to see if you can load the individual image.

Then replace the root domain with the domain being used in HubSpot and see if you can load the image in the browser.

If you can, then you have the answer - you’ll have to find and replace the root domain with the correct domain for any files with the hs-fs/hubfs path…being careful not to change the root domain for WP files.

If that doesn’t work, the first place I would check in HubSpot is the Trash - if you can search the trash for the file names, there’s an option to restore the files directly from the HubSpot file manager.

I hope this helps with tracking things down!