Occasionally we have 2¢ to add

WPMU DEV Membership Plugin Error with WordPress 3.2

Last night when I upgraded to WordPress 3.2 on a site we’re working on, I got a WSoD on the front end of the site after I logged in. I tracked down the source of the php error in the error log to a call to a missing method “WP_User” on the WP_User class. It turns out that the membership plugin from WPMUDEV was calling the WP_User class constructor in the older PHP4 style instead of the new PHP5 style. With the drop of PHP4 support in WOrdPress 3.2, this presented a problem. Luckily it was an easy fix. On line 23 of /wp-content/plugins/membership/membershipincludes/classes/class.membership.php, Change the following code from:

parent::WP_User( $id, $name );


parent::__construct( $id, $name );

Hope this helps!

This entry was posted in Code Snippits, Error Fixes and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted July 6, 2011 at 7:33 am | Permalink

    Hi Brandon,

    That helped to resolve the issue on my site. WPMU DEV is yet to update the plugin for 3.2. Thank you very much.

  2. Posted July 6, 2011 at 11:56 am | Permalink

    Thanks for this quick fix. I’ll try it when I get home. Saves me $79/month though just for this one thing. <3

  3. brandon
    Posted July 6, 2011 at 3:53 pm | Permalink

    No problem. Glad to help.

  4. Posted July 6, 2011 at 6:05 pm | Permalink

    Thank you. This was a great quick solution. I upgraded the site and nothing in the body was showing up.

  5. Brandon
    Posted July 6, 2011 at 7:47 pm | Permalink

    We had the exact same problem. =)

  6. Sam
    Posted July 31, 2011 at 5:26 am | Permalink

    Thank a lot!

  7. Posted October 12, 2011 at 8:39 am | Permalink

    I have the same error. I did what you suggest in this post, but when i reload the page, this does not display. What do I do?

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>