Uploading Attachments Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • offline
    Member
    • May 2005
    • 60
    • 3.0.7

    Uploading Attachments Error

    When I try to upload an attachment I get this error...


    Code:
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/chattanoogans.com/httpdocs:/tmp) in /includes/functions_file.php on line 60
    Any thoughts?
    Chris Edwards

    Chattanooga Online Community
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    This sounds like a server issue that you need to have your host take care of.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

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

      #3
      You have open_basedir restrictions on your server. To get uploads to work you need to create a 'tmp' subdirectory under your main hosting 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:

      /var/www/vhosts/chattanoogans.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

      • offline
        Member
        • May 2005
        • 60
        • 3.0.7

        #4
        I don't think its on...

        Code:
        ; open_basedir, if set, limits all file operations to the defined directory
        ; and below.  This directive makes most sense if used in a per-directory
        ; or per-virtualhost web server configuration file. This directive is
        ; *NOT* affected by whether Safe Mode is turned On or Off.
        ;open_basedir =
        and safe mode is off.

        /tmp is 777
        Chris Edwards

        Chattanooga Online Community

        Comment

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

          #5
          It is on:

          Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/chattanoogans.com/httpdocs:/tmp) in /includes/functions_file.php on line 60
          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

          • offline
            Member
            • May 2005
            • 60
            • 3.0.7

            #6
            Almost there, Plesk adds open_basedir to the httpd configuration file. I removed it. Now I am getting....

            offline.jpg:
            Could not create file system directory to hold your attachment.

            Both /tmp and the attachments directory is set 777

            Thanks!
            Chris Edwards

            Chattanooga Online Community

            Comment

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

              #7
              This is pretty clear:

              Could not create file system directory to hold your attachment.
              That means this direcotry does not exist or it is not world-readable and writable.
              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

              • offline
                Member
                • May 2005
                • 60
                • 3.0.7

                #8
                How do I find out what directory its trying to reach?
                Chris Edwards

                Chattanooga Online Community

                Comment

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

                  #9
                  Perhaps you can tell me what you have done exactly? Also do you have root access to this server? If not, then you have no way of know what /tmp is set to.
                  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

                  • offline
                    Member
                    • May 2005
                    • 60
                    • 3.0.7

                    #10
                    Yes, this is one of my companies servers running centos 5.2 with plesk 8.3. The site was moved from a server that did not have plesk running on it. And yes I do have root access.
                    Chris Edwards

                    Chattanooga Online Community

                    Comment

                    • offline
                      Member
                      • May 2005
                      • 60
                      • 3.0.7

                      #11
                      I figured it out. I had the old servers path in the Attachment storage location. Thanks for the help.
                      Chris Edwards

                      Chattanooga Online Community

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      😀
                      😂
                      🥰
                      😘
                      🤢
                      😎
                      😞
                      😡
                      👍
                      👎