We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21131
    • 50 Posts
    画像を投稿すると下記の様なエラーメッセージがでます。
    どのように対処すれば良いのでしょうか?
    宜しくお願いします。
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error:  mkdir() [function.mkdir]: 許可がありません 
      Error type/ Nr.:  Warning - 2 
      File:  /virtual/nekoaibo/public_html/assets/snippets/maxigallery/maxigallery.php 
      Line:  313 
      Line 313 source:  if(!mkdir($mg->path_to_gal, 0777)) {   
     
    Parser timing
      MySQL:  0.0011 s (9 Requests)
      PHP:  0.0204 s 
      Total:  0.0215 s
      • 21131
      • 50 Posts
      二重投稿なってしまいました。済みません
        • 33488
        • 429 Posts
        mkdirでエラーになっているので、その上のフォルダのパーミッションを変更すればいけるんじゃないかな
          • 21131
          • 50 Posts
          ZEROさん
          こんにちはパーミションを変更するとまた違うエラーメッセージが出ます。
          « 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() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10129 is not allowed to access /virtual/nekoaibo/public_html/assets/galleries/50 owned by uid 1000
          Error type/ Nr.: Warning - 2
          File: /virtual/nekoaibo/public_html/assets/snippets/maxigallery/maxigallery.php
          Line: 371
          Line 371 source: move_uploaded_file( $_FILES[’file’.$i][’tmp_name’] , $mg->path_to_gal.$name );

          Parser timing
          MySQL: 0.0011 s (9 Requests)
          PHP: 0.0161 s
          Total: 0.0171 s
            • 21131
            • 50 Posts
            問題解消致しました。
            CORESERVER.JPを借りているのですがサーバ側のファイル所有権の修正を行ったところ
            動くようになりました。有難う御座いました。