Project:Support desk

Jump to: navigation, search

About this board

vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Special:NewPages shows correct pagename but the feed doesn't !?

1
Stefahn (talkcontribs)

After I created and moved a page, Special:NewPage lists the new pagename, but the feed still shows the old name (in the title of the feed entry).

How can I get the feed to show the new name?

You can see an example here (as of 11.2.2016, 14:37) : Special:NewPages shows the new name "User:Stefahn/New page", the feed however shows the old name "User:Stefahn/Old page"

Reply to "Special:NewPages shows correct pagename but the feed doesn't !?"
Ace.philscan (talkcontribs)
Hi,

Does anybody knows this issue?

When converting a page to PDF, I have an error in the mwlib server.

RuntimeError: RuntimeError: command failed with returncode 256:
so with the results is this one below:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here's my setup:
MediaWiki	1.26alpha
Collection	1.7.0	GPL-2.0+	Create books


My config:
require_once "$IP/extensions/Collection/Collection.php";
$wgEnableAPI = true;
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
$wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;
$wgCollectionFormats = array(
    'rl' => 'PDF',
    'odf' => 'ODT',
);

$wgCollectionMWServeURL = "http://hc.dev:8899/";
$wgCollectionMWServeCredentials = '<username>:<password>';
$wgCollectionMaxArticles = 150;
$wgCollectionArticleNamespaces = array(
      NS_MAIN,
      NS_TALK,
      NS_USER,
      NS_USER_TALK,
      NS_PROJECT,
      NS_PROJECT_TALK,
      NS_MEDIAWIKI,
      NS_MEDIAWIKI_TALK,
      NS_CATEGORY,
      100,
      101,
      102,
      103,
      104,
      105,
      106,
      107,
      108,
      109,
      110,
      111
);

Complete logs:

256 1.30313515663 ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--username', 'Ace-hotcopper', '--password', '{O
MITTED}']
1%  /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent, gevent.pool, gevent.coros, gevent.event
/usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url')
  if l.get('mw_license_url'):
/usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text')
  if l.get('mw_rights_text'):
/usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page')
  if l.get('mw_rights_page'):
/usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url')
  if l.get('mw_rights_url'):
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run
    api = self.get_api()
  File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api
    api.login(self.username, self.password, self.domain)
  File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login
    res = self._post(**args)
  File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post
    res = loads(self._fetch(req))
  File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads
    return json.loads(s)
  File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
<Greenlet at 0x2c26af0: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x2c8df10>>> failed with JSONDecodeError

creating nuwiki in u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki'
removing tmpdir u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe'
memory used: res=20.4 virt=390.9
1% error Traceback (most recent call last):
  File "/usr/bin/mw-zip", line 9, in <module>
    load_entry_point('mwlib==0.15.15', 'console_scripts', 'mw-zip')()
  File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main
    make_zip(output, options, env.metabook, podclient=podclient, status=status)
  File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip
    make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)
  File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki
    pool.join(raise_error=True)
  File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join
    raise greenlet.exception
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

error: command failed with returncode 256: ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--username', 'Ace-hotc
opper', '--password', '{OMITTED}']
Last Output:
    1%  /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock
      import gevent, gevent.pool, gevent.coros, gevent.event
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url')
      if l.get('mw_license_url'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text')
      if l.get('mw_rights_text'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page')
      if l.get('mw_rights_page'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url')
      if l.get('mw_rights_url'):
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run
        result = self._run(*self.args, **self.kwargs)
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run
        api = self.get_api()
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api
        api.login(self.username, self.password, self.domain)
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login
        res = self._post(**args)
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post
        res = loads(self._fetch(req))
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads
        return json.loads(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads
        return _default_decoder.decode(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode
        obj, end = self.raw_decode(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
        return self.scan_once(s, idx=_w(s, idx).end())
    JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    <Greenlet at 0x2c26af0: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x2c8df10>>> failed with JSONDecodeError

    creating nuwiki in u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki'
    removing tmpdir u'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe'
    memory used: res=20.4 virt=390.9
    1% error Traceback (most recent call last):
      File "/usr/bin/mw-zip", line 9, in <module>
        load_entry_point('mwlib==0.15.15', 'console_scripts', 'mw-zip')()
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main
        make_zip(output, options, env.metabook, podclient=podclient, status=status)
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip
        make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_nuwiki
        pool.join(raise_error=True)
      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join
        raise greenlet.exception
    simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

error finish: 78a10694db6e0745:makezip: 'RuntimeError: command failed with returncode 256: [\'mw-zip\', \'-o\', \'/home/vagrant/cache/78/78a10694db6e0745/collection.zip\', \'-m\', \'/home/vagrant/cache/78/78a10694db6e0745/metabook.json\', \'--status\', \'qserve://localhost:14311/78a10694db6e0745:mak
ezip\', \'--config\', \'http://hc.dev/w\', \'--username\', \'Ace-hotcopper\', \'--password\', \'{OMITTED}\']\nLast Output:\n    1%  /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock\n      import gevent, gevent.pool, gevent.coro
s, gevent.event\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get(\'mw_license_url\')\n      if l.get(\'mw_license_url\'):\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get(\'mw_rights_text\')\n
      if l.get(\'mw_rights_text\'):\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get(\'mw_rights_page\')\n      if l.get(\'mw_rights_page\'):\n    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get(\
'mw_rights_url\')\n      if l.get(\'mw_rights_url\'):\n    Traceback (most recent call last):\n      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run\n        result = self._run(*self.args, **self.kwargs)\n      File "/usr/lib64/python2
.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run\n        api = self.get_api()\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api\n        api.login(self.username, self.password, self.domain)\n      File "/usr/lib64/python2.6/site-packages/mw
lib/net/sapi.py", line 194, in login\n        res = self._post(**args)\n      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post\n        res = loads(self._fetch(req))\n      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads\n        return j
son.loads(s)\n      File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads\n        return _default_decoder.decode(s)\n      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode\n        obj, end = self.raw_decode(s)\n      File "/usr/lib
64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode\n        return self.scan_once(s, idx=_w(s, idx).end())\n    JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n    <Greenlet at 0x2c26af0: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher obj
ect at 0x2c8df10>>> failed with JSONDecodeError\n    \n    creating nuwiki in u\'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe/nuwiki\'\n    removing tmpdir u\'/home/vagrant/cache/78/78a10694db6e0745/tmpH9YDfe\'\n    memory used: res=20.4 virt=390.9\n    1% error Traceback (most recent call last
):\n      File "/usr/bin/mw-zip", line 9, in <module>\n        load_entry_point(\'mwlib==0.15.15\', \'console_scripts\', \'mw-zip\')()\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 155, in main\n        make_zip(output, options, env.metabook, podclient=podclient, stat
us=status)\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/buildzip.py", line 50, in make_zip\n        make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status)\n      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 192, in make_n
uwiki\n        pool.join(raise_error=True)\n      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/pool.py", line 102, in join\n        raise greenlet.exception\n    simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n     in function syste
m, file /usr/lib64/python2.6/site-packages/mwlib/nslave.py, line 64'
error: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', '/home/vagrant/cache/78/78a10694db6e0745/collection.zip', '-m', '/home/vagrant/cache/78/78a10694db6e0745/metabook.json', '--status', 'qserve://localhost:14311/78a10694db6e0745:makezip', '--config', 'http://hc.dev/w', '--userna
me', 'Ace-hotcopper', '--password', '{OMITTED}']
Last Output:
    1%  /usr/lib64/python2.6/site-packages/mwlib/net/fetch.py:7: DeprecationWarning: gevent.coros has been renamed to gevent.lock
      import gevent, gevent.pool, gevent.coros, gevent.event
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url')
      if l.get('mw_license_url'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text')
      if l.get('mw_rights_text'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page')
      if l.get('mw_rights_page'):
    /usr/lib64/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url')
      if l.get('mw_rights_url'):
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/gevent-1.1a1-py2.6-linux-x86_64.egg/gevent/greenlet.py", line 368, in run
        result = self._run(*self.args, **self.kwargs)
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 117, in run
        api = self.get_api()
      File "/usr/lib64/python2.6/site-packages/mwlib/apps/make_nuwiki.py", line 31, in get_api
        api.login(self.username, self.password, self.domain)
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 194, in login
        res = self._post(**args)
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 114, in _post
        res = loads(self._fetch(req))
      File "/usr/lib64/python2.6/site-packages/mwlib/net/sapi.py", line 23, in loads
        return json.loads(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 505, in loads
        return _default_decoder.decode(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 370, in decode
        obj, end = self.raw_decode(s)
      File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
        return self.scan_once(s, idx=_w(s, idx).end())
    JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    <Greenlet at 0x2c26af0: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x2c8df10>>> failed with JSONDecodeError


Any help is appreciated.

Kind Regards,
Ace
188.94.193.134 (talkcontribs)

I also have this problem. has anyone found a solution?

Reply to "Error on 'mwlib' server"
Csi19790218 (talkcontribs)

I'm at my wits' end with this...

I've upgraded to the latest version of MediaWiki for our Intranet, all went well, with ONE exception:

We have a few pages where we use sortable tables and this feature is no longer working. Went through every bit of documentation I could find, nothing could fix it. So exasperated I was I went as far as installing a new Wiki from scratch (assuming something went wrong in the upgrade process), and I am using an example from the main MediaWiki site and that does not work either.

Has anyone else come across this? Help!!!

Product Version
MediaWiki 1.26.2
PHP 5.4.9 (cgi-fcgi)
MySQL 5.6.10-log
Ciencia Al Poder (talkcontribs)

That's usually caused by a JavaScript error. Hit F12 in your browser, reload the page and see if there's any error showing up in the console.

Csi19790218 (talkcontribs)

Thank you, so there's definitely a problem:

Internal error

Internal error

Problematic modules: {

"startup": "error"

}

I can't be the only one seeing this. Of all the things to go wrong, I'm glad it's only sorting tables, but it is sooooooo frustrating!

Ciencia Al Poder (talkcontribs)

Setting $wgShowExceptionDetails to true should give more details about the error. another report about the issue was a missing /tmp directory (or maybe a permission issue)

Reply to "Sortable Tables"

Moved Website, uploads going to both old and new directories

6
Whytekong (talkcontribs)

Hello there,

I resolved my previous post and opened a new one because I had gotten off topic from the original title.

  • Apache/2.2.16 (Debian)
  • MySQL client version: 5.1.49
  • MediaWIki 1.20.3 (it appears)

I had my wiki running on the /var directory but it filled up. I backed up my mysql database and rysnc'd my /var directory over to my /home directory where I have more space. I changed the data-dir variable in mysql conf over to /home/lib/mysql and updated my apache configurations to point over to the new /home directory.

Now my issue is that when i upload pdf's to my wiki, 66 mB to be precise, not all of the data is moving into my /home directory. I ran df before and after uploading the pdf's and data used increased in both /home and /var. Any thoughts as to why this would happen? I tried to  manually set the uploadpath but it kills my image and pdf thumbnails. Like i can still access the files at http://heritage.apegm.mb.ca/images/ but they dont work on the site. Did i miss a setting i need to change in mysql or are there any configuration files in the extensions of my wiki that would be doing this?

Thanks for any help,

Trent

This wiki will be the death of me.

Ciencia Al Poder (talkcontribs)

Did you update your $wgUploadDirectory accordingly to the change?

Whytekong (talkcontribs)

yes, changed $wgUploadPath and $wgUploadDirectory both to "{IP}/images/" I believe.

Ciencia Al Poder (talkcontribs)

$wgUploadDirectory should be ok, but $wgUploadPath must not be set with {$IP}!

Whytekong (talkcontribs)

Oh? Why is that? Also how should I set it?

Ciencia Al Poder (talkcontribs)

$wgUploadPath is the path seen from the web browser. {$IP} points to an absolute path for the filesystem. $wgUploadPath can be left unset if the upload directory hasn't been changed.

Your images point to URLs like http://heritage.apegm.mb.ca/img_auth.php/5/55/Early_Whiteshell.jpg giving an Access denied error. I assume you set up this accordingly for Manual:Image Authorization. In that case that's OK because I'm not logged in, so I shouldn't see those images.

Reply to "Moved Website, uploads going to both old and new directories"
Cgol38 (talkcontribs)

Hi,

I'm trying to get the WikiEditor (version 0.5.0) to work.  The extension shows up in Special:Version, but the editor does not show up when editing a page.

I have the following MediaWiki configuration:

MediaWiki   1.26.2

PHP     7.0.0 (cgi-fcgi)

MySQL     5.7.10-log

Server Windows Server 2008 R2 SP1 with IIS 7.5

I have followed the instructions online at https://www.mediawiki.org/wiki/Extension:WikiEditor to install the WikiEditor. I have cleared the browser cache and added the mime type for svg in IIS.

I  added the following to the bottom of the LocalSettings.php:

$wgDefaultUserOptions['usebetatoolbar'] = 1;

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

$wgDefaultUserOptions['wikieditor-preview'] = 1;

$wgDefaultUserOptions['wikieditor-publish'] = 1;

However, the WikiEditor is still not showing when editing a page.

Any advice would be much appreciated!

Thank You

Ciencia Al Poder (talkcontribs)

That's usually caused by a JavaScript error. Hit F12 in your browser, reload the page and see if there's any error showing up in the console.

Cgol38 (talkcontribs)

Hi,

I looked at the error console in Firebug in Firefox, and I get this error:

Internal error

Internal error

Problematic modules: {"startup":"error"}

load.php?debug=false&lang=en&modules=startup&only=scripts&skin=monobook()load.ph...onobook (line 8)

...e.error) {console.error("Internal error\n\nInternal error\n\nProblematic modules...

Any ideas as to what is causing this error and how to fix it?

Thank You

Ciencia Al Poder (talkcontribs)

Setting $wgShowExceptionDetails to true should give more details about the error. another report about the issue was a missing /tmp directory (or maybe a permission issue)

Reply to "WikiEditor not showing"

Why can I not use /FAQ as a URL? MediaWiki is stealing it!

2
GodsDead (talkcontribs)

It just displays:

The MediaWiki FAQ can be found at: https://www.mediawiki.org/wiki/Manual:FAQ 

Which isn't very helpful, as I cant change this. I dont want to have to use Faq as my URL.

Ciencia Al Poder (talkcontribs)

That's what happens when you configure Short URLs starting at the MediaWiki installation path, setup that's not recommended! (and you now know why)

FAQ is a file in the filesystem, same as index.php, load.php etc.

Reply to "Why can I not use /FAQ as a URL? MediaWiki is stealing it!"

Binary file upload save with a wrong extension

3
Summary by Ciencia Al Poder

solar flares

Gtehrani (talkcontribs)

Hi,

I added $wgFileExtensions in LocalSettings.php to allow uploads of Microsoft Office files i.e. ppts, docx, xlsx. The problem is that when I upload a file with pptx, the upload tool insists on saving it as a docx file. PDf files seem to be immune but not Office files.

Appreciate your help,

George

87.123.14.60 (talkcontribs)

I don't get it. Do you say that, when you have a pptx file and you upload it, the resulting file name ends in docx? Where does this happen? I mean, you can explicitly define the file name you want, right?

Gtehrani (talkcontribs)

Yes, it happened when I used the upload tool to upload a pptx file. I tried twice with the same result. 3 hours later I tried again after checking my scripts, and viola! It's working! Must have been solar flares.

Visual Editor Insert Menu Missing Code Block Option

9
Londonx (talkcontribs)

Hi there was a thread earlier on this but no one actually posted how to get it to work other than a link to some extension. I looked it over and I still can't figure out what's wrong. I use media wiki 1.25 with the matching Visual Editor version. I would encourage the community to post how they fixed something when they get it to work so that we can avoid repeat threads with pleas for help.

Ciencia Al Poder (talkcontribs)

They link to some extension because that extension provides such functionality. Have you tried installing that extension?

Londonx (talkcontribs)

Based on what I see, it is already installed and enabled by default in 1.25. I went ahead and tried "re-installing" it .. no change. Buttons still MIA.

Londonx (talkcontribs)

I can actually insert code into the regular syntax editor and it displays correctly but then when I use visual editor, the code block section gets the green and white lines and the cursor has the red sign.

121.219.226.9 (talkcontribs)

Because VE integration was added in the 1.26 branch.

Londonx (talkcontribs)

I will attempt to upgrade my installation and see what happens. Thank you

70.197.0.61 (talkcontribs)

So as it turns out, you are correct, you have to have minimum version of 1.26 to get the code block to show up along with a matching Visual Editor release.

I went ahead an updated my wiki to 1.26 but unfortunately I keep getting this error

Error loading data from server: parsoidserver-http-bad-status: 404. Would you like to retry?

I went ahead and edited the localsettings.js parsoid config file to look like this:

parsoidConfig.setInterwiki( 'localhost', 'http://localhost/api.php' );

I throw that link in the browser and the API file shows up... but the editor says 404.. no dice... After researching the error, I have found no solution to fix this other than to modify the parsoid config file... help?

Londonx (talkcontribs)

ok everything works now, version 1.26 is where the code block is introduced... that is the minimum version

to overcome the 404 error, please make sure that the following files have these lines properly configured per your wiki

/etc/mediawiki/parsoid/settings.js

exports.setup = function( parsoidConfig ) {

// The URL here is supposed to be your MediaWiki installation root

parsoidConfig.setInterwiki( 'localhost', 'http://localhost/api.php', 'http://localhost/' );

parsoidConfig.serverPort = 8000;

};

/var/www/html/LocalSettings.php

require_once "$IP/extensions/VisualEditor/VisualEditor.php";

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorParsoidURL = 'http://127.0.0.1:8000';

Londonx (talkcontribs)

Again I would encourage the community to post fixes in detail as they figure them out so that we all can save some time...

Connect to https wiki-site api with wikitools.py

4
Carchaias (talkcontribs)

I try to create a little python script and have problems to connect my Wiki .

from wikitools import * 
s = wiki.Wiki('https://aquanautweb.de/testwiki/api.php') 

results in

==== RESTART: C:\Users\XXXXXXX\test_wikitools.py ==== 
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 5 seconds 
URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:590)> trying request again in 10 seconds 

It works with https://en.wikipedia.org or other wikipedia pages. The API on my wiki is turned on so I can send requests via the browser. It works further with another wiki that has no TLS. I think someting is going wrong on the server-side but I have no idea what.

Ciencia Al Poder (talkcontribs)

Your server seems to use TLSv1.0, and that python lib seems to use 1.2 by default. See this SO question

Carchaias (talkcontribs)

Hm, this may be the source. But I can't see where wiki.py from wikitools uses requests

But I not experienced with that.

Ciencia Al Poder (talkcontribs)

true, they not use requests, but httplib2, with the same problem. Here's another answer for httplib. This seems to be a problem with ssl, used by both requests and httplib2

Reply to "Connect to https wiki-site api with wikitools.py"
Temptuousinsolence (talkcontribs)
The "wikimedia/composer-merge-plugin" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).

This tells me exactly what? How am I supposed to require it? Doing it via the normal composer require call from the terminal did not offer anything.

So how to fix it?

TheDJ (talkcontribs)

At which step did you encounter this ?

Temptuousinsolence (talkcontribs)
php composer.phar update
Reply to "wikimedia/composer-merge-plugin"