Jump to content

User:Forgottenman/sandbox: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
expand
explanation as I understand it
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
I'm using Windows Vista, 64 bit.  I downloaded python-2.7.1.amd64.msi and ran the executable file.  Then I extracted pywikipedia-nightly.zip.  I created a family file and a user-config file (see below).  I logged in successfully.  I created a page ([[User:Forgottenbot/archive]]) and transcluded it on the page I want to archive ([[MisesWiki:Commons]]).
'''Remaining issues'''


However, archival does not take place as hopedIf anyone has any recommendations to make this work, I would appreciate itBelow is relevant information and results:
*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?)


===Command window===
'''Solved'''
The command line, when I press enter, looks like:
<code>C:\pywikipedia>archivebot.py User:Forgottenbot/archive</code>


The result, including the above, is:
*Index pages formatted correctly
*PDF file viewing possible
*PDF file upload enabled
*Page and Index talk namespaces created


<pre>
C:\pywikipedia>archivebot.py User:Forgottenbot/archive
unicode test: triggers problem #3081100
Fetching template transclusions...


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


===Transclusion of [[User:Forgottenbot/archive]] on [[MisesWiki:Commons]]===
*84.60.195.116 - block with 84.60.194/23, which blocks 84.60.195.116
<pre>
*84.60.206.225 - block with
{{User:Forgottenbot/archive
*84.60.218.10
|algo = old(10d)
*84.60.220.190
|archive = MisesWiki:Commons/Archive/%(year)d/%(monthname)s
*84.60.253.91
|minthreadstoarchive = 1
}}
</pre>


===user-config.py===
Also in Ratingen
<pre>
*84.60.192.0
mylang='en'
.201-.213
family = 'mises';
.215-.216
usernames['mises']['en']=u'Forgottenbot';
.218-.227
console_encoding = 'utf-8';
.229
</pre>
.232-.234
.239-.240
.244
.246


===mises_family.py===
 
<pre>
Not in Ratingen:
# -*- coding: utf-8  -*-
84.60.193.0
.197
import family
.198
.199
# The official Mises Wiki. #Put a short project description here.
.200
.214
class Family(family.Family):
.217
.228
    def __init__(self):
.230
        family.Family.__init__(self)
.231
        self.name = 'mises' # Set the family name; this should be the same as in the filename.
.235-.238
        self.langs = {
.241-.243
            'en': 'wiki.mises.org', # Put the hostname here.
.245
        }
-->
        # Translation used on all wikis for the different namespaces.
        # Most namespaces are inherited from family.Family.
        # Check the family.py file (in main directory) to see the standard
        # namespace translations for each known language.
        # You only need to enter translations that differ from the default.
        self.namespaces[4] = {
            '_default': u'MisesWiki', # Specify the project namespace here.
        }
        self.namespaces[5] = {
            '_default': u'MisesWiki talk', # Specify the talk page of the project namespace here.  
        }
    def version(self, code):
        return "1.16.0"  # The MediaWiki version used. Not very important in most cases.
    def scriptpath(self, code):
        return '/mediawiki' # The relative path of index.php, api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w,
# depending on the folder where your mediawiki program is located.
# Note: Do not _include_ index.php, etc.
</pre>

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