• 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 fjllondon.
    • This topic was modified 4 years, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    I’ve copied a site and its database from one server to another.

    Did you follow instructions at https://ww.wp.xz.cn/support/article/moving-wordpress/#moving-to-a-new-server

    If not, see if you missed anything.

    Thread Starter fjllondon

    (@fjllondon)

    Thanks, but I’ve been running an ISP for 25 years, hosting all sorts of WP sites. These are all my physical servers and I’m pretty sure I haven’t missed anything – no automated GUI tools to go wrong, or Windows messing things up.

    The original site was in WordPress version 1.

    I’m really looking for pointers into the code to figure how how it works, hence posting this rather tricky problem in the developers area.

    Moderator t-p

    (@t-p)

    The original site was in WordPress version 1.

    Vrsion 1. ??

    Is that a typo?

    Thread Starter fjllondon

    (@fjllondon)

    Nope. It’s been upgrade and upgraded in place, and may therefore have some version 1 code in there, which may be related to this problem. Some of the PHP files date from 2005, although it’s not clear whether it’s ever referenced.

    Moderator t-p

    (@t-p)

    It’s been upgrade and upgraded in place, and may therefore have some version 1 code in there, which may be related to this problem.

    Your currently installed WordPress version seems to be 5.0.3

    I would update it to the latest WP 5.7.2.

    When upgrading across multiple versions, follow these instructions: https://ww.wp.xz.cn/support/article/upgrading-wordpress-extended-instructions/

    BACKUP: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups! See https://ww.wp.xz.cn/support/article/wordpress-backups/

    Thread Starter fjllondon

    (@fjllondon)

    Er, thanks but I tried days ago in case it was a problem with PHP. It wasn’t.

    Where in the code are the page vs post loads decoded and processed? I need a pointer from a programmer here.

    Thanks, Frank.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Posts display, pages won’t’ is closed to new replies.