"Uploading from URL" Problem...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raiderlax
    Senior Member
    • Sep 2006
    • 430
    • 3.6.x

    "Uploading from URL" Problem...

    When I try to upload a file from a URL and press upload I get this error at the top of the upload box:

    PHP Code:
    Warningtempnam() [function.tempnam]: open_basedir restriction in effectFile() is not within the allowed path(s): (/home/tfit/:/tmp:/usr/local/lib/php/) in /includes/class_upload.php on line 346 

    Please how do I fix this?

    Also know, that uploading files from your computer DOES NOT bring about this problem...
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    open_basedir is a restriction in PHP. Your host will need to adjust that setting to include any directories involved in file uploads. The error doesn't say which directory it's trying to use though. Maybe it's your upload_tmp_dir which can be seen in your phpinfo:

    Admin CP -> Maintenance -> View PHP info

    Or maybe you have specified a safe mode directory:

    Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Safe Mode Temporary Directory

    Comment

    • raiderlax
      Senior Member
      • Sep 2006
      • 430
      • 3.6.x

      #3
      My specified Safe Mode Temporary Directory is /tmp.

      I can't see where upload_tmp_dir is in the view php info... the problem is still occurring what do I do now?

      Thanks for helping.

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Just do a CTRL + F on the phpinfo page and search for "upload_tmp_dir". That should find it.

        Comment

        • raiderlax
          Senior Member
          • Sep 2006
          • 430
          • 3.6.x

          #5
          oh okay thanks I found it, now for the values their set to No Value

          What do I do now?

          Comment

          • raiderlax
            Senior Member
            • Sep 2006
            • 430
            • 3.6.x

            #6
            any help please?

            Comment

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

              #7
              You (as root) or your host will need to edit php.ini and set 'upload_tmp_dir' to point to the full path to a directory on the server that is chmod'd to 1777.

              You will also need to restart Apache after making this change.
              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...