google-code-backups / proveit-js

Automatically exported from code.google.com/p/proveit-js
0 stars 0 forks source link

Work OK in English, does not work in Greek wikipedia #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open user account in Greek wikipedia
2. write new vector.js according to instructions (even if you add :en:)

option 1
importScript(':en:User:ProveIt GT/ProveIt.js');
// [[User:ProveIt GT/ProveIt.js]]

option 2
importScript(':en:User:ProveIt GT/ProveIt.js');
// [[:en:User:ProveIt GT/ProveIt.js]]

3. Cleared cache. Does not work
(it works fine in the English Wikipedia for me)

What is the expected output? What do you see instead?
Nothing. It does not activate.

What version of the product are you using? On what operating system?
firefox 3.6.12, windows xp

Please provide any additional information below.

Original issue reported on code.google.com by FocalPoi...@gmail.com on 4 Dec 2010 at 7:14

GoogleCodeExporter commented 8 years ago
Here's the Javascript error that's occurring (in Chrome at least):

Failed to load resource: the server responded with a status of 403 (Forbidden)
en.wikipedia.org/wiki/User:ProveIt_GT/ProveIt.js?action=raw&ctype=text%2Fjavascr
ipt

Loading that URL produces this more detailed error:
Forbidden
Invalid file extension found in PATH_INFO. Raw pages must be accessed through 
the primary script entry point.

Original comment by kurt.luther on 4 Dec 2010 at 4:40

GoogleCodeExporter commented 8 years ago
It works if you use the following direct import:

importScriptURI('http://en.wikipedia.org/w/index.php?title=User:ProveIt_GT/Prove
It.js&action=raw&ctype=text/javascript'); 

As noted, MediaWiki forbids script access using the other URL.

Original comment by matthew....@gatech.edu on 5 Dec 2010 at 3:11

GoogleCodeExporter commented 8 years ago
Works OK now, thank you.

Original comment by FocalPoi...@gmail.com on 5 Dec 2010 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by matthew....@gatech.edu on 5 Dec 2010 at 4:17

GoogleCodeExporter commented 8 years ago
To provide specific instructions for other Wikipedias, we can now (since 
revision 8fb80) link to custom install URLs like 
http://proveit.cc.gatech.edu/install#el (instructions for Greek Wikipedia).  
The URL also automatically updates when you change the drop-down.

As a future enhancement, it would be useful to localize the website text.

Original comment by matthew....@gatech.edu on 10 Dec 2010 at 2:22