We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    Revo 2.3.2

    Signed-in members can successfully create new Resources with NP. So far so good.

    When viewing the (new) Resource on the front-end some (not all) of the fields show incorrect values i.e., it differs from what was submitted via the NP form.

    When I (as admin) view the member-created resource in the Manager (specifically the TVs) the value of some of them (text fields and pickers) are indeed different. I'm not sure where these incorrect values are being pulled from. I've been doing a lot of testing: registering new members via the front-end, creating resources (as the member), and deleting resources and users (as admin) so I suppose it could be residual content from deleted accounts, but I'm guessing.

    Could this be a cache issue or a db problem? I'm not sure where to begin looking.

    This question has been answered by todd.b. See the first response.

      Todd
      • 3749
      • 24,544 Posts
      I've never seen that in any of my tests, but that doesn't mean it isn't a bug. Have you deleted anything in the DB (as opposed to doing it in the Manager)?

      Have you changed the names of any of the TVs?

      Have you changed the template used by any resources?
        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
      • discuss.answer
        • 40088
        • 708 Posts
        TV names have not changed (though I was sure that was the problem). No (recent) changes to the template/resources relationship or db deletions either (see below).

        When I looked at the 'modx_site_tmplvar_contentvalues' table I saw dozens of rows belonging to previously deleted member-created resources, and for whatever reason that's where the incorrect content was coming from. Since this project is still in development I decided to manually delete all the rows, then delete all member accounts and any member-created resources (all from the Mgr.). I then registered a new member and created a new resource (with NP) and it all seems to be back to normal, the front-end and Manager TV values match exactly.
          Todd
          • 3749
          • 24,544 Posts
          The modTemplateVarTemplate entries are supposed to be deleted when you delete the resource or the TV. I'm not sure why they weren't, but I don't think it has anything to do with NP -- all of it's TVs and Resources are created with the resource/create processor.
            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