WordPress.org

Ready to get started?Download WordPress

Forums

Allow Multiple Accounts
[resolved] Does not work with MultiSite Network v3.1 (26 posts)

  1. chuckingit
    Member
    Posted 3 years ago #

    this plugin used to work but when i upgraded MultiSite Network to 3.1 it broke ... i've turned off EVERY SINGLE plugin and removed all functions.php code and still get FATAL error on line 220 -, ie
    Fatal error: Call to undefined function user_row() in /home/user-name/public_html/wp-content/plugins/allow-multiple-accounts/allow-multiple-accounts.php on line 220

    i had posted comment on author site earlier in week but does not appear hence posting error status here for others so you don't waste your time ... this plugin failure was also experienced on a second blog network ... and in addition to error code above, i'm unable to add a second user to a shared email no matter what i get error:

    Sorry, that email address is already used!

    this plugin breaking is unfortunate ... it was really cool when it worked and worked like a charm before ... unfortunately i have a church site that now has to be completely redone because of this broken plugin and no longer can provide "family memberships" with shared email but now have to go back to default WordPress membership of one unique email per member - ugh!

    hopefully this info will help others ... cordially, chuck scott

  2. cassiedong
    Member
    Posted 3 years ago #

    It seems that user_row() function is removed in WP 3.1 which is why this plugin throws the error, see this article: http://www.travislin.com/2011/02/changelog-upgrade-wordpress-305-to-310/. Apparently user_row() is just one function out of a few that are removed.

    Would be interesting to see how this impact other plugins out there and how quick and easy for the developers to find the alternative solution.

  3. chuckingit
    Member
    Posted 3 years ago #

    @cassiedong ... muchas gracias for post with link ... that certainly explains things (function being removed that is) ... i will let the plugin author know as perhaps that might help others ...

    in the meantime, i spent day plus recoding the church site so i'm back to one email per member and will leave it at that :>0 ...

    oh, the joys of open source ... when it works it's awesome and when it goes south, well then ...

    reminds me conversation i had with engineering friend years back who said, "Chuck - you know they never should have called this stuff software. Everybody thinks that just because it is seemingly soft that it easily changed. Humbug. They should have called it, Concrete-ware. In that once you get it stable, leave it the f* alone. Lord knows, as soon as you go back and touch one line or one variable or one database field and change it, somewhere, something else is gonna break and needs to be debugged. Bla bla bla..."

    Truly i jest although it was a real conversation with a real engineer, one with very high security clearance but i digress ...

    Viva the stable code and the open source communities that promote open solutions and open awareness that work to advance the highest goods for all :>)

    cheers - chuck scott

  4. cassiedong
    Member
    Posted 3 years ago #

    You are welcome.

    I guess we see this is one thing we can't get away from all the open source CMS solutions. However I do think WordPress (because it's PHP based) gives you a lot more flexibility in terms of being able to extend, fix or hack into the code when things are broken, comparing to DNN for example, where you have to truly rely on the module developers or buy the source code version and pull your hair off trying to debug.

    Good news is I managed to fix the issue by adding the user_row() function back in allow-multiple-accounts.php under /wp-content/plugins/allow-multiple-accounts. This is the code snippet of user_row() found from the earlier version of WP:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Note that adding this piece of code only will not function, you will also need to register user_row() to WP. I did this by adding this line: add_action( 'user_row', array( &$this, 'user_row' ), 1, 3 ); to the bottom of within register_filters() in allow-multiple-accounts.php.

    Everything works like a charm for me now. I will stick to this work-around until the plugin author releases a proper fix.

    Hope this helps.
    Cassie

  5. chuckingit
    Member
    Posted 3 years ago #

    hey cassiedong - very clever and makes sense (recycling former user_row function ... i've already re-code the church site so i'm gonna move forward without this multi account feature but wanted to test your work around as proof of concept ... it did work in part in that the admin screen no longer showed errors and listed "E-Mail Addresses with Multiple User Accounts" but then when i tried to add emails to an account, i got the error - "Sorry, that email address is already used!" - regardless of whether checkbox was checked for "Allow multiple accounts for everyone?" was on or off and if multi-account emails were listed in the text area ...

    i find it a bit odd that WordPress seems to pride itself on "backward compatibility" but not so in this case ... i'm also uncertain why they cancelled the user_row function so will trust in process that they made decision for some valid reason but ..??..

    ditto with regards to plugin author ... if it ever gets fixed, then i might come back to this but as it is, my current experiences are inspiring me to create my own functions routines but i digress :>0 cheers - chuck scott

  6. jtarrier
    Member
    Posted 3 years ago #

    @cassiedong Thanks for the patch Cassie.

    I have rebuilt the plugin ZIP file with the patches and tested it on one of my WordPress sites - works like a charm.

    If anyone would like the patched ZIP, send me a message.

    All the best,

    Jeremy

  7. kylef55345
    Member
    Posted 3 years ago #

    Jeremy

    Yes I would like to use the patched ZIP. I am at kylef55345@gmail.com. Do any other changes need to be made or will the plugin work after installation?

  8. jtarrier
    Member
    Posted 3 years ago #

    Hello Kyle,

    I have emailed the patched version.

    Please note that you use this at your own risk, I do not warrant its fitness for purpose nor accept liability for its use or consequences thereof in any shape or form.

    I don't have a WPMU installation so I have no idea if it would work. All I did was implement the patches as described in the forum.

    Hope it works out for you,

    Best regards,

    Jeremy

    [sig moderated as per the Forum Rules]

  9. mmorneau
    Member
    Posted 3 years ago #

    Hi Jeremy,

    I'd like to apply the patch to a WPMU installation if you don't mind. Can you please send it to morneau.mike@gmail.com?

    Thanks,
    Mike

  10. Lorelle
    Member
    Posted 3 years ago #

    Please, in accordance with forum rules, could the person with the fix please paste the fix in a pastebin file instead of people posting their email addresses? I've found others posting questions requesting a fix for this Plugin, and I've contacted the author, but the rest of us would love access to the solution.

    Thanks!

  11. aleecel
    Member
    Posted 3 years ago #

    Hello! I would really like to get a copy of the patched version. Any updates on if it will get published soon? Thanks.

  12. jtarrier
    Member
    Posted 3 years ago #

    Hi Lorelle, Aleecel

    I am not the author of this plugin but I have incorporated the fix identified by @cassiedong.

    Unfortunately some overzealous moderator has removed the fix she posted here with some terse comment "[Code moderated as per the Forum Rules. Please use the pastebin]" but without a useful link or details on how to achieve that task.

    I have sent the patched plugin out to some of the other folk posting here but (for the benefit of the moderators) I am not the author and so cannot make an official release of the plugin.

    Until the original author makes a fix (or one of the moderators is a bit more polite and explains how to put the modified plugin back into the WordPress.org system) you can send me an email to jtarrier at yahoo dot com and I'll send you a copy.

    All the best,

    Jeremy

  13. Lorelle
    Member
    Posted 3 years ago #

    As requested, posting your email and such is also a violation of forum policy. Can you please share it by posting to http://pastebin.com/ which is the standard for sharing long lengths of code. It was what was requested originally, and used throughout the forum. We've used this method since the very beginning with the WordPress Support Forum. This would relieve you of the burden and help the rest of us so much. Thanks.

    I'm waiting to hear back from the plugin author.

  14. jtarrier
    Member
    Posted 3 years ago #

    Lorelle,

    I don't have the time or interest to figure out this pastebin.com stuff.

    Please send me a detailed description of what to do so I don't waste my time trying to figure it out.

    The other alternative is that I dump the patched version and all can wait until the plugin author releases an updated version.

  15. Lorelle
    Member
    Posted 3 years ago #

    I'm sorry. It takes less than 5 seconds to paste the code and set it for public view and hit submit, copy the generated link and paste it here. It's also how we work around here since pasted code gets messed up so easily when pasted to a forum.

    I'll nag the author more. Thanks for your help.

  16. jtarrier
    Member
    Posted 3 years ago #

    Hi Lorelle,

    I think we have a bit of a disconnect here.

    I have a patched version of the plugin. Wouldn't it be better if the patched plugin could be made available?

    Can that be done via pastebin.com or can you get it into the main repository somehow?

    Thanks,

    Jeremy

  17. jtarrier
    Member
    Posted 3 years ago #

    Hi everyone,

    Lorelle has succeeded in badgering me to paste the patch into pastebin.com

    (Lorelle, apologies if I seemed to give you a hard time. I'm hoping I've got the link right.)

    http://pastebin.com/Ubm6fyak

    I have uploaded the full code of the patched "allow-multiple-accounts.php" file so all you need to do is download /copy & paste the code in its entirety to "allow-multiple-accounts.php" and upload it to your server overwriting the original.

    Alternatively you could unzip the original plugin, replace the original "allow-multiple-accounts.php" with the new one, zip it up again and install it on as per normal.

    Lorelle: if you have no joy in contacting the original author, perhaps you can advise me on how to either take over the plugin or create a new entry in the repository. Perhaps some of the gurus at WordPress.org could point me in the direction of the replacement to the now undefined function user_row() so that I can come up with a more permanent compatible fix for WordPress 3.x

    Happy pasting!

    Jeremy

  18. Lorelle
    Member
    Posted 3 years ago #

    You rock!!! It looks brilliant. Going to try it this afternoon. This will help so many. I've let the author know about all your hard work. Scott is one of the most prolific WordPress Plugin authors in the community and maintaining all of them can be a headache. I've pointed him in your direction. Thank you so much!!!

    This will be less of a headache for you, I'm sure. You are the best!

  19. Amaury Balmer
    Member
    Posted 3 years ago #

    Hello,

    I make a version slighty different than jtarrier version.

    You can see it on pastebin :
    http://pastebin.com/w3bDTuf9

    PERFORMANCE are BETTER when you have a WordPress with many users !!!
    (i only get users with email counter > 2)

  20. jtarrier
    Member
    Posted 3 years ago #

    Hello Amaury,

    Thank you for posting your new and improved version. Your efforts will be greatly appreciated by everyone following this support thread.

    The code I posted on PastBin was simply a consolidation of the code snippet kindly posted here by @cassiedong (it's since been removed due to the posting rules) so that the plugin "just worked" with the emphasis on the word "just".

    All the very best,

    Jeremy

  21. Lorelle
    Member
    Posted 3 years ago #

    Don't you just LOVE the WordPress Community. :D You guys are awesome. Thanks so much.

  22. chuckingit
    Member
    Posted 3 years ago #

    @Lorelle ... ditto here on LOVE for the WordPress Community ... as fyi, i have had a lot of experience over the years with differing tech communities and i am truly amazed (a good thing) at the generousness, professionalism and responsiveness the WP community seems to resonate with ...

    technically, my only regret is that other teams, like local, state, national, and international governing bodies don't follow same suit of openness, transparency, accountability and just plain professionalism as exhibited here in these forums ...

    all the bogus emotional tirades, petty bickering, ineffective management, etc in US political channels certainly could learn a thing or two from mirroring WordPress community but i digress :>)

    having said that, the good news is that i think i read that massive amounts of gov't agencies are adopting WordPress for various internal and external networks ... so who knows, maybe our civic leaders will be inspired with elevated professionalism given their increasing participation with the rest of the WordPress community ...

    and no, i'm not picking on governing bodies as certainly their jobs are complicated and probably a great portion of them are under appreciated efforts ... yet when you look at Congressional Weiner's out there, who yell, lie, etc, you wonder if their game couldn't be improved by taking a page or two from WordPress community realities and best practices ... to be continued ... cordially, chuck scott

  23. Scott Reilly
    WordPress & Plugin Dev
    Plugin Author

    Posted 3 years ago #

    I've just released Allow Multiple Accounts v2.5. There were a number of bugfixes and improvements. Compatibility has been extended through WP 3.2.1 and compatibility has been added for BuddyPress (1.2+ and the coming 1.3).

    It fixes the user_row() bug many reported, and some things not mentioned. To the best of my knowledge, I've fixed all outstanding issues with the plugin. Please let me know if any further issues are encountered.

  24. jtarrier
    Member
    Posted 3 years ago #

    Hi Scott,

    Great to have you back at the wheel again.

    Thanks for the new release. I look forward to downloading it shortly. It really is a treasure when creating and testing sites.

    All the best,

    Jeremy

  25. Scott Reilly
    WordPress & Plugin Dev
    Plugin Author

    Posted 3 years ago #

    And thank you Jeremy for providing help to those who were having problems with the plugin due to its delayed compatibility update. All should be set right once again, or let me know if something hasn't been.

  26. Lorelle
    Member
    Posted 3 years ago #

    Thanks, Scott, for the update. For those tracking the conversation, this is the link: http://wordpress.org/extend/plugins/allow-multiple-accounts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic