Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author anmari

    (@anmari)

    It looks like perhaps magic members are storing their data a little strangely? Look in phpmyadmin at the user meta table at a ‘practice area’ record for a sample user and let me know what the user meta value looks like. They may be serialising their data unnecessarily or something else weird.
    No need to serialise user meta: https://nacin.com/2010/04/18/wordpress-serializing-data/

    The plugin does try hard to cope with all kinds of odd data and dig down into arrays, but doesn’t anticipate all oddities.
    Clearly in this case, it is finding a string – the string is actually a serialised array.

    So either lean on magic members to correct the way they storing data as per nacin’s (wp developers post), or
    If you email some sample user meta data (keep the file small) I can look at coding an addon for magic members for a small fee (depends on complexity) as per these eg: https://wpusersplugin.com/related-plugins/, specifically Gravity does something similarly weird: https://wpusersplugin.com/downloads/amr-users-plus-gravity/ OR you can code your own – see info on website https://wpusersplugin.com/support/amr-users-documentation/

    Thread Starter supersonicx5

    (@supersonicx5)

    Thanks for the reply! Yes, it looks like, based on the article you sent me, that the magic members plugin is unnecessarily serializing the user meta (at least on the checkbox fields). Here is what I found as an example in one of the user meta fields for the ‘practice area’ record in phpmyadmin:

    meta_key – _mgm_cf_practice_area | meta_value – s:35:”a:1:{i:0;s:17:” Family Relations”;}”;

    I’m not sure what the best approach is to solving this. I am developing this website for a client and the client can request support for magic members to possibly have them fix the issue but I’d rather not go that route since the client is very busy and it would take more time to resolve the issue that way. Do you think the gravity forms add-on would solve the problem? Does it do something similar in terms of the unnecessary serialization? If so, I will go ahead and buy that add-on. If not, I don’t mind paying a small fee for you to create an add-on specifically for my issue if it’s not too complex. Let me know what you think is the best approach.

    Thanks,
    Mark

    Plugin Author anmari

    (@anmari)

    No the gf addon won’t fix it – it only fixes for gf some specific fields that had an unusual structure.

    if you email me ([email protected]) a small selected sql dump of the usermeta table records starting with ‘_mgm’ only for test users that have as much magic members data as possible, I’ll see if I can whip up an addon to allow reporting. Keep file small. Don’t need user table – just the meta.

    Thread Starter supersonicx5

    (@supersonicx5)

    Just letting you know that I sent you an email the other day with the sql dump. Please let me know when the addon is ready or if you need anything further from me.

    Thanks again!

    Plugin Author anmari

    (@anmari)

    I should be able to get something to you over the weekend.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Checkbox displaying code in field output’ is closed to new replies.