Jump to content

User:Forgottenman/sandbox: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m ip notes
explanation as I understand it
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[MisesWiki:Proofreading scripts]]
'''Remaining issues'''


Current:
*Image thumbnails not working universally
**Thumbnail 404 handler, or lack thereof, seems to be the problem
*Error on previewing and saving a page in the page namespace.
**Warning: Parameter 3 to pr_pageQuality() expected to be a reference, value given in /home/web/public_html/wiki/mediawiki/includes/parser/Parser.php on line 3333
***<nowiki><pagequality></nowiki>, via <code>global $wgParser;</code> and <code>$wgParser->setHook( "pagequality", "pr_pageQuality" );</code> in proofreadpage.php, runs function pr_PageQuality with three arguments.  The third argument of pr_PageQuality is <code>&$parser</code>.  This is the parent parser, according to [http://www.mediawiki.org/wiki/Manual:Tag_extensions].  The error says that Parameter 3 is a value in line 3333 of parser.php, which is <code>array( $content, $attributes, $this, $frame ) );</code>.  I'm theorizing that "null" here is a value, and thus this is causing the error. 
*Page status color not correct on index page (related to previous?)


<pre>{{:MediaWiki:Proofreadpage_index_template
'''Solved'''
|Author=adf
|Title=adfs
|Year=
|Publisher=
|Source=
|Image=
|Pages=
|Remarks=
}}
</pre>


Desired:
*Index pages formatted correctly
*PDF file viewing possible
*PDF file upload enabled
*Page and Index talk namespaces created


<pre>{{:MediaWiki:Proofreadpage_index_template
|Type=book
|Title=''[[The Partisan]]'', revised edition
|Volume=
|Author=[[Author:William Gilmore Simms|William Gilmore Simms]]
|Translator=
|Editor=
|School=
|Publisher=Redfield
|Address=
|Year=1859 (reprint of 1854 revised edition)
|Key=
|Source=djvu
|Image=13
|Progress=C
|Pages=<pagelist 1to9="–" 10to11="images" 12="–" 13="title" 14="copyright" 15=5 15to21=roman 22="blank" 23=13 />
|Volumes=
|Remarks=
}}</pre>
Ideas:
*'''The current ProofreadPage extension isn't the same code as what WS has.''' Not sure if this is the root of the problem, but it's definitely true that some pages aren't identical.
**proofread_index.js
**PdfHandler_body.php
***<code>function getThumbType( $ext, $mime, '''$params = null''' )</code>
***Other three PdfHandler files are identical
*IndexForm.js calls something we haven't defined.
<s>*Script importing doesn't work at all</s> It is working; IndexForm.js is adding text to [[Index:Blah.djvu]].
*One of the MediaWiki namespace pages is not configured properly (unlikely)
*I didn't copy correctly from WS, or I'm missing a page.  See [http://wikisource.org/wiki/Wikisource:ProofreadPage#MediaWiki_update_16.2F02.2F2011 wikisource.org]
Further testing once PDFs are in place.


[[MisesWiki:Proofreading scripts]]
<!--
Block all with 84.60.192.0/18 [http://www.csgnetwork.com/ipinfocalc.html] 84.60.192.0 - 84.60.255.254
Block all with 84.60.192.0/18 [http://www.csgnetwork.com/ipinfocalc.html] 84.60.192.0 - 84.60.255.254


Line 85: Line 52:
.241-.243
.241-.243
.245
.245
-->

Latest revision as of 03:14, 4 March 2011

Remaining issues

  • Image thumbnails not working universally
    • Thumbnail 404 handler, or lack thereof, seems to be the problem
  • Error on previewing and saving a page in the page namespace.
    • Warning: Parameter 3 to pr_pageQuality() expected to be a reference, value given in /home/web/public_html/wiki/mediawiki/includes/parser/Parser.php on line 3333
      • <pagequality>, via global $wgParser; and $wgParser->setHook( "pagequality", "pr_pageQuality" ); in proofreadpage.php, runs function pr_PageQuality with three arguments. The third argument of pr_PageQuality is &$parser. This is the parent parser, according to [1]. The error says that Parameter 3 is a value in line 3333 of parser.php, which is array( $content, $attributes, $this, $frame ) );. I'm theorizing that "null" here is a value, and thus this is causing the error.
  • Page status color not correct on index page (related to previous?)

Solved

  • Index pages formatted correctly
  • PDF file viewing possible
  • PDF file upload enabled
  • Page and Index talk namespaces created


MisesWiki:Proofreading scripts