uploading attachments problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinberkley
    Member
    • Sep 2003
    • 38

    uploading attachments problem

    ok i have searched and searched on this one. none of the solutions help to fix my problem. this started happening all of a sudden. about two weeks ago

    i get "invalid image" when i try and upload. the type of attachments allowed are gif, jpg, and bmp. sometimes images do get through but appear in the post all garbled up. i have attached some pics of what it looks like when the image does get attached

    i sent my host this link to a thread that talks about plesk and upload problems. he changed what needed to be changed and it still does not work.



    anything else i can try guys?
    Attached Files
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Are it the thumbnails that look weird, or the attachment when you click on their link? Or is this how they show IN the post (without thumbnails, but inline) ?

    Comment

    • Steve Machol
      Former Customer Support Manager
      • Jul 2000
      • 154488

      #3
      This is definitely a server issue. In the Admin CP, open the Server Settings and Optimization Options section and turn on the Public phpinfo() Display Enabled setting. Then provide the URL to your forums. This may help us troubleshoot this problem.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment

      • colinberkley
        Member
        • Sep 2003
        • 38

        #4
        done.

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          I'm not sure if this is the cause of the problem or not, but you have open_basedir restrictions on your server. To get uploads to work you need to create a 'tmp' subdirectory under your httpdocs directory and chmod it to 777. Then in the Admin CP set "Upload In Safe Mode?" to 'Yes' and point the "Safe Mode Temp Directory" to that directory. If you placed the tmp directory in the right place, the path to the Safe Mode Temp Directory will be:

          /home/httpd/vhosts/steroidsupport.com/httpdocs/tmp
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

          • colinberkley
            Member
            • Sep 2003
            • 38

            #6
            i asked my host to do that a few days ago. this is what he replied.

            "Yes it does make sense, but open_base_dir is already set at
            php_admin_value open_basedir
            "/usr/local/psa/home/vhosts/steroidsupport.com/httpdocs:/tmp"
            I have set upload_tmp_dir for your domain to /tmp

            Everything should be working.

            Regards,
            "

            could i be pointing to the wrong directory?

            Comment

            • colinberkley
              Member
              • Sep 2003
              • 38

              #7
              Originally posted by floris
              Are it the thumbnails that look weird, or the attachment when you click on their link? Or is this how they show IN the post (without thumbnails, but inline) ?
              yes in the post floris.

              Comment

              • colinberkley
                Member
                • Sep 2003
                • 38

                #8
                Originally posted by colinberkley
                yes in the post floris.
                i have tried again to use safe mode i get the following error.


                Warning: move_uploaded_file(): open_basedir restriction in effect. File(/usr/local/psa/home/vhosts/steroidsupport.com/httpdocs/tmp/37fd1e607fe0eb346e3fbd07fe04f15c) is not within the allowed path(s): (/home/httpd/vhosts/steroidsupport.com/httpdocs:/tmp) in /home/httpd/vhosts/steroidsupport.com/httpdocs/forum/includes/functions_file.php on line 225

                Warning: filesize(): open_basedir restriction in effect. File(/usr/local/psa/home/vhosts/steroidsupport.com/httpdocs/tmp/37fd1e607fe0eb346e3fbd07fe04f15c) is not within the allowed path(s): (/home/httpd/vhosts/steroidsupport.com/httpdocs:/tmp) in /home/httpd/vhosts/steroidsupport.com/httpdocs/forum/includes/functions_file.php on line 231

                Comment

                • colinberkley
                  Member
                  • Sep 2003
                  • 38

                  #9
                  ok corrected the path. i now get this.

                  Warning: move_uploaded_file(/home/httpd/vhosts/steroidsupport.com/httpdocs:/tmp/9356416a748948b6dd3d316aa2069ab3): failed to open stream: No such file or directory in /home/httpd/vhosts/steroidsupport.com/httpdocs/forum/includes/functions_file.php on line 225

                  Warning: move_uploaded_file(): Unable to move '/tmp/phpc9F4ws' to '/home/httpd/vhosts/steroidsupport.com/httpdocs:/tmp/9356416a748948b6dd3d316aa2069ab3' in /home/httpd/vhosts/steroidsupport.com/httpdocs/forum/includes/functions_file.php on line 225

                  Warning: filesize(): Stat failed for /home/httpd/vhosts/steroidsupport.com/httpdocs:/tmp/9356416a748948b6dd3d316aa2069ab3 (errno=2 - No such file or directory) in /home/httpd/vhosts/steroidsupport.com/httpdocs/forum/includes/functions_file.php on line 231

                  Comment

                  • colinberkley
                    Member
                    • Sep 2003
                    • 38

                    #10
                    steve used the path you gave me "/home/httpd/vhosts/steroidsupport.com/httpdocs/tmp"

                    seems to working now. thanks for all your help.

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #11
                      Originally posted by colinberkley
                      steve used the path you gave me "/home/httpd/vhosts/steroidsupport.com/httpdocs/tmp"

                      seems to working now. thanks for all your help.
                      I figured you'd eventually get around to this.
                      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                      Change CKEditor Colors to Match Style (for 4.1.4 and above)

                      Steve Machol Photography


                      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...