https://bugzilla.wikimedia.org/show_bug.cgi?id=33917
--- Comment #1 from Krinkle <[email protected]> 2012-01-28 16:39:17 UTC --- Steps to reproduce: * Load local wiki page in browser * Change $wgDBpassword in LocalSettings.php to a wrong password * Enter JavaScript console and do a mw.loader command for a module that isn't loaded yet -- mw.loader.load( 'filepage' ); mw.loader.using( 'jquery.ui.button', function () { console.log( 'button: ok' ); }, function () { console.log( 'button: err' ); }); -- Expected result: * load.php does something that causes the JavaScript client's registry to register state "error" and trigger the error callback Actual result: * WebKit console: WARNING> Resource interpreted as Other but transferred with MIME type undefined. ERROR> [load.php: line1] Uncaught SyntaxError: Unexpected token < * < mw.loader.getState( 'jquery.ui.button' ) > "loading" GET /mw/trunk/phase3/load.php?debug=false&lang=en&modules=jquery.ui.button%2Ccore%2Cwidget&skin=vector&version=20120128T163417Z&* HTTP/1.1 Host: localhost Connection: keep-alive User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11 Accept: */* Referer: http://localhost/mw/trunk/phase3/index.php/Main_Page HTTP/1.1 200 OK Date: Sat, 28 Jan 2012 16:34:24 GMT Server: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 with Suhosin-Patch X-Powered-By: PHP/5.3.6 X-Content-Type-Options: nosniff Content-Length: 1149 Keep-Alive: timeout=5, max=95 Connection: Keep-Alive Content-Type: text/html; charset=utf-8 <h1>Sorry! This site is experiencing technical difficulties.</h1><p>Try waiting a few minutes and reloading.</p><p><small>(Can't contact the database server: <span dir="ltr">Access denied for user 'root'@'localhost' (using password: YES) (127.0.0.1)</span>)</small></p><hr /><div style="margin: 1.5em">You can try searching via Google in the meantime.<br /> <small>Note that their indexes of our content may be out of date.</small></div> <!-- SiteSearch Google --> <form method="get" action="//www.google.com/search" id="googlesearch"> <input type="hidden" name="domains" value="http://localhost" /> -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
