Mediawiki/Common Problems
From r00tedvw.com wiki
(Difference between revisions)
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Cannot upload files== | |
+ | - Error: Could not create directory "mwstore://local-backend/local-public/3/3c". | ||
+ | Change ownership and provide write access to apache2 user, generally www-data, for images directory which is generally at /var/www/%mediawiki directory%/images/ | ||
sudo chown root:www-data images | sudo chown root:www-data images | ||
sudo chmod 775 images | sudo chmod 775 images | ||
<br\> | <br\> | ||
− | + | ==Cannot upload file larger than 2MB== | |
:go to the wiki site configuration file, ie. /etc/apache2/sites-available/mediawiki, and add the following lines anywhere within <Virtual Host> | :go to the wiki site configuration file, ie. /etc/apache2/sites-available/mediawiki, and add the following lines anywhere within <Virtual Host> | ||
php_value upload_max_filesize 20M | php_value upload_max_filesize 20M | ||
php_value post_max_size 20M | php_value post_max_size 20M | ||
<br\> | <br\> | ||
− | + | ==Uploads extremely slow== | |
:If the MediaWiki server cannot access the internet (in the case of an internal server), uploads can be extremely slow. This is because when you upload a file, the wiki calls upon an external source for some reason (it may be an image link or css). To solve this, add the following to your LocalSettings.php | :If the MediaWiki server cannot access the internet (in the case of an internal server), uploads can be extremely slow. This is because when you upload a file, the wiki calls upon an external source for some reason (it may be an image link or css). To solve this, add the following to your LocalSettings.php | ||
$wgUseInstantCommons = false; | $wgUseInstantCommons = false; | ||
+ | ==filelist search on the filelist page does not work for filenames that contain a capital letter. | ||
+ | reference: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Search_function_in_File_list_doesn't_work_properly<br> | ||
+ | Prior to 1.22:<br> | ||
+ | TL;DR Go to includes\specials\SpecialListfiles.php. On Line 84, change: | ||
+ | $this->mQueryConds[] = 'LOWER(img_name)' . | ||
+ | to | ||
+ | $this->mQueryConds[] = 'CONVERT(img_name USING latin1)' . | ||
+ | |||
+ | 1.22 and after:<br> | ||
+ | TL;DR Go to includes/specials/SpecialListfiles.php, Line 138 change: | ||
+ | $conds[] = 'LOWER(' . $prefix . '_name)' . | ||
+ | to | ||
+ | $conds[] = 'CONVERT(' . $prefix . '_name USING latin1)' . |
Latest revision as of 18:30, 29 November 2015
[edit] Cannot upload files
- Error: Could not create directory "mwstore://local-backend/local-public/3/3c".
Change ownership and provide write access to apache2 user, generally www-data, for images directory which is generally at /var/www/%mediawiki directory%/images/
sudo chown root:www-data images sudo chmod 775 images
[edit] Cannot upload file larger than 2MB
- go to the wiki site configuration file, ie. /etc/apache2/sites-available/mediawiki, and add the following lines anywhere within <Virtual Host>
php_value upload_max_filesize 20M php_value post_max_size 20M
[edit] Uploads extremely slow
- If the MediaWiki server cannot access the internet (in the case of an internal server), uploads can be extremely slow. This is because when you upload a file, the wiki calls upon an external source for some reason (it may be an image link or css). To solve this, add the following to your LocalSettings.php
$wgUseInstantCommons = false;
==filelist search on the filelist page does not work for filenames that contain a capital letter.
reference: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Search_function_in_File_list_doesn't_work_properly
Prior to 1.22:
TL;DR Go to includes\specials\SpecialListfiles.php. On Line 84, change:
$this->mQueryConds[] = 'LOWER(img_name)' .
to
$this->mQueryConds[] = 'CONVERT(img_name USING latin1)' .
1.22 and after:
TL;DR Go to includes/specials/SpecialListfiles.php, Line 138 change:
$conds[] = 'LOWER(' . $prefix . '_name)' .
to
$conds[] = 'CONVERT(' . $prefix . '_name USING latin1)' .