We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15159
    • 93 Posts
    OK, Love the way DocMan can fill the solution issue I have. However, making it work is becoming a trial.... I have weblogin, Docman installed. But, when I have logged in and click Add File absolutely nothing happens... Stays at same page no link change nothing. Anyone, have any suggestions? I am hard against a tomorrow deadline on this one... smiley Thanks in advance for any suggestions.

    JT
    • Where did you download the package from? I will get it and install it myself and see what’s going on.
        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
        • 15159
        • 93 Posts
        First from your website, then from the Modx website... It acctually appears to be just loading the same (parent) page. When I open the add file link in a new window or tab it just opens the page the Docman call is in. I have tried this in both IE and FF
        • This is very odd; I just downloaded it and installed it fresh, and it’s working as expected. Are you sure that you created the groups and users per the readme file? (although if not you shouldn’t see the menus at all)


          Can you provide a link?
            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
            • 15159
            • 93 Posts
            I have no doubt I have properly mussed something up I just cant puzzle it out...

            http://immanuelumc.org/modx/index.php?id=29


            user QDavis
            Pass zzzzzz

            • Very strange. I’ve sent you a PM.
                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
              • You will also need to take care of a couple of bugs in the MODx parser,

                http://modxcms.com/forums/index.php/topic,1942.msg20513.html#msg20513

                If you don’t want to do that, you’ll need to put a couple of lines in your template head to include the docman css file and the javascript file:

                assets/snippets/docman/js/selections.js

                assets/snippets/docman/style/docman.css

                I would also recommend adding this:

                <!--[if lte IE 6]>
                <style type="text/css" media="screen, tv, projection">
                body { behavior: url(assets/js/csshover.htc); }
                </style>
                <script type="text/javascript" src="assets/js/sleight.js"></script>
                <![endif]-->


                I put that last in all my templates, it make IE play nice with dropdown menus and such.
                  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
                • The problem turned out to be a fault in my documentation. The snippet must be uncached; either put it in an uncached page or call it with the non-caching tags:

                  [!DocMan!]
                    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
                  • You might want to create a few categories before uploading any files. And make sure the data folder in the docman directory has full write permissions.
                      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
                      • 15159
                      • 93 Posts
                      Well, fixed one problem. Now I get this on upload.


                      « MODx Parse Error »
                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »

                      PHP error debug
                      Error: move_uploaded_file(/modx/assets/snippets/docman/data7.dat): failed to open stream: No such file or directory
                      Error type/ Nr.: Warning - 2
                      File: /Users/iumcwebmaster/modx/assets/snippets/docman/includes/add.php
                      Line: 33
                      Line 33 source: if (move_uploaded_file($_FILES[’file’][’tmp_name’], $uploadfile)) {

                      Parser timing
                      MySQL: 0.0571 s s (34 Requests)
                      PHP: 0.1320 s s
                      Total: 0.1891 s s