Arved:
Every once in a while, things get out of sync. Go to: Settings => Permalinks, click on the Save Changes button. If that doesn’t fix it, change it to the default setting and click on Save Changes. Then set it back to the way you want it.
Thread Starter
Arved
(@arved)
Thanks Kurt.
I tried that, but it’s not working. I got the message “Permalink structure updated” each time I tried, but it still behaves the same.
If it helps, http://arvedgrass.com/?p=589 resolves to http://arvedgrass.com/three-barrels-of-steam/, but the landing spot is still a “Page Not Found.”
I thought this be a bug with WP 3.5.1? All my permalinks to posts made prior to the upgrade still work fine, but I made a test post, and it worked fine.
I may have had a page (as opposed to a post) by the same shortlink name some time ago, but that page is now gone, so I can’t be sure. Could that shortlink name be somehow floating around in my database’s ether? Is there a way to manage that database, and purge old entries?
Still not solved.
Try disabling all plugins.
Set the theme to one of the default themes – 2012/2011/2010
Thread Starter
Arved
(@arved)
Thanks Kurt.
I tried that:
1. Disabled all plugins
2. Changed theme from VERYPLAINTXT to TWENTYTEN
3. Redid the set Permalink to Default.
So this should be a very basic installation of WP, right?
Open the home page in a seperate browser window. Click on title of latest blog post, and get a “not found” error page.
4. Opened up last post in editor, and update. In now gives me the permalink as http://arvedgrass.com/?p=599 (incremented by 1)
Clicking on the title, it still generates a not found error – the link is still to the permalink http://arvedgrass.com/three-barrels-of-steam/. So I manually put in the new permalink given in step 4. This gets resolved to http://arvedgrass.com/three-barrels-of-steam/, with the predicted “not found” error page.
I repeated all the above with two other themes: TWETNTYELEVEN and the Default theme.
Is there a file or a table WP uses to resolve permalinks? A file I could edit (I presume), but a table – I’d need a utility to edit the database.
What happens if you create a new post? Does the permalink work?
If it does, copy everything in the barrels post, delete it and then recreate it.
Sorry, I forgot to address the table question. I’d have to find out where the permalink info is stored. It should be easier to find a solution through admin than to edit the tables.
Thread Starter
Arved
(@arved)
Thanks again, Kurt.
New post creates a good permalink. I’m positive now that the problem is using a permalink to a page (rather than a post) that’s been deleted.
Other than not using that permalink, I’m not sure what to do to rectify the situation. Note that when I resaved the article I got a new Shortlink, but even the new shortlink gets resolved to the FUBARed permalink, even when permalinks are in default mode – i.e. using the shortlink as the permalink.
That’s why I think there must be a table or file involved for the redirection. Does this mean it’s related to .htaccess? That’s the only other reference I’ve been able to find on permalink/shortlink issues.
I’m not sure why you’re referring to pages now. It was a post initially wasn’t it?
No, it’s not the .htaccess file unless it was edited manually.
Thread Starter
Arved
(@arved)
I think I found the problem.
There WAS a page by the same name/same permalink. Once I permenently deleted it from the trash, everything works as expected.
Thanks again, Kurt, for all your help, and sticking through it to resolve the issue.
Thread Starter
Arved
(@arved)
I had created a page by that name first. When I realized my mistake in not creating a page, I deleted the page and created the post. The problem is that the deleted page hung around in the trash, evidently reserving the permalink. When I created the page by the same name, WP was confused and tried to use the permalink already in use (to the page in the trash). Only by permenantly deleting the page could I free up the permalink to be used by the post.
I get confused by the difference between page and post. There are a lot of resources on the internet to help explain the differences, and how you’d use one or the other. It’s tough sometimes for me to make the right choice when my mind is reeling with the stuff I want to write about. I get so fixated on the product I lose sight of the process.
I wasn’t aware that a page had been created.
I’m glad it has been resolved.