We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1527
    • 8 Posts
    Susan,
    thanks for the quick reply. Stupid of me. But it still does not work. Same error.

    drw-rw-rw- 3 root daemon 512 Oct 26 17:19 uploads


    Andreas
      • 25663 MODX Staff
      • 12,272 Posts
      Folders also have to be executable (777) in order to work, looks like your folder permissions above are 666.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 26435
        • 1,193 Posts
        Quote from: rthrash at Oct 27, 2006, 09:27 AM

        Folders also have to be executable (777) in order to work, looks like your folder permissions above are 666.

        yeah...
        Sorry about that. This is one of probably many areas I didn’t even think to document. The entire "skingraft" folder and all of it’s subdirectories should be set to 777.

        Thanks for fielding support Susan and Ryan. SkinGraft 1.0 should be ready for distrobution by the end of this weekend, and will be able to install chuncks and tvs with the template.

        I am going to reccomend a naming convention for designers who include chunks and tvs in their templates. If the templat name is SDisCool, the chunks and tvs should be called {{SDisCool_foot)), [*SDisCool_sidebar*]] so we don’t overwrite and destroy peoples existing chunks and tvs. does that seem appropriate? I would love some ideas on this before I publish it.

        -sD-
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages
          • 1527
          • 8 Posts
          Same error. embarrassed

          ls -l
          total 616
          drwxrwxrwx 2 root daemon 512 Oct 26 17:19 .DAV
          -rwxrwxrwx 1 root daemon 6148 Oct 26 17:19 .DS_Store
          -rwxrwxrwx 1 root daemon 82 Oct 26 17:19 ._.DS_Store
          -rwxrwxrwx 1 root daemon 82 Oct 26 17:19 ._preview.jpg
          -rwxrwxrwx 1 root daemon 249171 Oct 26 17:19 pclzip.lib.php
          -rwxrwxrwx 1 root daemon 18122 Oct 26 17:19 preview.jpg
          -rwxrwxrwx 1 root daemon 632 Oct 26 17:19 save.gif
          drwxrwxrwx 3 root daemon 512 Oct 27 09:43 uploads
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Andreas, for some reason your system is having a problem with the uploaded file. Have you been able to upload other files using scripts? I’ve used this on a local MAMP server as well as a standard Linux shared-hosting server with no (other!) problems.
              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
              • 26435
              • 1,193 Posts
              Thanks to Kylejae for finding this *bug*

              If you are using XAMPP in your local testing environment, It may not be compiled with the necessary binaries for extracting zip archives, which the MODx Resource Wizard is dependent on. As such, this module may not work on your local testing servers. Almost all hosting services capable of supporting a MODx installation will be complied correctly to support the MODx Resource Wizard.

              -sD-
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: Scotty at Oct 11, 2006, 10:48 AM

                @Susan & Open Geek: I added $dbase = trim($dbase, "`"); after the config file is included. I already took the backticks out of my config files on all my installations (because of this problem) so I can’t tell if this is a proper solution. Is this what you two would suggest?
                You need the backticks in the config file. You need to call str_replace(’`’, ’’, $dbase) when you use it where it doesn’t need backticks, though I can’t think of too many places it should be used without them if you want to avoid MySQL errors with certain characters that are allowed in db names.

                Otherwise, you’d need to add them everywhere you do need them.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Is str_replace better in this case than trim()? I always use trim($dbase,’`’) in my scripts that need this.
                    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
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: sottwell at Oct 27, 2006, 10:50 AM

                    Is str_replace better in this case than trim()? I always use trim($dbase,’`’) in my scripts that need this.
                    Not sure which is better, but a quick test in a php file would probably tell us which is faster... Likely, your trim approach is fine and probably a little faster.
                      • 1527
                      • 8 Posts
                      Quote from: sottwell at Oct 27, 2006, 10:02 AM

                      Andreas, for some reason your system is having a problem with the uploaded file. Have you been able to upload other files using scripts? I’ve used this on a local MAMP server as well as a standard Linux shared-hosting server with no (other!) problems.

                      Yep. Currently use cmsmadesimple and I have uploaded > 1000 files.
                      Running modx on the same server parallel for about 1 year for testing.
                      OpenBSD 4.0, MySQL 5.0.24, php5

                      I looked at SkinGraft beta2 and $dbase = trim($dbase, "`"); is included in it.

                      What should I try next?

                      Thanks,
                      Andreas