Difference between revisions of "User:WikiMaster/The Dingo Ate My Wiki"
WikiMaster (talk | contribs) m (→.htaccess mod_rewrite woes: Minor fixes.) |
WikiMaster (talk | contribs) (Internal error on pdx.wiki.org after installing MW 1.18.2.) |
||
Line 2: | Line 2: | ||
{{RightTOC}} | {{RightTOC}} | ||
+ | |||
+ | == Internal error == | ||
+ | |||
+ | (Internal error on pdx.wiki.org after installing MW 1.18.2.) | ||
+ | |||
+ | Error Date: 11:49, 24 April 2012 (PDT) | ||
+ | |||
+ | <pre> Global default 'PDXWW' is invalid for field skin | ||
+ | |||
+ | Backtrace: | ||
+ | |||
+ | #0 /home/wikiwednesday/pdx.wiki.org/includes/Preferences.php(1221): Preferences::getPreferences(Object(User)) | ||
+ | #1 /home/wikiwednesday/pdx.wiki.org/includes/specials/SpecialPreferences.php(69): Preferences::getFormObject(Object(User)) | ||
+ | #2 /home/wikiwednesday/pdx.wiki.org/includes/SpecialPageFactory.php(458): SpecialPreferences->execute(NULL) | ||
+ | #3 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(240): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) | ||
+ | #4 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(640): MediaWiki->performRequest() | ||
+ | #5 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(547): MediaWiki->main() | ||
+ | #6 /home/wikiwednesday/pdx.wiki.org/index.php(57): MediaWiki->run()</pre> | ||
+ | #7 {main} | ||
== LocalSettings.php & [[mediawikiwiki:|MW]] <span class="plainlinks">[http://lists.wikimedia.org/pipermail/mediawiki-announce/2011-November/000103.html 1.18.0rc1]</span> == | == LocalSettings.php & [[mediawikiwiki:|MW]] <span class="plainlinks">[http://lists.wikimedia.org/pipermail/mediawiki-announce/2011-November/000103.html 1.18.0rc1]</span> == |
Revision as of 11:49, 24 April 2012
Internal error
(Internal error on pdx.wiki.org after installing MW 1.18.2.)
Error Date: 11:49, 24 April 2012 (PDT)
Global default 'PDXWW' is invalid for field skin Backtrace: #0 /home/wikiwednesday/pdx.wiki.org/includes/Preferences.php(1221): Preferences::getPreferences(Object(User)) #1 /home/wikiwednesday/pdx.wiki.org/includes/specials/SpecialPreferences.php(69): Preferences::getFormObject(Object(User)) #2 /home/wikiwednesday/pdx.wiki.org/includes/SpecialPageFactory.php(458): SpecialPreferences->execute(NULL) #3 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(240): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) #4 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(640): MediaWiki->performRequest() #5 /home/wikiwednesday/pdx.wiki.org/includes/Wiki.php(547): MediaWiki->main() #6 /home/wikiwednesday/pdx.wiki.org/index.php(57): MediaWiki->run()
- 7 {main}
LocalSettings.php & MW 1.18.0rc1
## The protocol and server name to use in fully-qualified URLs // 25 November 2011 -- Dave Myers commenting out. Both variants shown below appear to force URL path to wiki directory (http://organizedpower.org/smw) to automatically redirect back to domain root. // $wgServer = "http://organizedpower.org"; // $wgServer = "http://organizedpower.org/smw";
export / import templates
Copied two versions of the Template:USSFwikiNews using instructions found here:
- Source Template: http://wiki.ussf2010.org/wiki/Template:USSFwikiNews
- Replica: http://telecafe.org/smw/Template:USSFwikiNews
The MediaWiki instructions recommended UNCHECKING the "include only the current revision" box before exporting the template. Doing so, however, produces a much larger file. An attempt to import that larger file resulted in a browser and/or server timeout error.
To get a smaller file, make sure the "include only the current revision" remains CHECKED. The imported file from the example shown above imported well, although the image had to be uploaded separately.
.htaccess mod_rewrite woes
- Summary
- Affected Wiki: PortlandWiki
Started noticing issues with page titles containing "/" characters. URLs containing those characters began resolving to a 404 errors. Later, similar errors began affecting articles with titles containing "." and "&" characters.
- Articles Affected (Among Others)
- User:WikiMaster/Tables & Columns
- A. E. Doyle
- Occupy Portland/Press Releases
- occupyportland.com
- Terry D. Schrunk
- Sources Consulted
- http://www.mediawiki.org/wiki/Manual_talk:Short_URL/Archive_1#Articles_with_ampersands_in_their_names
- http://www.mediawiki.org/wiki/Manual:Short_URL/Ampersand_solution
- http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_DreamHost_Shared_Hosting#MediaWiki_installed_in_home-directory_.28same_as_root.29_.22www.yourdomain.com.2F.22
- Fix Applied
- Made adjustments to the .htaccess file:
RewriteEngine On RewriteCond %{REQUEST_URI} ^/.*&.* RewriteRule ^/?(.*)&(.*)$ /index.php?title=$1\%26$2 [L,NE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]