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

XF 1.1 Attachments stuck at 0%

Discussion in 'Troubleshooting and Problems' started by ChemicalKicks, Nov 6, 2011.

  1. ChemicalKicks

    ChemicalKicks Well-Known Member

    Upgraded to 1.1 b4 and now attachments don't work, well partially anyway. My users and I all find that trying to upload from a PC/laptop doesn't work. Uploading from mobile does work though so it couldn't be a permissions issue it must be something else.

    Any ideas?
     
    Shelley likes this.
  2. Shelley

    Shelley Well-Known Member

    I've had a similar problem once or twice. Except it'll reach 100% and remain stuck at the 100% marker without displaying the contents which i just tried to upload.

    It's not really a big issue but something i noticed that happened twice on my test board.
     
    jmurrayhead and ChemicalKicks like this.
  3. ChemicalKicks

    ChemicalKicks Well-Known Member

    This is bugging me tbh, could it have something to do with my config? I'm serving stuff up from a static domain and I remember having to change paths about.
     
  4. ChemicalKicks

    ChemicalKicks Well-Known Member

    Right, it's definitely something to do with the config.

    When I remove this code the uploads work.

    Code:
    $config['externalDataPath'] = 'data';
    $config['externalDataUrl'] = 'http://static.xxx.org/data';
    $config['javaScriptUrl'] = 'http://static.xxx/js';
     
  5. ChemicalKicks

    ChemicalKicks Well-Known Member

    Ideally I'd like to continue serving content from my static domain, does anyone know how to have static content enabled and have attachment uploading working?
     
  6. optrex

    optrex Active Member

    I get this at work, so presumed it was a proxy thing, using FF8
    I have the same configuration at home and its fine, so is my work version using IE8
     
  7. ChemicalKicks

    ChemicalKicks Well-Known Member

    Unfortunately my issue isn't browser related.
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Data is written to the externalDataPath. Make sure the data directory is fully writable, including all subdirectories. Most FTP programs can recursively set permissions. Or if you have shell access to the server then run these shell commands from the forum directory:

    Code:
    chmod -R 777 ./data/
    chmod -R 777 ./internal_data/
    
    Also check the log for errors:

    Admin CP -> Tools -> Server Error Log

    Also try removing javaScriptUrl so it uses local javascript. And run a file check to ensure the files are correct (which also checks local javascript):

    Admin CP -> Tools -> File Health Check
     
  9. ChemicalKicks

    ChemicalKicks Well-Known Member

    Hey Jake,

    Thanks for your reply, have you got static content working with 1.1 ?

    I contacted support and basically asked if there was a known issue with the paths above in the Beta, Mike replied. He said that there is a known issue and he recommended disabling the static host.
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Offloading the external data and javascript works fine. But there may be a problem with your external javascript which is why I suggest switching back to local javascript for troubleshooting purposes.
     
  11. ChemicalKicks

    ChemicalKicks Well-Known Member

    Missed that part Jake :)
     
  12. ChemicalKicks

    ChemicalKicks Well-Known Member

    Jake, I removed the line referncing the JS as you suggested and that works dude.
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Then there must be a problem with your external javascript. You should upload the original js from the zip file to be sure the files are correct and up-to-date.
     
  14. ChemicalKicks

    ChemicalKicks Well-Known Member

    On mobile so can't even nab the download package at the moment but I did tye file health check, everything is present that should be but will attempt this when I get home anyway.
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Note that the file health check only checks local javascript.
     
  16. ChemicalKicks

    ChemicalKicks Well-Known Member

    This is confusing then mate, I'm serving everything from the same webspace, just I'm using domain aliases to achieve the same serving of static content.
     
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In that case the file check does check your javascript. If the file check passes then we know the js files themselves are OK. There must be some other problem relating to the javaScriptUrl.

    Try loading the javascript directly using the locations in the page source. Make sure it's loading correctly.
     
    ChemicalKicks likes this.
  18. ChemicalKicks

    ChemicalKicks Well-Known Member

    This issue is now fixed with 1.1 b5 :)
     

Share This Page