WordPress.org

Ready to get started?Download WordPress

Forums

foreach() problems (4 posts)

  1. realberen
    Member
    Posted 10 years ago #

    Hi all,
    I'm running WordPress of 19-5-2004. Upon havnig an empty blog, I will get a foreach() error instead of a category listing. Here there should have been a detection if no categories have been posted to yet.
    This was the result of my first email post. This shows the same kind of error, but now it seems it hasn't been put in the right category. I hope this helps for debugging, and sorry if this is a known problem. If it is and is corrected, please let me know so I can update.
    En post pr epost
    Filed under:
    Warning: Invalid argument supplied for foreach() in /home/regis1/wp-includes/template-functions-category.php on line 65
    � realberen @ 6:47 am Edit This
    Dette er en post i bloggen som kom pr epost.

  2. carthik
    Member
    Posted 10 years ago #

    Is this 1.2 "mingus" , the stable version? I cannot see the generator meta tag in the index.php source and so had to ask. :)
    The wp-mail.php in the stable 1.2 seems to not have this problem.

  3. realberen
    Member
    Posted 10 years ago #

    I upgraded to Mingus (I was running 2004-05-15), and the problem is still there.
    When importing the mail, I get:

    Mission complete, message 1 deleted.
    Content-type: text/plain, boundary:
    Raw content:
    Vi oppgraderte nettopp bloggen, og da skal en del bugs være blitt borte

    However, the email has NOT been deleted from the pop-account, and upon next time I run the script it will import the same message. Back on the webpage, it shows:

    En test
    Filed under:
    Warning: Invalid argument supplied for foreach() in /home/regis1/wp-includes/template-functions-category.php on line 65
    � realberen @ 9:59 am Edit This
    Vi oppgraderte nettopp bloggen, og da skal en del bugs være blitt borte

    I've copied the following tags here, but it should be quite obvious that the problem is with the routine for displaying the category in the foreach() line. :-) Is there any more information I can assist with?

    <div id="content">
    <h2>5/26/2004</h2>
    <div class="post">
    <h3 class="storytitle" id="post-8">En test</h3>
    <div class="meta">Filed under:
    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/regis1/wp-includes/template-functions-category.php</b> on line <b>65</b>
    <ul class="post-categories">

    — realberen @ 9:59 am Edit This </div>
    <div class="storycontent">
    Vi oppgraderte nettopp bloggen, og da skal en del bugs være blitt borte
    </div>
    <div class="feedback">
    Comments (0) </div>
    <!--
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <rdf:Description rdf:about="http://blog.registrar.no/index.php?p=8"
    dc:identifier="http://blog.registrar.no/index.php?p=8"
    dc:title="En test"
    trackback:ping="http://blog.registrar.no/wp-trackback.php/8" />
    </rdf:RDF> -->
    </div>

  4. richardc020
    Member
    Posted 9 years ago #

    See http://wordpress.org/support/3/10032 for the solution.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.