• I just did an install of platinum, which worked fine without errors. Then I imported my blogger files, which worked fine without errors.
    However, when I look at my new blog site https://www.lifewithalacrity.com I see for all my blogger entries:
    Filed under:
    Warning: Invalid argument supplied for foreach() in /var/www/life/wp-includes/template-functions.php on line 1368
    — Christopher @ 3:21 pm Edit This
    I’ve search in this BB, and though I see some hacks for template-functions.php, I don’t see this error.
    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter christophera

    (@christophera)

    Hmm, when I actually try to edit one of the imported blogger posts, when I submit my changes I get the following errors:
    Warning: Invalid argument supplied for foreach() in /var/www/life/wp-admin/post.php on line 318
    Warning: Invalid argument supplied for foreach() in /var/www/life/wp-admin/post.php on line 324
    Warning: Cannot add header information – headers already sent by (output started at /var/www/life/wp-admin/post.php:318) in /var/www/life/wp-admin/post.php on line 365
    Could it be related?

    Thread Starter christophera

    (@christophera)

    Turns out the import blogger script does not create default entries in the posts to categories database wp_post2cat. I was able to manually add at least 1 post to category entry for every one of my posts, and both bugs went away.
    Another bug for the bug database.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New install, invalid foreach in template-functions’ is closed to new replies.