Visual Editor cannot search for images in MediaWiki local uploads - mediawiki

I've installed the latest MediaWiki and the latest Visual Editor, everything is looking great but I have one problem though. All my uploaded images cannot be searched when adding media to the article. Can anybody please enlighten me.

Things are in flux (some tweaks were needed after CirrusSearch), but VisualEditor's MWMediaSearchWidget uses the srsearch API.
In MediaWiki defaults, this will be a simplistic full text MySQL search, which doesn't do stemming or anything hence is very likely to miss results compared to CirrusSearch.
Additionally, and perhaps more importantly (depending on your wiki), it won't include media from remote repositories like Wikimedia Commons. I'm not sure what to do in that case, perhaps the widget should be modified to (also) query the remote repository's API.

Related

Wordpress auto encoding ampersands in only one environment

I'm not much of a server guy so I was wondering if anyone here would know of a basic apache/mysql configuration detail to look for to explain why a cloned wordpress site in one environment would be encoding all ampersands on save when the same site in several other environments doesn't. There's not a whole lot special about the code. It's pretty much raw wordpress and ACF for custom fields.
I'm sure it's not just ampersands too, but that's the character we're using to test with. And really, what is happening is a site we built on our local machines was hosted on media temple, then aws, then wpengine, and now liquid web. All previous hosts have had no issues with this, but now with liquid web we have an encoding problem and they insist this is unrelated to their server configurations, and refuse to help diagnose the issue.
I can run phpinfo() on my local and the liquid web servers, but I am not sure what I would be looking for. Anything that would be auto encoding post values? Not sure. Also not sure if this would be a mysql configuration thing.
Any thoughts?
Naturally, we found the culprit minutes after posting this. Here it is in case anyone else has this issue:
in the wp-config.php file we noticed this:
define('CUSTOM_TAGS', true);
Evidently, this runs the wp_kses function on post input. We didn't add this to the config file, but considering plugins can modify this file, it is plausible that we had tried out plugins for things and decided against them, and upon uninstall, the plugin didn't clean up after itself.
Who knows how this can end up in the wp-config.php file, but it did. So if you experience the & bug, have a look there.

Testing image uploads in Wikimedia Commons

I want to use pywikibot to upload a batch of images into Wikimedia Commons.
However, when you add images in Commons, you can't easily delete them if you made a mistake.
Is there a way to locally install Wikimedia Commons for validation and testing ?
I tried installing mediawiki, but I can't seem to upload images using pywikibot.
Is there some specific procedure to do that?
Way more effort than just uploading and saying sorry if it goes wrong (just don't do batch operations until you are reasonably confident the script works; also see Guide to batch uploading and bot requests if you haven't yet). Also, licensing tends to be just as easy to get wrong as the technology; if you are not sure about what you are doing, ask first.
You can also use the test wiki for testing the bot (but no mass uploads please, just a few test files). Note it does not support structured data in image descriptions, unlike Commons. (There is a Commons test wiki but not for long.)
If you want to install a local MediWiki anyway, the mediawiki package is the easiest way (it will be dissimilar from Commons in a number of ways, but most of them probably don't matter much), make sure it is properly configured for uploading (not sure if the Debian package does that out of the box), then generate a wiki family for pywikipediabot.

Reading XML Without a webserver

I've got a small experimental project on the go that uses an embedded system to show web pages.
The major draw back is that the embedded system doesn't have any form of server on it (No lovely web server languages allowed).
My current setup for testing any potential winning solution is locally (Just in a document C:/users/me/test/index.html) and then also testing it in wamp.
I've looked into using JS or JQuery but evey resource i've found only ever works when I test it within wamp, which isn't a viable solution for me.
I have a couple of questions:
Is it even possible to read an XML document without any form of
server technology?
If so, could someone post some resources please? I've found a lot of similar topics to mine, but none really cover my predicament.
If this isn't possible, are there any other technologies I could use to give the same output?
Thanks

How do I open a directory using Html when the files and html are all on a DVD

I work for a large company with agents all over the U.S. We want to upgrade our agents to Open Source office suite (Apache Open Office) from the chaotic mismatch of different versions used now. Problem is many of our people are barely computer literate.
I need to build a menu in Html to install the proper version on their systems from a DVD I have downloaded the files onto.
I can code some Html and some java but not a lot. It would help if it were cross browser since some use Macs but most use PCs.
I have researched for days and find many references to no access from the Web bit surely there is a way to do it offline?
Thanks in Advance.
I'm not sure that HTML is really what you want here. HTML is used to create web pages, but it's not a programming language and is not well suited to executing commands or performing tasks. JavaScript is the most common programming language used in web browsers, but you will have problems accessing a user's local file system for security reasons.
The best option I can think of is to give the installers appropriate names based on OS, and include documentation that clearly explains to users what they need to do. HTML may or may not be suitable for the documentation depending on your needs.
I want to thank everyone for their help.
Do to time restraints I believe the fastest solution is to do a simple text document in several forms describing the file choices and links to the files.
This way may not be eloquent but it is efficient.
Thanks for your time.

Silently install voices for a ttsEngine extension

I'm creating a speech extension for my webpage in order to make it accessible for blind people. This works good so far, now I wanted to have the two voice engines I picked installed automatically. And this has proven to be really difficult:
I've been through tons of info on how to approach this. The easiest way would be to just open the voice (ttsEngine)'s web page in the Chrome store - but then the blind people would have to go through all this hassle as well.
Most other approaches require computer permissions I do not have, e.g. messing with the user's file system or registry.
My question: Is there really no easy way to require, include or preinstall another extension for your extension, so it installs in the background (silently)?
Thanks for hearing me out and providing some help!
Kind regards,
Roman
Do you have permission to modify / extend / redistribute the other extensions? they could probably be merged into a single extension with your code, if for example they are open source.
I have also posted this issue in google groups's Chromium-extensions, there the result was that such a thing is not (yet?) possible with extensions only.
It is true that if they were open source I could maybe include them into my project, yet these are not.
For now it seems I have to either do it with "management" like suggested in the link or create an installable that messes with the Chrome extensions.