Jump to content

Extension talk:Collection/2020

Add topic
From mediawiki.org


No capability for right-to-left languages (arabic)?

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

Extension:Collection is installed on MW1.31 and is running on its own rendering server; mwlib runs as a standalone server. But the rendering of the arabic text is left-to-right only. Is there a known bug or do I miss something in the configuration?

Thank you in advance! S0ring (talk) 17:18, 20 March 2020 (UTC)Reply

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Low traffic sites that are accessible from the internet don't need to install their own PDF Server - does this functionality still work?

[edit]

Our wiki is running on MediaWiki 1.31.7 and using Collection 1.7.0 (af3a0b8) 14:23, 15 April 2018. The Download as PDF is constantly failing and directing the user to Reading/Web/PDF Functionality which doesn't specifically address the reason for the "Book rendering failed". Reading through Talk:Reading/Web/PDF Functionality doesn't clear up the situation much either. It does seem to indicate there is a new render server available at https://pediapress.com/collector but that doesn't seem to work for non-Wikipedia sites. The existing render server https://tools.pediapress.com/mw-serve/ does seem to still active.

Is the functionality via this extension dead for low traffic sites that don't need or cannot install (i.e shared hosting) their own PDF server? Peculiar Investor (talk) 15:21, 30 April 2020 (UTC)Reply

I have this question too... In my case the progress page stalls without any progress and refreshing the page doesn't seem to help.
Is there a suggested way to debug or to find out what's happening?
Thank you,
Gregg GMShimokura (talk) 17:38, 28 May 2022 (UTC)Reply
I have the same as @Peculiar Investor so I think I will ty to have pdf server. Nicolas senechal (talk) 09:11, 29 June 2022 (UTC)Reply
In order to have my pdf server, I follow this very good guide so here is the config.
I run the server on Ubuntu(download via window stores in order to not have the CD) 18.0.4, python 2.7.
so at the step 3 I have this problem , and I try the next step until step 6 and I have another error I think that the step 3 is fatal and not just a nice to have.
root@PO-NSENECHAL:/usr/src/Python-2.7.18#   pip install --trusted-host pypi.pediapress.com -i <nowiki>http://pypi.pediapress.com/simple/</nowiki> --upgrade mwlib.rl
Collecting mwlib.rl
  Could not find a version that satisfies the requirement mwlib.rl (from versions: )
No matching distribution found for mwlib.rl
root@PO-NSENECHAL:/usr/src/Python-2.7.18#  chown mw-serve:mw-serve -R /var/log/mediawiki/
chown: cannot access '/var/log/mediawiki/': No such file or directory
So as you can see the bug come from the command or pediapress.com. Or maybe I do something wrong.
any tips are welcome, thanks. Nicolas senechal (talk) 14:37, 30 June 2022 (UTC)Reply

readapidenied: Collection extension is not working for private wiki's

[edit]

For private wiki's the Extension:Collection doesn't work

$wgGroupPermissions['*']['read'] = false;

Is there any solution?


Here the readapidenied errors from mwlib:

   creating nuwiki in u'/var/cache/mwlib/7e/7e607dca372f1977/tmpXYsGQC/nuwiki'

   ERR: You need read permission to use this module.: [fetching https://<domain_name>/wiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases|magicwords|rightsinfo&format= json]

   ERR: You need read permission to use this module.: [fetching https://<domain_name>/wiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases|magicwords&format=json]

   ERR: You need read permission to use this module.: [fetching https://<domain_name>/wiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases&format=json]

   ERR: You need read permission to use this module.: [fetching https://<domain_name>/wiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap&format=json]

   removing tmpdir u'/var/cache/mwlib/7e/7e607dca372f1977/tmpXYsGQC'

   memory used: res=33.8 virt=230.7

   1% error Traceback (most recent call last):

     File "/usr/local/bin/mw-zip", line 11, in <module>

       sys.exit(main())

     File "/usr/local/lib/python2.7/dist-packages/mwlib/apps/buildzip.py", line 155, in main

       make_zip(output, options, env.metabook, podclient=podclient, status=status)

     File "/usr/local/lib/python2.7/dist-packages/mwlib/apps/buildzip.py", line 50, in make_zip

       make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)

     File "/usr/local/lib/python2.7/dist-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki

       pool.join(raise_error=True)

     File "/usr/local/lib/python2.7/dist-packages/gevent/pool.py", line 433, in join

       greenlet._raise_exception()

     File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception

     File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run

     File "/usr/local/lib/python2.7/dist-packages/mwlib/apps/make_nuwiki.py", line 119, in run

       self.fetch_pages_from_metabook(api)

     File "/usr/local/lib/python2.7/dist-packages/mwlib/apps/make_nuwiki.py", line 59, in fetch_pages_from_metabook

       fetch_images=not self.options.noimages)

     File "/usr/local/lib/python2.7/dist-packages/mwlib/net/fetch.py", line 282, in __init__

       siteinfo = self.get_siteinfo_for(self.api)

     File "/usr/local/lib/python2.7/dist-packages/mwlib/net/fetch.py", line 453, in get_siteinfo_for

       return m.get_siteinfo()

     File "/usr/local/lib/python2.7/dist-packages/mwlib/net/sapi.py", line 183, in get_siteinfo

       raise RuntimeError("could not get siteinfo")

   RuntimeError: could not get siteinfo

    in function system, file /usr/local/lib/python2.7/dist-packages/mwlib/nslave.py, line 64 S0ring (talk) 08:07, 18 June 2020 (UTC)Reply

The error indicates that your API is not accessible for the renderer. The renderer must be able to fetch data via the MW API in order to render the content. I can't give you any specific tips on how to resolve this, unfortunately. Ckepper (talk) 08:47, 21 June 2020 (UTC)Reply
Actually T245149 addresses a similar issue in 1.34, which should be fixed in 1.34.1 (see Release notes/1.34#MediaWiki 1.34.1) S0ring (talk) 12:25, 24 June 2020 (UTC)Reply

translate tags are present in the printed book

[edit]

see Project:Village Pump/Flow/2020/12#h-Special:Book_the_generated_book_shows_the_markup_tags-2020-12-06T12:53:00.000Z

wikitext markup should be removed in the printed book =>

https://pediapress.com/books/setup/8934ced7cd88c0ebfa5f925249d425/

Christian 🇫🇷 FR (talk) 22:49, 9 December 2020 (UTC)Reply