Last modified: 2007-06-28 15:13:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10396 - AJAX code fails if "index.php" doesn't work.
AJAX code fails if "index.php" doesn't work.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.11.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-28 14:30 UTC by Brion Vibber
Modified: 2007-06-28 15:13 UTC (History)
0 users

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


Attachments

Description Brion Vibber 2007-06-28 14:30:39 UTC
Found while reviewing patch for bug 10387.

The AJAX callback code in skins/common/ajax.js attempts to call index.php directly:

	uri = wgServer + wgScriptPath + "/index.php?action=ajax";

On a system where index.php doesn't work, this doesn't get us anywhere. The system needs to pass $wgScript as well as $wgScriptPath, then the AJAX code should use that instead of hardcoding index.php.
Comment 1 Brion Vibber 2007-06-28 15:13:56 UTC
Fixed in r23507.

Now passing wgScript in JS vars, and using it when available for the AJAX calls.

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


Navigation
Links