https://bugzilla.wikimedia.org/show_bug.cgi?id=60533

       Web browser: ---
            Bug ID: 60533
           Summary: jobs from "Generate pages" sit in the job table and
                    are not executed.
           Product: MediaWiki extensions
           Version: REL1_22 branch
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: PageSchemas
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: g...@freephile.com
                CC: katkov.ju...@gmail.com, yaro...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

There are actually two problems here:
a) jobs are not run automatically, you have to manually invoke runJobs.php to
clear out the job table.
b) some jobs will silently fail - and persist in the job table

I defined a schema [1] using PageSchemas and when I try to "Generate pages" the
jobs are sent to the job table, but are not actually completed.  When I've used
maintenance/runJobs.php to manually clear the job queue, some jobs are executed
(namely the properties and templates), but others are not recognized as needing
execution.  showJobs.php reports 0 jobs.

For jobs that just refuse to execute, I guess I could try to de-serialize the
'params' content from the database to create the form.

Example content from the 'params' field of a form creation job that did not
execute:

a:2:{s:7:"user_id";i:2;s:9:"page_text";s:1107:"<noinclude>\nThis is the
"Person" form.\nTo create a page with this form, enter the page name below;\nif
a page with that name already exists, you will be sent to a form to edit that
page.\n\n\n{{#forminput:form=Person|autocomplete on
category=Person}}\n\n</noinclude><includeonly>\n{{{info|create title=Create a
new Person|edit title=Edit Person}}}\n<div id="wikiPreview" style="display:
none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid
#AAAAAA;"></div>\n{{{for template|Person}}}\n{| class="formtable"\n! First
Name:\n| {{{field|First Name|input type=text}}}\n|-\n! Last Name:\n|
{{{field|Last Name|input type=text}}}\n|-\n! Department:\n|
{{{field|Department|input type=checkbox}}}\n|-\n! Manager:\n|
{{{field|Manager|input type=text with autocomplete}}}\n|-\n! Email Address:\n|
{{{field|Email Address}}}\n|}\n{{{end template}}}\n\n'''Free
text:'''\n\n{{{standard input|free text|rows=10}}}\n\n\n{{{standard
input|summary}}}\n\n{{{standard input|minor edit}}} {{{standard
input|watch}}}\n\n{{{standard input|save}}} {{{standard input|preview}}}
{{{standard input|changes}}} {{{standard input|cancel}}}\n</includeonly>\n";}

What I found out is that any form that has a field of type "email" would fail
to execute.  Changing the schema so that the "Email Address" field was of type
"text" worked to allow runJobs.php to execute the job and create the
corresponding form.

[1] http://pastebin.com/1FNGaHsW

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to