We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22286
    • 9 Posts
    I have installed 1.0.1, which was an upgrade from 1.0

    Currently I have a user that is editing resources. When he edits a resource’s content, the ’resource content’ area ceases to render on that page’s ’general’ tab. Not even an admin user can see it. The user has full editing and saving permissions.

    If an admin user hits ’save’, the ’resource content’ area comes back but is empty.

    Meanwhile, even though the resource content area doesn’t appear in the manager, the content is properly rendered on the front-end.
      • 22286
      • 9 Posts
      Generally a working page has a structure of something like:

      <div id="tabGeneral" class="tab-page" style="display: block;">
      <table width="680" cellspacing="5" cellpadding="0" border="0">
      </table>
      <div class="sectionHeader">Resource content</div>
      <div class="sectionBody">
      </div>
      <div class="sectionHeader">Template Variables</div>
      <div class="sectionBody tmplvars">
      </div>
      </div>


      Whereas this page has something like:

      <div id="tabGeneral" class="tab-page" style="display: block;">
      <table width="680" cellspacing="5" cellpadding="0" border="0">
      </table>
      </div>


      -----

      So the ’sectionHeader’ area doesn’t even get rendered. It isn’t just hidden, it’s missing entirely.

      -----

      I’m a web developer, so let me know if you want me to dig into something.

        • 22286
        • 9 Posts
        Oh, and I don’t have any extra plugins or modules installed.
          • 21257 MODX Staff
          • 730 Posts
          This seems really strange. I pulled up the relevant code, and at this point I can only think of a few things to ask:
          * is ManagerManager (now installed with 1.0.1) disabled?
          * if you look in your site’s db at the (prefix)site_content table, do the records for the resources in question all have their ’type’ field set to ’document’?
          * is the file manager/actions/mutate_content.dynamic.php 1184 lines long?
            Mike Schell
            Lead Developer, MODX Cloud
            Email: [email protected]
            GitHub: https://github.com/netProphET/
            Twitter: @mkschell
            • 31912 MODX Staff
            • 95 Posts
            I think I am running into a similar problem for manager users who are not set as administrators–such as publisher or editor. When they save the document the "type" and "contentType" fields are dropped in the database of modx_site_content table for the affected documents. I have run into this in a couple sites and couldn’t replicate the problem until I logged in using their account.
              • 31912 MODX Staff
              • 95 Posts
              netProphET, sorry didnt see your reply before I responded. in my case mute_content.dynamic.php is 1184 lines long and disabling managermanager doesn’t make a difference. If I change the user to have the Administrator role it seems to fix the problem.
                • 22286
                • 9 Posts
                In the db, ’type’ and ’content type’ are both empty for resources this user creates/edits.
                  • 22286
                  • 9 Posts
                  Yes. My mutate_content.dynamic.php file is 1184 lines long. Administrators do not suffer from this issue.
                    • 21257 MODX Staff
                    • 730 Posts
                    Aha.. thanks waldus68 and onyxrev.. that’s definitely a major clue. Now to replicate the problem.

                    Quote from: onyxrev at Oct 27, 2009, 08:13 PM

                    ...
                    I’m a web developer, so let me know if you want me to dig into something.

                    Since you mentioned it... tongue How about clicking on the Jira link in the top nav, creating an account and filing a bug report for this issue? That would be very cool.
                      Mike Schell
                      Lead Developer, MODX Cloud
                      Email: [email protected]
                      GitHub: https://github.com/netProphET/
                      Twitter: @mkschell
                      • 22286
                      • 9 Posts