Last modified: 2010-05-15 15:54:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16498, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14498 - Upload File - returns empty page- File upload is not possiable
Upload File - returns empty page- File upload is not possiable
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.12.x
PC Windows Vista
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://kackerman.com/mwiki/index.php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-10 16:31 UTC by Karl Ackerman
Modified: 2010-05-15 15:54 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Karl Ackerman 2008-06-10 16:31:28 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.
Comment 1 Platonides 2008-06-10 16:41:52 UTC
Enable logging / see your error log to find out which error is stopping php.
Comment 2 Karl Ackerman 2008-06-10 17:03:20 UTC
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.
Comment 3 Brion Vibber 2008-06-10 17:27:31 UTC
"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);
Comment 4 Karl Ackerman 2008-06-10 23:04:58 UTC
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
Comment 5 Karl Ackerman 2008-06-10 23:37:28 UTC
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
Comment 6 Brion Vibber 2008-06-10 23:39:20 UTC
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.
Comment 7 Karl Ackerman 2008-06-10 23:44:29 UTC
File upload works without the WYSIWYG editor extension. I will open a bug with the TinyMCE team

Thanks
Comment 8 Karl Ackerman 2008-06-11 00:13:33 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links