We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24374
    • 322 Posts
    I get the error "No context save_document permission" in the NpEditButton on English pages, but not Spanish pages. I'm using Babel, and the weird thing is that English is the default context (web). The ACL lists for both the web and spanish contexts are exactly the same. I use NewsPublisher with other sites and it works fine. This is based on other sites I've done, and the problem surfaced after installing Babel. I've even made the ACL list for web match the one in the site with NewsPublisher working for the web context, and no luck.
    • I think NewsPublisher has to have some permissions to the manager context. http://bobsguides.com/newspublisher-tutorial.html
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 3749
        • 24,544 Posts
        Are you setting the &language property in the NewsPublisher tag?


        It could possibly be a DB charset/collation problem. Look at the tables and the fields in them (especially the Bablel tables if there are any) and make sure the encoding matches what MODX is using. If not, see this: http://bobsguides.com/convert-db-utf8.html


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          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
          • 24374
          • 322 Posts
          I'm not setting the &language property, but looking at the tables I see they are all latin_swedish! I always set things up in UTF8, so I don't know how this got messed up. The MODX manager has UTF8 set as the character encoding. There are no tables having to do with Babel. Anyway, I read your page but don't see anywhere to download the conversion script. Where do I get it?
            • 24374
            • 322 Posts
            OK, I found that, since MODX itself was set to UTF8, all the data was saved in UTF8 format, even though the tables were all set as latin1 swedish. So, I exported just the data, created a new install from scratch in a new UTF8 database, then imported the data into the new tables. Everything came in fine, and the text on the website is all fine. Even the funky permalinks that some of the Spanish pages had are fixed now. However, NewsPublisher now worked with NEITHER context! I flushed permissions, then cleared the cache, and now the Spanish side is working again, and the English side is still NOT working. Any other ideas????
              • 3749
              • 24,544 Posts
              What's happening when you try to run NewsPublisher?

              If your still getting the same permission error, it means there's a missing permission (save_document) in the Policy used by the Context Access ACL entry the users are operating under.


              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                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