Jump to content

Pages showing 404 error


Peter Knight
 Share

Recommended Posts

Hi guys

is there a checklist of items I should consider for diagnosing a series of pages which display a 404 error?

Basically I have built a Blog and all my posts are under a folder called 'Posts'. Some of these pages successfully display while others display a 404 page. 

This is what I have confirmed so far...

1. All pages are within the same root folder 'Posts'
2. All pages have the same template and fields completed
3. All pages have the same properties under Settings > Who can access this page
4. Pages have no redirects in place
5. Pages have no special characters or anything funky in the URL slug

There are no errors showing in the log either so I am stuck ?

Thanks

Link to comment
Share on other sites

24 minutes ago, Peter Knight said:

is there a checklist of items I should consider for diagnosing a series of pages which display a 404 error?

Just to add on to your list:

  1. Is this happening for all users or just guests?
  2. Do you have any autoload modules in place that could be interfering?
  3. Do you have any hooks in place that could be interfering?
  4. Single or multi-lingual site?
  5. Tracy debugger errors?
  6. Changes to .htaccess, i.e. some rule getting matched?


Edit

I don't think it is mod_security since you can access some pages but not others..

Edited by kongondo
added more
Link to comment
Share on other sites

Thanks @kongondo

I found a fix for it although I don't understand the issue root cause.

Discovered that editing the page url slug fixes this. Even if I just add an extra letter. Once the page saves, I can view it.

Not wanting to have to do this manually to 50+ pages, I wondered what would happen if I changed the name (Settings > Name) of the parent for the 50 posts. That worked too and seems to have 'fixed' the 50 pages.

It must be something related to the Page Path History module or something similar.

  • Like 1
Link to comment
Share on other sites

@Peter Knight, I have experienced what I think is the same issue and discovered the same quick fix as you did. I think it's caused by errors relating to the expanded file and image field properties feature and I'm trying to narrow down the exact cause so I can open a GitHub issue. To check if what you're experiencing is the same as my issue...

1. Are you running one of the latest dev versions - 3.0.154 or 3.0.155?

2. Did you create everything from scratch inside the PW version you are running now, or did you update a site that was running an older PW version, or perhaps install using a site profile that was created under an older PW version?

3. Have you seen any error messages relating to image fields when you create a new page? E.g. something about a column not found such as modified_users_id

4. Do you have the PagePaths core module installed?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...