Announcement

Collapse
No announcement yet.

No file uploaded and no local file found. The test cannot continue

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    No file uploaded and no local file found. The test cannot continue

    My forum is new and I just got someone to register. They registered successfully but aren't able to upload the avatar.

    Upon checking and uploading the image in Maintenance > Diagnostics > Upload ------ I get the following results.
    Pertinent PHP Settings
    file_uploads: On
    open_basedir: None
    upload_tmp_dir: None
    upload_max_filesize: 20.00 MB
    Results
    No file uploaded and no local file found. The test cannot continue.
    Upon checking the Settings > Options > Server Settings & Optimization Options

    I've open_basedir Upload Enabled set to YES

    open_basedir Temporary Directory set to /tmp

    Although there wasn't any tmp directory which I created in the /home/mysite/public_html/ and gave it the permission of 777

    Edited the php.ini which is present in /home/mysite/public_html/ and added the following lines:
    open_basedir = "/home/mysite/:/usr/lib/php:/home/mysite/public_html/tmp/"
    upload_tmp_dir = "/home/mysite/public_html/tmp"

    No idea if I did the last step correctly or not because in PHPmyinfo file, open_basedir still shows as None.

    Could someone please help me resolve this avatar uploading problem which is getting originated through any of the above settings.

    I need to know how to correctly set the path for open_basedir and any other settings that is required to be done and followed.

    Really need desperate help.
    Last edited by keyuramin; 01-08-2018, 05:17 AM. Reason: Added upload_tmp_dir path

    #2
    I believe when you edit php.ini you have to restart the web server.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      I have edited PHP.ini file and have restarted the Apache web server multiple times after that. But still no success.

      Comment


        #4
        Go to admincp/avatars/picture storage type
        make sure the directories are chmod 777
        altough i prefer to set the storage type to database never had any errors this way
        Wise men say nothing Fools never listen

        Comment


          #5
          Thanks for the suggestions guys. I have finally got this working.

          I did the following:
          Unticked open_basedir Upload Enabled in Settings > Options > Server Settings and Optimization Options
          Changed the open_basedir path to /home/mysite/public_html/tmp

          And now it works perfectly fine.

          Comment

          Users Viewing This Page

          Collapse

          There is 1 user viewing this forum topic.

          • Guest Guest

          Latest Posts

          Collapse

          Working...
          X
          Searching...Please wait.
          An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

          Please push the back button and reload the previous window.'
          An unexpected error was returned: 'Your submission could not be processed because the token has expired.

          Please push the back button and reload the previous window.'
          An internal error has occurred and the module cannot be displayed.
          There are no results that meet this criteria.
          Search Result for "|||"