Upload avatars problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TypeStaff
    New Member
    • Apr 2006
    • 12
    • 3.6.x

    Upload avatars problem

    Hi! I've installed vbulletin 3.6.8 in my website and all works ok but if I try to upload an avatar into with an url, it appears this error:

    Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/larihon/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/) in /includes/class_upload.php on line 346

    and this vbulletin message:

    Upload failed due to failure writing temporary file.

    I re-uploaded the /includes/class_upload.php file but the problem persists.

    Sorry about my english, anyone could help me, please? Thank you very much!
  • optrex
    Senior Member
    • Aug 2005
    • 244
    • 3.6.x

    #2
    you need the open_basedir tweak in cpanel disabled.

    Comment

    • TypeStaff
      New Member
      • Apr 2006
      • 12
      • 3.6.x

      #3
      Sorry but I don't understand your answer. Could you please explain it with more details or with other words? thank you very much and really sorry.

      Comment

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

        #4
        Try a test upload:

        Admin CP -> Maintenance -> Diagnostics -> Upload

        Does the test upload fail? What are the results of the upload?

        Comment

        • TypeStaff
          New Member
          • Apr 2006
          • 12
          • 3.6.x

          #5
          Here goes a screen of the results:



          What's wrong? :S

          Comment

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

            #6
            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:

            /home/larihon/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

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