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

    Can anybody tell me how I can achieve the following:

    A manager user with permissions to create, edit, save, publish, un-publish, delete documents and also only be able to use an assets/images folder to add images to documents via Tinymce.

    I've tried this on sites that already have content and I've run into a brick wall at the assets/images bit and also run into the odd bug here and there regarding pre-existing policy templates that aren't selectable where they should be.

    This time round I'm working on a blank site - no packages yet in place - I understand this is the best time to set up users.

    All in all it's left me a little confused and any help would be much appreciated.
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
    • To limit users to a specific folder in the file system, you'll need to create a Media Source for it, then assign that Media Source to your group. Assign all the other media sources, including the default Filesystem, to another group that your Admin users belong to.
        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
        • 36582
        • 463 Posts
        Thank you Susan. As soon as I do this I start running into errors. A pop up message in the manager that says this:

        "Internal Server Error

        The server encountered an internal error or misconfiguration and was unable to complete your request.

        Please contact the server administrator, www.123-support.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

        More information about this error may be available in the server error log."

        There was nothing in the error log so I ran set up again and now I have an error:

        [2013-06-14 12:41:10] (ERROR @ /connectors/security/user.php) Could not get table class for class: modAccess
        [2013-06-14 12:41:10] (ERROR @ /connectors/security/user.php) Could not get table name for class: modAccess
        [2013-06-14 12:41:10] (ERROR @ /connectors/security/user.php) Error 42000 executing statement:
        Array
        (
        [0] => 42000
        [1] => 1064
        [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 2' at line 1

        ...which is similar to

        http://forums.modx.com/thread/?thread=77606&page=1

        I've had similar problems with a different host
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • 20371
          • 58 Posts
          Did you sort this out already?

          An "internal server error" can be caused by a bunch of things, but not usually by MODx itself. The logs it refers to are server logs, not the Modx error log. Which log did you check? On a shared host, they will usually dump your account logs somewhere.. should be pretty easy to find. As a rule an internal server error will generate something in your logs.

          Given you were trying to create a media source when this popped up. If, say, your on a shared server and created a media source with a base path that your account didn't have access to, you could very likely generate an internal server error.

          Re: your reinstall pooping out.. looks like it's because of the shared environment. Did you drop the old database/tables before you started?
            • 36582
            • 463 Posts
            I tried with 3 new databases (completely clean installs) Mr501 and I eventually realised (yesterday) that this was not a Modx issue. It seemed permissions were completely messed up and the third time I installed I suspected the server environment was taking a nose dive as files were going missing after FTP - upload then gone!

            The hosts eventually listened to me and sorted it all out very quickly once they realised they had a problem. I believe there was also a problem with the base path as miraculously the holding page pointed somewhere else for a while and then suddenly was corrected.

            I'm just a bit nervous about trying to create a media source again with this host and may take a slightly different route.
              Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
              • 3749
              • 24,544 Posts
              It's not uncommon to have missing and/or corrupted files when you transfer them individually with FTP.

              See this for another method: http://bobsguides.com/modx-upgrade-faq.html. It's for upgrades, but the file-transfer method is good for new installs as well.
                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
                • 20371
                • 58 Posts
                Quote from: chrisandy at Jun 24, 2013, 06:42 PM

                I'm just a bit nervous about trying to create a media source again with this host and may take a slightly different route.

                If the problem was fixed by support, then it's unlikely that creating a media source caused the problem.

                It's very frustrating (not to mention counter productive) to work with something you're scared of breaking. What happens if your site breaks once it's live? If you've lost faith in your host, you should consider changing. If you want a shared environment, I strongly recommend choosing one recommended by MODx.

                That said, glad this problem is resolved.. good luck!
                  • 36582
                  • 463 Posts
                  The thing is my first installation went without a hitch - everything was running fine. I then created a media source and that's when errors began to creep in - after that it was just mayhem even with two other clean installs on clean databases.

                  I've never had files just disappear using FTP - maybe I've been lucky! The second install was done by uploading a zipped file - I unzipped it on the server through the host's file manager - half the directories were missing! so I reverted back to uploading each directory to one level deep but the permissions turned out to be non-existent or random.

                  By the third attempt it was obvious that something was wrong as it was a completely clean install with a fast FTP connection and files were still dropping out / permissions messed up.
                  I could try media sources again but if it disintegrates again I could be back into the same cycle. I've got to reiterate: I don't think it's a Modx problem as such.
                    Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk