We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23258
    • 6 Posts
    Hi @ all !

    I need some help....I RECIEVE SOME ERROR MESSAGE !!!!! sad

    When i try to install some templates with SkinGraph....and i recieve this error message :

    Warning: move_uploaded_file(/hsphere/local/home/xxxx/xxxx.ws/assets/modules/skingraft/tmp/Black_and_Blue_Template_1.zip): failed to open stream: Permission denied in /hsphere/local/home/xxxx/xxxx.ws/assets/modules/skingraft/sg.inc.php on line 349
    
    Warning: move_uploaded_file(): Unable to move '/tmp/phpLPiUuq' to '/hsphere/local/home/xxxx/xxxx.ws/assets/modules/skingraft/tmp/Black_and_Blue_Template_1.zip' in /hsphere/local/home/xxxx/xxxx.ws/assets/modules/skingraft/sg.inc.php on line 349
    There was an error. The file was not uploaded. Check the folder CHMOD.



    AND.... When i try to install some packages with MODx Resource Wizard, i recieve this message ERROR :

     Evaluation of your resource.
    
    Warning: move_uploaded_file(/hsphere/local/home//xxxx/xxxx.ws/assets/modules/wizard/eval/bbcode_plugin.modxpkg.zip): failed to open stream: Permission denied in /hsphere/local/home//xxxx/xxxx.ws/assets/modules/wizard/wizard.class.php on line 120
    
    Warning: move_uploaded_file(): Unable to move '/tmp/phpk5LqqH' to '/hsphere/local/home/xxxx/xxxx.ws/assets/modules/wizard/eval/bbcode_plugin.modxpkg.zip' in /hsphere/local/home//xxxx/xxxx.ws/assets/modules/wizard/wizard.class.php on line 120
    The MODx Resource Wizard package could not be uploaded to the server.
    


    Many thanks for your help smiley

    Philou83
      • 32632
      • 1 Posts
      I got the same error-- the problem is that the permissions level in your install folders aren’t correctly set. You’re probably using "755"-- they need to be "777"

      The cause (if you care) is that PHP usually executes under the user "nobody" or "www", neither of which have permission to write, move, or upload files (the only people that can do that under "755" are your username and root).

      Change the /assets/modules/wizard/ folder to "777" recursively (that is, for /wizard/ and for all files and folders underneath it) and the problems will stop.

      This is also the solution for install failures with SkinGraft that quote "sg.inc.php on line 349". Do "777" on /assets/modules/skingraft and folders and files underneath it and you can install.

      I’ve informed the author about this, and I’m pretty sure the docs will be upgraded to mention it.