I did a upgrade from drupal 6.22 to 7.7 and have updated the database.

Everything works accept my blogs and pages.
I only get the title of the blog/page the story is gone and gives errors like:

    Notice: Undefined index: 0 in user_node_load() (regel 3561 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Trying to get property of non-object in user_node_load() (regel 3561 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Undefined index: 0 in user_node_load() (regel 3562 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Trying to get property of non-object in user_node_load() (regel 3562 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Undefined index: 0 in user_node_load() (regel 3563 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Trying to get property of non-object in user_node_load() (regel 3563 van /home/b5376bil/public_html/home/modules/user/user.module).
    Notice: Undefined index: primary-links in menu_block_view() (regel 462 van /home/b5376bil/public_html/home/modules/menu/menu.module).

can anybody help me fixing it?

Comments

Berkich’s picture

I had exactly the same problem. The body of any pages and stories disappeared on upgrade but could be found in field-data-body. I've no idea what the problem was, but I got around it by first upgrading to 7.4, and thence to 7.7. So far everything seems to be working correctly.

Taran’s picture

And only found it after I started poking around the database and started querying Google with the more and more exact problem.

For some reason, even when it is in the table, it isn't showing. The workaround with installing Drupal 7.4 first is not something I had the luxury to test because I started hacking out my own solution - which so far hasn't worked. Thus I'm doing something else that does work:

Pasting the content from the field_value_body into the /node/x/edit - not so bad considering I only have about 300 left to go.

This should definitely be in the docs. Why blog and page content wouldn't show after an upgrade is something that has me scratching my head still - but I don't have the luxury of time to sit and figure out a programmatic solution, I needed the site up. Everything else checked out and an upgrade in a sandbox had no issues at all. So this is a serious WTF that should probably be documented in the upgrade notes for Drupal 7.x, particularly if upgrading to 7.4. from 6 is the proper way to do things.

Of course, some users just might quit when they hit their head on this - and thus would do a fresh reinstall and lose content - and think less of Drupal because of it when there *has* to be a programmatic solution. Maybe I'll look into it if and when I have time.

kpastore’s picture

I started with 7.0 then 7.4 now 7.7, yet I have this issue as well.

botris’s picture

The problem is that the anonymous user is missing.
So either fix that, or change the UID in the tables node & node_revision to an existing user.