We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38666
    • 98 Posts
    I have installed ClassExtender, created the table for the extended user data and activated the plugin. The extended fields and input form appears when editing users but when we attempt to save the input all appears fine but, the data is not stored in the extended table. There is nothing in the error logs to indicate what the problem may be.

    Can anyone offer a solution?

    Thanks

    This question has been answered by multiple community members. See the first response.

      Give a man the answer, and he’ll only have a temporary solution. Teach him the principles that led you to that answer, and he will be able to create his own solutions in the future.
    • discuss.answer
      • 3749
      • 24,544 Posts
      Is the ExtraUserFields plugin enabled (activated)? Just right-click on it in the tree to check.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 38666
        • 98 Posts
        Quote from: BobRay at Feb 11, 2015, 05:25 PM
        Is the ExtraUserFields plugin enabled (activated)? Just right-click on it in the tree to check.
        Thanks Bob, but if it wasn't enabled I wouldn't have the fields available to fill in and know it wasn't saving. After several sleepless hours last night the only thing I can think of doing between having the data saved to the ext_users_data table and not saving was tinkering with the table collation setting on one of my 'lookup' tables for building a drop-down list for an extended user field to try to show French accents rather than some odd ASCII rendering of their values. I don't know if this would make the difference between saving the data or not. I'm a bout to attempt to reset things back as they were. Watch this space as they say.....
          Give a man the answer, and he’ll only have a temporary solution. Teach him the principles that led you to that answer, and he will be able to create his own solutions in the future.
          • 3749
          • 24,544 Posts
          The only other thing I can suggest is to make sure the names (as in <input name="some_name") in the Tpl chunk exactly match the field names in the custom DB table. You've probably done that already.

          A character set issue could be a cause, but it's kind of a long shot. SiteCheck would tell you if there's a mismatch.

          It might also be mod_security if there is a field name in the extra fields that mod_security doesn't like.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 38666
            • 98 Posts
            Quote from: BobRay at Feb 12, 2015, 05:15 PM
            The only other thing I can suggest is to make sure the names (as in
            Thanks again Bob.

            After another day of head banging I can't say I'm any further along. I did run SiteCheck which picked up a few things but nothing relevant to my current problem.

            At least I have worked out a plan B which will get my client off my back until I get the 'ExtraUserFields' plugin behaving as it should. I used the same Tpl chunk so there are no conflicts with the field names in the custom DB table.

            I can't say it has all been a wasted effort, just frustrating, as I am gaining a renewed understanding of Modx and PDO which has to say the least become very rusty over the past few years. The path to Bob's Blog is becoming 'very deep and wide' and my copy of MODX The Official Guide is getting well worn! I, for one really appreciate all the effort you have put into these projects.

            Jim
              Give a man the answer, and he’ll only have a temporary solution. Teach him the principles that led you to that answer, and he will be able to create his own solutions in the future.
              • 3749
              • 24,544 Posts
              Thanks for the kind words. I'm sorry I couldn't be more help.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 38666
                • 98 Posts
                Quote from: BobRay at Feb 13, 2015, 10:13 PM
                Thanks for the kind words. I'm sorry I couldn't be more help.
                No problem we will get it in the end, and your Disgustingly Foolproof Bread is half bad either!
                  Give a man the answer, and he’ll only have a temporary solution. Teach him the principles that led you to that answer, and he will be able to create his own solutions in the future.
                • discuss.answer
                  • 38666
                  • 98 Posts
                  I had a chance to get back to this one today and I have found the problem. I had five SuperAdmin-like users that I didn't want in the extended table. This caused an id match error, in fact the data was being updated just five entries further down the table. Sometimes we can't see the forest for the trees!

                  Thanks to all for their help and input.
                    Give a man the answer, and he’ll only have a temporary solution. Teach him the principles that led you to that answer, and he will be able to create his own solutions in the future.