Last modified: 2010-05-15 15:54:54 UTC
On Vista with Apache server and PHP 5.2.1 MySQL 5.2.3 the Upload File feature does not show anything when clicked on. The browser shows busy then after several seconds a blank page is presented. The feature partialy works in that if the user is not logged in it informs them to log in first. I have set the flag to enable file upload (LocalSettings.php $wgEnableUploads = true; ) and have confirmed that PHP.INI is set correctly. I tested file upload outside of mediawiki and everything works with a simple HTML + PHP to prompt for file input into the images directory. If you want to test the site go to PHPINFO : http://kackerman.com/phpinfo.php mediwiki : http://kackerman.com/mwiki/index.php The site is PW protected - username bostonFTD Password connect!locally.
Enable logging / see your error log to find out which error is stopping php.
I think I have already added $wgShowExceptionDetails = true; to the bottom of LocalSetting.php to turn on error messages for MediaWiki Should I also enable PHP error messages? error_reporting = E_ALL log_errors = On display_errors = On If so this will have to wait until I get home to turn on.
"Blank page" generally indicates a PHP fatal error; logging or displaying errors will help greatly in diagnosing that. You can often enable those from your LocalSettings.php, however, without having to go in and change the global PHP config. Add: error_reporting(E_ALL); ini_set("display_errors", true);
Attached is the log from server startup to error [Tue Jun 10 18:58:49 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.1 configured -- resuming normal operations [Tue Jun 10 18:58:49 2008] [notice] Server built: Jul 27 2006 16:49:49 [Tue Jun 10 18:58:49 2008] [notice] Parent: Created child process 3312 [Tue Jun 10 18:58:49 2008] [notice] Child 3312: Child process is running [Tue Jun 10 18:58:49 2008] [notice] Child 3312: Acquired the start mutex. [Tue Jun 10 18:58:49 2008] [notice] Child 3312: Starting 250 worker threads. [Tue Jun 10 18:58:49 2008] [notice] Child 3312: Starting thread to listen on port 80. [Tue Jun 10 19:00:52 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:52 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:52 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:52 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:52 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:53 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:53 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:53 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:53 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:53 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:54 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:55 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91 [Tue Jun 10 19:00:55 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91 [Tue Jun 10 19:00:55 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144 [Tue Jun 10 19:00:55 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144 [Tue Jun 10 19:00:55 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144 [Tue Jun 10 19:00:59 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:59 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:59 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:59 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:00:59 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php [Tue Jun 10 19:01:04 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&returnto=Welcome [Tue Jun 10 19:01:04 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&returnto=Welcome [Tue Jun 10 19:01:04 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&returnto=Welcome [Tue Jun 10 19:01:04 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&returnto=Welcome [Tue Jun 10 19:01:04 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:05 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] (20024)The given path misformatted or contained invalid characters: Cannot map GET /mwiki/index.php/Special:Upload HTTP/1.1 to file, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 91, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x92 - assumed '\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:08 2008] [error] [client 76.119.198.90] PHP Notice: Use of undefined constant \x91edit\x92 - assumed '\x91edit\x92' in J:\\Apache2.2\\htdocs\\mwiki\\LocalSettings.php on line 144, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:01:38 2008] [error] [client 76.119.198.90] PHP Fatal error: Maximum execution time of 30 seconds exceeded in J:\\Apache2.2\\htdocs\\mwiki\\extensions\\TinyMCE_MW.php on line 234, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome
I fixed the two errors in the localsetting.php file (Bad Quotes) Below is the attached log from server startup I confirmed that the include/specialupload.php exists. [Tue Jun 10 19:28:13 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.1 configured -- resuming normal operations [Tue Jun 10 19:28:13 2008] [notice] Server built: Jul 27 2006 16:49:49 [Tue Jun 10 19:28:13 2008] [notice] Parent: Created child process 5812 [Tue Jun 10 19:28:13 2008] [notice] Child 5812: Child process is running [Tue Jun 10 19:28:13 2008] [notice] Child 5812: Acquired the start mutex. [Tue Jun 10 19:28:13 2008] [notice] Child 5812: Starting 250 worker threads. [Tue Jun 10 19:28:13 2008] [notice] Child 5812: Starting thread to listen on port 80. [Tue Jun 10 19:28:48 2008] [error] [client 76.119.198.90] (20024)The given path misformatted or contained invalid characters: Cannot map GET /mwiki/index.php/Special:Upload HTTP/1.1 to file, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome [Tue Jun 10 19:29:19 2008] [error] [client 76.119.198.90] PHP Fatal error: Maximum execution time of 30 seconds exceeded in J:\\Apache2.2\\htdocs\\mwiki\\extensions\\TinyMCE_MW.php on line 234, referer: http://kackerman.com/mwiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Welcome
Ok, let's trim that down... here's a big part of your problem: > PHP Notice: Use of undefined constant \x91file - assumed '\x91file' in > LocalSettings.php on line 91 > PHP Notice: Use of undefined constant bi\x92 - assumed 'bi\x92' in > LocalSettings.php on line 91 Your LocalSettings.php file is full of "smart quotes" in place of regular quotes, which are breaking all your custom settings (some of which are upload-related). First of all, fix those... The final fatal error failure is a timeout in an extension: > PHP Fatal error: Maximum execution time of 30 seconds exceeded in > extensions\\TinyMCE_MW.php on line 234 If this persists after fixing your configuration, try taking out that extension and/or any other extensions.
File upload works without the WYSIWYG editor extension. I will open a bug with the TinyMCE team Thanks
FYI: To "Fix" this I deleted "nowiki" from line 229 of TinyMCE_MW.php. I expect this will create problems when editing pages with this tag, but so be it.