Last modified: 2014-11-17 09:21:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23653, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21653 - Creating a PDF with collection extension does not render the <pages> tag hook from proofread page extension
Creating a PDF with collection extension does not render the <pages> tag hook...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal major with 10 votes (vote)
: ---
Assigned To: PediaPress Development Team
:
Depends on: 21136
Blocks: 31552 41324
  Show dependency treegraph
 
Reported: 2009-11-26 23:40 UTC by Yann Forget
Modified: 2014-11-17 09:21 UTC (History)
15 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
PDF created with the collection extension (40.28 KB, application/pdf)
2009-11-26 23:42 UTC, Yann Forget
Details

Description Yann Forget 2009-11-26 23:40:31 UTC
Go here: http://fr.wikisource.org/wiki/Le_salut_est_en_vous/Chapitre_4
Click on "Télécharger comme PDF".
Comment 1 Yann Forget 2009-11-26 23:42:52 UTC
Created attachment 6826 [details]
PDF created with the collection extension
Comment 2 Yann Forget 2009-11-26 23:46:24 UTC
I changed the severity to "major" as this extension, which is much needed on Wikisource, is completely useless now.
Comment 4 Helder 2010-12-27 13:41:14 UTC
It also doesn't understand books whose list of pages are created by a templete, as described at
[[Help:Books/Feedback/Archives/2010/May#The_extension_is_not_parsing_templates]]
Comment 5 Helder 2011-01-01 19:30:43 UTC
(In reply to comment #4)
> It also doesn't understand books whose list of pages are created by a templete,
> as described at
> [[Help:Books/Feedback/Archives/2010/May#The_extension_is_not_parsing_templates]]
I've described this on Bug 26533.
Comment 6 ThomasV 2011-02-20 21:00:37 UTC
any progress ?
Comment 7 Helder 2011-04-16 15:10:53 UTC
Could someone provide us some update about the progress in solving this bug?
Comment 8 billinghurst 2011-04-24 12:56:05 UTC
This one has close similarities with bug 18861 in when page expansion/transclusion takes place with relation to other events on the page.  Both are quite problematic in their operations, have major effects at Wikisource, and there seems neither action nor care on either.
Comment 9 John Mark Vandenberg 2011-05-08 14:51:12 UTC
Lots of unhappy customers:
http://stats.grok.se/en/201104/Special%3ABook
Comment 10 billinghurst 2011-07-25 22:27:15 UTC
Can someone point me to the relevant contact information for the person/team that manages this extension.  The extension's failure is a major issue at English Wikisource.
Comment 11 Mark A. Hershberger 2011-07-26 01:49:58 UTC
I've attempted adding the relevant pediapress devs to the CC for this bug.
Comment 12 Tomasz Finc 2011-07-26 21:49:36 UTC
Thanks for adjusting the priority. I'll make sure to get Heiko @ PediaPress to triage this.
Comment 13 billinghurst 2011-07-27 05:40:38 UTC
As either another pointer, or maybe a red herring.  Someone has pointed out this email to me.  It suggest to load [[Extension:Labeled Section Transclusion]] prior to loading [[Extension:Collection]] in the LocalSettings.php

Could that be tried?  Thanks.


http://groups.google.com/group/mwlib/browse_thread/thread/873446fa78791362
"Labeled Section Transclusion" extension not compatible? 

##post 1##
David
More options Jul 19, 6:37 pm

Sections that are transcluded into a page using the Labeled Section
Transclusion extension<http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion> do
not show up in downloaded PDFs or ODTs. Is it possible to make that happen?

Best,
David

      
##post 2##
I believe I have fixed this problem by loading the Labeled Section
Transclusion extension before Collection in LocalSettings.php.

Thanks,

David
Comment 14 Mark A. Hershberger 2011-07-29 20:24:39 UTC
Bumping priority so we can get some momentum going (hopefully) with PediaPress or a volunteer.
Comment 15 Ralf Schmitt 2011-08-10 12:17:00 UTC
I'll work on that if time permits.
Comment 16 Ralf Schmitt 2012-01-11 21:54:13 UTC
implemented in mwlib 0.13.2, which is already live on pdf cluster.

please report further issues on github: https://github.com/pediapress/mwlib/issues/new
Comment 17 Bawolff (Brian Wolff) 2012-01-12 15:20:15 UTC
Given everytime i try to create a pdf of something I end up with a giant error, this is hard to test if it works now:

(For reference, error was from [[s:The_Panama_Canal_Controversy]] but i tried several pages. And I didn't report on github because i don't have an account there. Of course this is probably a totally separate issue from the <page> issue):

An error occured on the render server: RuntimeError: command failed with returncode 256: ['mw-render', '-w', 'rl', '-c', 'cache/e8/e866fe89f5be0acb/collection.zip', '-o', 'cache/e8/e866fe89f5be0acb/output.rl', '--status', 'qserve://localhost:14311/e866fe89f5be0acb:render-rl', '--template-blacklist', 'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', 'Exclude in print', '--print-template-prefix', 'Print', '--print-template-pattern', '$1/Print', '--language', 'en'] Last Output: writer(env, output=tmpout, status_callback=self.status, **writer_options) File "/home/pp/local/lib/python2.6/site-packages/mwlib.rl-0.12.10-py2.6.egg/mwlib/rl/rlwriter.py", line 2181, in writer r.writeBook(output=output, coverimage=coverimage, status_callback=status_callback) File "/home/pp/local/lib/python2.6/site-packages/mwlib.rl-0.12.10-py2.6.egg/mwlib/rl/rlwriter.py", line 469, in writeBook art = self.buildArticle(item) File "/home/pp/local/lib/python2.6/site-packages/mwlib.rl-0.12.10-py2.6.egg/mwlib/rl/rlwriter.py", line 358, in buildArticle revision=item.revision) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/nuwiki.py", line 421, in getParsedArticle return uparser.parseString(title=title, raw=raw, wikidb=self, lang=self.siteinfo["general"]["lang"]) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/uparser.py", line 63, in parseString a = compat.parse_txt(input, title=title, wikidb=wikidb, nshandler=nshandler, lang=lang, magicwords=magicwords, uniquifier=uniquifier, expander=te) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/compat.py", line 193, in parse_txt sub = core.parse_txt(raw, **kwargs) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/core.py", line 1037, in parse_txt combined_parser(parsers)(tokens, xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/core.py", line 646, in __call__ p(x, xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/core.py", line 762, in __init__ tokens[i] = m(name, vlist, inner or u"", xopts) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/refine/core.py", line 887, in create_pages children = parse_txt(te.expandTemplates(True), File "evaluate.py", line 295, in mwlib.templ.evaluate.Expander.expandTemplates (mwlib/templ/evaluate.c:5932) File "evaluate.py", line 282, in mwlib.templ.evaluate.Expander._expand (mwlib/templ/evaluate.c:5569) File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1103) File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1134) File "nodes.py", line 210, in mwlib.templ.nodes.Template.flatten (mwlib/templ/nodes.c:4619) File "nodes.py", line 291, in mwlib.templ.nodes.Template._flatten (mwlib/templ/nodes.c:5976) File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1103) File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1134) File "nodes.py", line 210, in mwlib.templ.nodes.Template.flatten (mwlib/templ/nodes.c:4619) File "nodes.py", line 291, in mwlib.templ.nodes.Template._flatten (mwlib/templ/nodes.c:5976) File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1134) File "nodes.py", line 52, in mwlib.templ.nodes.IfeqNode.flatten (mwlib/templ/nodes.c:1904) File "evaluate.py", line 28, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1103) File "evaluate.py", line 30, in mwlib.templ.evaluate.flatten (mwlib/templ/evaluate.c:1134) File "nodes.py", line 210, in mwlib.templ.nodes.Template.flatten (mwlib/templ/nodes.c:4619) File "nodes.py", line 277, in mwlib.templ.nodes.Template._flatten (mwlib/templ/nodes.c:5777) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/templ/magics.py", line 563, in __call__ res = m(args) or '' # FIXME: catch TypeErros File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/templ/magics.py", line 209, in wrapper return f(self, pagename) File "/home/pp/local/lib/python2.6/site-packages/mwlib-0.13.2-py2.6-linux-x86_64.egg/mwlib/templ/magics.py", line 239, in SUBPAGENAME return pagename.split('/')[-1] AttributeError: 'NoneType' object has no attribute 'split' in function system, file /home/pp/local/lib/python2.6/site-packages/mwlib-0.13.1-py2.6-linux-x86_64.egg/EGG-INFO/scripts/nslave.py, line 63
Comment 18 Ralf Schmitt 2012-01-12 15:38:09 UTC
the last one already is on github: https://github.com/pediapress/mwlib/issues/4
Comment 19 Ralf Schmitt 2012-01-12 15:40:31 UTC
and for everyone thinking about reporting missing pages/sections: https://github.com/pediapress/mwlib/issues/5

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links