Forums

[plugin: profie-pic] Author page errors when authors have no posts (1 post)

  1. jumwerth
    Member
    Posted 4 months ago #

    When I add a new user profile to profile-pic, I get an error when trying to display the author's profile if they have not yet contributed any posts. The error reads:

    <<Warning: Invalid argument supplied for foreach() in /.../.../public_html/wp-content/plugins/profile-pic/profile-pic.php on line 538>>

    This is the code referred to:
    foreach ($profiledata as $name => $data) {
    $profile .= '<p><b>'. $name . '</b>: ' . $data . '</p>';
    }

    An example of a working author page can be viewed here:

    http://awkwardpress.com/author/jeffrey/

    A page that does not work properly can be seen here:

    http://awkwardpress.com/author/segretto/

    Please help!

Reply

You must log in to post.

About this Topic