-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I recently migrated my wiki from Windows to Linux. Apache, PHP, MySQL,
and MediaWiki were the same versions on both computers. I am running
MediaWiki 1.15.1, Apache 2.2.11, PHP 5.2.10, and MySQL 5.0.70.
I want to upload a new version of an image, so I navigate to it's page
and click "Upload a new version of this file". This takes me to the
upload page, where the "Destination filename" is already populated. I
enter the path to the file to upload and a brief description and click
"Upload file". The file is submitted to the server, but then I am sent
to Special:Upload instead of the file's page.
I have tried following the "How to debug" article at MediaWiki's
website, but I don't see any error being output anywhere. I have enabled
logging and watched it as I upload a file, but it seems mysteriously
void of any output looking like an upload. The only hint that an upload
happened is due to the multipart request sent to the server.
The images directory is owned by both the apache user and the apache
group and is 755 for directories and 644 for files. I can save revisions
to articles without problem. Images show up just fine on the wiki.
Does anyone know what is wrong?
Thanks,
Chris Lieb
- ---------------------------------------------------------------
debug stuff in LocalSettings.php (directly after if $wgCommandLineMode):
- ---------------------------------------------------------------
error_reporting(E_ALL);
ini_set("display_errors", 1);
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgDebugLogFile = "/tmp/mediawiki.log";
- ----------------------------------------------------------------
log output:
- ----------------------------------------------------------------
see attachment
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJKeafGAAoJEJWxx7fgsD+Ce8IIAMfrKTmgXHpCSkH1BJQzjy2y
dcoJvQp+yUfKTScS5wru4/Vvtp4RgTf3U7qa3b18E5tzJl0TrlLa480lbbNgjKwA
u9yWQwwYV2E3HBk7xQhauQg7nxyJ5rOAmgKdt4kL5uimIgsy2FQoQ/n5S48sbcM6
fbhkzSSSC5M5wPKi2RQmtHQXdnAy9nfmDotRpwHtKfABU8k52WkHGFRgJqgWWtS8
oBGYkDWc5ybMVAtnMqlnElespma0+sAxjcFAQXFWVBCnLv8IvJRNpv+PjDIkk/1S
CGqW19Fsnno85/XruGO0Y9YI8BYhf+6j09mM02f+HDE5NuYNwdCMdhO0TPdmdtI=
=Oa9q
-----END PGP SIGNATURE-----
Start request
POST /wiki/Special:Upload
Host: opc-app
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729
Firefox/3.5.2 (.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.21022; .NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 600
Connection: keep-alive
Referer:
http://opc-app/w/index.php?title=Special:Upload&wpDestFile=JRE-6.exe&am…
Cookie: sessionid=b810d1ee7792b753c204218d5052af97; wikidbUserName=Clieb;
wikidb_session=7f494f300dc1b57be8837b8e32b0ffeb; wikidbLoggedOut=20090804203106;
wikidbUserID=3
Content-Type: multipart/form-data; boundary=---------------------------180232076911715
Content-Length: 16669552
Main cache: FakeMemCachedClient
Message cache: FakeMemCachedClient
Parser cache: FakeMemCachedClient
session_set_cookie_params: "0", "/", "", "",
"1"
Fully initialised
Unstubbing $wgContLang on call of $wgContLang::checkTitleEncoding from
WebRequest::getGPCVal
Language::loadLocalisation(): got localisation for en from source
Unstubbing $wgOut on call of $wgOut::setArticleRelated from SpecialPage::setHeaders
Unstubbing $wgMessageCache on call of $wgMessageCache::get from wfMsgGetKey
Unstubbing $wgLang on call of $wgLang::getCode from wfGetLangObj
Unstubbing $wgUser on call of $wgUser::getOption from StubUserLang::_newObject
Cache miss for user 3
Connecting to localhost wikidb...
SQL: SET /* Database::open */ sql_mode = ''
Connected
SQL: BEGIN
SQL: SELECT /* User::loadFromDatabase */ * FROM `user` WHERE user_id = '3'
LIMIT 1
SQL: SELECT /* User::loadGroups Clieb */ ug_group FROM `user_groups` WHERE ug_user =
'3'
Logged in from session
SQL: SELECT /* MessageCache::loadFromDB Clieb */ page_title FROM `page` WHERE
page_is_redirect = '0' AND page_namespace = '8' AND (page_title not like
'%%/%%') AND (page_len > 10000)
SQL: SELECT /* MessageCache::loadFromDB Clieb */ page_title,old_text,old_flags FROM
`page`,`revision`,`text` WHERE page_is_redirect = '0' AND page_namespace =
'8' AND (page_title not like '%%/%%') AND (page_latest=rev_id) AND
(rev_text_id=old_id) AND (page_len <= 10000)
MessageCache::load: Loading en... cache is empty, loading from database
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::transform
User::isBlocked: enter
User::getBlockedStatus: checking...
IP: 10.192.205.124
Block::load: '', '3', 1
SQL: SELECT /* Block::load Clieb */ * FROM `ipblocks` WHERE ipb_user = '3'
Class SkinMonobook not found; skipped loading
SQL: SELECT /* LinkBatch::doQuery Clieb */ page_id, page_namespace, page_title, page_len,
page_is_redirect FROM `page` WHERE (page_namespace=2 AND page_title='Clieb') OR
(page_namespace=3 AND page_title='Clieb')
SQL: SELECT /* User::checkNewtalk Clieb */ user_id FROM `user_newtalk` WHERE user_id =
'3' LIMIT 1
SQL: SELECT /* Interwiki::load Clieb */ * FROM `interwiki` WHERE iw_prefix =
'metawikimedia'
OutputPage::sendCacheControl: private caching; **
SQL: SELECT /* Job::pop Clieb */ * FROM `job` WHERE job_id >= 0 ORDER BY job_id
LIMIT 1
Request ended normally