[solved] Mediawiki unable to upload

Status
Not open for further replies.

muscovy

New Member
Messages
13
Reaction score
0
Points
0
Mediawiki unable to upload

Mediawiki says it is unable to upload. I checked around, and made sure the right folders are writeable, but it still gives errors. I read that it might be a php setting. Does anyone know?
 
Last edited:

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Re: Mediawiki unable to upload

What is the size of the file you're uploading? The last I checked x10Hosting only had PHP set to allow a PHP Upload Size of 2MB per file, afterwards the file would be dropped during upload if the file size was greater than 2MB. Try small files and see if they upload. If not, post back.
 
Last edited:

muscovy

New Member
Messages
13
Reaction score
0
Points
0
Re: Mediawiki unable to upload

I haven't even got that far yet, it just thinks I am totally unable to upload.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Re: Mediawiki unable to upload

I haven't even got that far yet, it just thinks I am totally unable to upload.

So, I'm taking this to the point where you've already enabled $wgEnableUploads inside of your LocalSettings.php file and you've pointed the MediaWiki file paths to the correct location, as well as verifying that the folders are writable right? Also to keep in mind, the file paths that MediaWiki uses are relative, not absolute :)
 
Last edited:

muscovy

New Member
Messages
13
Reaction score
0
Points
0
Re: Mediawiki unable to upload

Found it, it was a variable in /config/LocalSettings.php .
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Re: Mediawiki unable to upload

Found it, it was a variable in /config/LocalSettings.php .

Figured it was something in there. Glad it's been figured out :)
 

muscovy

New Member
Messages
13
Reaction score
0
Points
0
...and it's not working. I set the upload variable to true, and the images folder is 777'd (writable). It's not my cache, so I'm not sure why it still thinks uploading is disabled.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Check over your LocalSettings.php file again and make sure there aren't duplicate settings but with different values in the file. Also, check your DefaultSettings.php file for the same value and see if changing the value to that in enabled will fix it.
 

muscovy

New Member
Messages
13
Reaction score
0
Points
0
Here's the valid chunk of code. I'm not sure what the right setting is.

$wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
$wgUploadDirectory = false; ///< defaults to "{$IP}/images"
$wgHashedUploadDirectory = true;
$wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
$wgFavicon = '/favicon.ico';
$wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
$wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
$wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
$wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
$wgUploadBaseUrl = "";
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
I also assume you've seen this guide, right? I honestly wouldn't know why File Uploads aren't working if what I've said and that page says are already set up. The values you listed above seem fine to me as it states where the files are being saved by default.

http://www.mediawiki.org/wiki/Configuring_file_uploads

I'll set up a MediaWiki install on both my x10Hosting account and on my home server to see if I can come across anything later on this afternoon.
 

muscovy

New Member
Messages
13
Reaction score
0
Points
0
I found that page after some random searching, but I couldn't find anything that helped. I can't think of what it is, because there's not a random event that "goes wrong", it just thinks uploads are disabled.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
I honestly don't see what may be the problem then if everything is set up correctly. I'll install MediaWiki to my account shortly to see if I can get that working.
 

muscovy

New Member
Messages
13
Reaction score
0
Points
0
I got it figured out. I missed the step where I delete /config and move LocalSettings.php into the document root. It's working now.
Thank from your help. :)
 
Status
Not open for further replies.
Top