1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Upload File is Not Working?

Discussion in 'Troubleshooting and Problems' started by Jericho M, Jan 29, 2014.

  1. Jericho M

    Jericho M Member

    Hi!

    Need help. I just tried to upload file to my post but apparently it does not work. Below is the screenshot. I got no error message but every time I upload a picture or file it only gives me a long loading like what you see below.

    I try to refresh the page, Log out and log in again try to upload picture but same problem. Very long loading.


    screenshots.PNG

    I am expecting for this result after a few loading.
    screenshot.PNG
     
  2. Mike

    Mike XenForo Developer Staff Member

    Please try disabling the Flash uploader. Does it work then? If so, it may be something like mod_security interfering. This can potentially be disabled via .htaccess.
     
    Jericho M likes this.
  3. Jericho M

    Jericho M Member

    Hi Mike,

    Where can I found the Flash uploader?
     
  4. Jericho M

    Jericho M Member

    Found it! Thanks Mike. :)

    screenshot.PNG
     
  5. Jericho M

    Jericho M Member

    Uploaded successfully. :D

    screenshot.PNG
     
  6. Mike

    Mike XenForo Developer Staff Member

    It may be worth contacting your host. They should be able to identify why security rule is being triggered via their logs and tweak it.
     
  7. Silverhair

    Silverhair Member

    I seem to still be having a similar problem, except it still happens even after disabling the uploader. Any suggestions? At present it seems i cannot upload any pictures directly and must use a 3rd party site to do so, unless the pictures are from an old camera.
     
    Last edited: Jan 18, 2015
  8. Silverhair

    Silverhair Member

    I am using the newest version of XF, and was able to upload pictures just fine prior to the upgrade...
     
  9. Silverhair

    Silverhair Member

    I have disabled flash uploader, changed minimum file sizes, removed any restrictions on dimensions...

    The file uploads and shows just as a file in the upload in the attached files section, it will get to 100% and then nothing happens. It's not visible, if you try to create thread and leave the page there's nothing there, no picture, just an empty post?

    This is bizarre, I can upload old images from a crappy camera and it will work so it must be some file issue, but I can't find any more settings to change?

    Any help is appreciated...I am just using a regular nikon camera, .jpg files. Below is a screen shot of where the software basically freezes during upload.

    upload image issues.png
     
  10. Silverhair

    Silverhair Member

    Is there some way to change the allowable resolution of images for upload? Maybe this is part of the problem?
     
  11. Silverhair

    Silverhair Member

    Can someone from this forum, one of the moderators or techs tell me what settings you have here for your image uploads for your forum? It seems I can upload images to your forum, but not to mine.

    Perhaps if i set my settings to the same level you have yours at then it might fix the issue.

    thanks.
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    What do you have set for maximum file size and image dimensions?

    On my own site I have it set to 2048 for file size (KB) and 3456 x 2304 for width and height.

    Have you been able to upload the file in the screenshot above to this forum?
     
  13. Silverhair

    Silverhair Member

    yes. I took one sample picture thatwould not upload to my forum, and it uploaded fine to this forum. I will try those setting you posted above to see if it changes anything...
     
  14. Silverhair

    Silverhair Member

    still no go...seems to try to upload, gets to 100% and then stays there perpetually. it's bizarre...shouldn't it be resizing for me automatically? This forum does the way you guys have it set up here. Did you have to change something to achieve that?
     
  15. Mike

    Mike XenForo Developer Staff Member

    Does it work if you upload a small non-image file? If so, please disable the Flash uploader and disable JS entirely in your browser (temporarily, if possible). Then follow the upload process (which will behave differently now). If there's an error being triggered, this should show you.
     
  16. Silverhair

    Silverhair Member

    This is an example of the error messages I am getting:

    ErrorException: Fatal Error: Allowed memory size of 95531056 bytes exhausted (tried to allocate 28311553 bytes) - library/XenForo/Image/Gd.php:297
    Generated By: Monday at 8:32 PM
     
  17. Mike

    Mike XenForo Developer Staff Member

    That's a bit different. Your server has restricted the memory usage below the default (around 91M vs default of 128M), so you won't be able to resize particularly large images. You may need to contact your host to increase it.

    Otherwise, the only thing that can be done is to prevent that error. You can do this by inserting something like this into the library/config.php file:
    Code:
    $config['maxImageResizePixelCount'] = 14000000;
    That represents the maximum number of pixels in an image before we just don't try to resize it due to memory issues. (The default is 20 million, which is 20 megapixels.)
     
  18. Silverhair

    Silverhair Member

    Thanks Mike, so this is a server side issue then...I will look into it.
     
  19. Silverhair

    Silverhair Member

    Just a quick follow up question here, before I start looking into the server side of things...

    If this error is due to my server, why is it my wordpress page allows me to upload these same pictures without any errors? (My WP site is on the same server...)
     
  20. Silverhair

    Silverhair Member

    Ok, so looked into things with my server/host, they pointed out that this does happen on occassion with xenforo and that a quick google search would provide some examples of that. They then informed me that I need to contact you guys and work on getting a "php ini" file or something to that effect in order to fix this.

    Should i be submitting a ticket to you guys for this?
     

Share This Page