The MU forums have moved to WordPress.org

Problem with Authors & Users tab in 11-16 build (10 posts)

  1. kahless
    Member
    Posted 18 years ago #

    I updated to 11-16 build and now clicking the Users tab and then clicking the Authors and Users subtab which goes to http://blog_url/wp-admin/users.php gives a blank page. I see that profile.php, user-edit.php, and users.php were updated. Did something go astray?

  2. Ix
    Inactive
    Posted 18 years ago #

    Yup.
    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in <~USERNAME>/public_html/wpmu/wp-inst/wp-admin/users.php on line 308

  3. kahless
    Member
    Posted 18 years ago #

    Fix. Line 308 should be

    <td><select name="new_roles[{$user_object->ID}]" id="new_role">";

    or at least that is working for me.

  4. Ix
    Inactive
    Posted 18 years ago #

    Did not work for me...

  5. kahless
    Member
    Posted 18 years ago #

    Sorry, the " needs to be escaped. The post system removed the \ in front of " . The last " is not escaped.

  6. Ix
    Inactive
    Posted 18 years ago #

    So, change
    <td><select name="new_roles[{$user_object->ID}]" id="new_role">";
    to
    <td><select name="new_roles[{$user_object->ID}]" id="new_role">\";

    Is that right?

  7. kahless
    Member
    Posted 18 years ago #

    No all but the last " should be escaped. Sorry for the confusion.

  8. Ix
    Inactive
    Posted 18 years ago #

    Perhaps you could paste the lines.

  9. kahless
    Member
    Posted 18 years ago #

    That is what I tried the first time. I will try again after teaching my class.

  10. kahless
    Member
    Posted 18 years ago #

    <td><select name="new_roles[{$user_object->ID}]" id="new_role">";
    to
    <td><select name=\"new_roles[{$user_object->ID}]\" id=\"new_role\">";

About this Topic