• 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%

ChemicalKicks

Well-known member
#1
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

Well-known member
#2
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?
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.
 

ChemicalKicks

Well-known member
#3
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.
 

ChemicalKicks

Well-known member
#4
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';
 

ChemicalKicks

Well-known member
#5
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?
 

optrex

Well-known member
#6
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
 

Jake Bunce

XenForo moderator
Staff member
#8
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';
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
 

ChemicalKicks

Well-known member
#9
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
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.
 

Jake Bunce

XenForo moderator
Staff member
#10
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.
 

Jake Bunce

XenForo moderator
Staff member
#13
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.
 

ChemicalKicks

Well-known member
#14
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.
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.
 

Jake Bunce

XenForo moderator
Staff member
#17
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.