Posts display, pages won’t
-
This is a weird one. I’ve copied a site and its database from one server to another. Everything’s fine, except stuff in “posts” won’t display if post_type=’page’. If I flip this to “post”, the same page_id works fine.
Here it is working (an intermediary server):
/?page_id=2
Here’s it is not working on the target.
/?page_id=2
The only difference is a slightly newer version of PHP. There may also be a problem in the database (there was a bit of corruption on the first – an empty table wouldn’t dump), but I’ve looked at what I believe are the relevant records and everything seems normal.
Looking at the HTML generated, nothing to do with the page_id appears in it. Something is failing to load, but where and why?
Incidentally, Blog2 is an old copy of the database – it’s an experiment from a year ago.
Having trawled through the code, I realise I don’t know as much about WordPress internals as I thought I did. Is there any kind of programmer documentation for the core? I want to insert some code to log what’s going on when a “page” is about to be displayed, but I can’t find anywhere to do it.
I created a new test page from the GUI front end to see if it would work any better, on the theory that the had simply lost some entity-relationships on the old one – it didn’t do any better.
If anyone can tell me what’s wrong that’d be great, but I’m really looking for some help or a pointer to a document telling me where in the PHP to start looking.
P.S. I’ve checked the Apache logs, turned on debugging &c – nothing throws up.
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Posts display, pages won’t’ is closed to new replies.