Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Skizzerz

  1. Can you provide the full error message? It should tell you why it's unable to delete that directory. If it's a permissions issue, you'll need to ensure that composer is running under the correct account name. Your host should be able to assist you with determining that.
  2. This can be achieved via the preloading feature, see https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text That link also has some extensions that can automatically insert the preload text when trying to create a new page.
  3. It should be safe to ignore those errors. If you are not planning on developing MediaWiki, it would be best to suppress those by turning error_reporting off in your php.ini
  4. Yes, you need a valid working email setup for most email providers to not outright reject emails from you. This is largely outside the scope of wiki management and in the scope of general server management. Set up SPF records in your DNS to let providers know which servers are authorized to send email from your domain Ensure your IP address is not listed in any DNS blacklists, and if it is, go through the processes of those lists to get it delisted Set up MX records in your DNS so that you can receive bounce emails which contain further details of rejections In MediaWiki, configure the outgoing email address appropriately With all of those set up, check system logs to ensure that the mails are being accepted and sent onwards. If they are, checking for bounce replies is helpful to see why something is rejected. Otherwise check firewalls and other things that may block connectivity. If you are attempting to send email from a home server, it is possible your ISP is implementing blocking of their own and you may need a completely different setup (such as connecting to a remote SMTP server to send email).
  5. This is a browser security feature; most browsers do not allow clicking on file links from an http/https website. There is no solution to make it work, upload the relevant file locally to your wiki and link to it using regular wikilinks.
  6. This forum is not for Wikipedia support, so we can't provide much help to you here. The easiest thing to do would be to try resetting your password while on a different IP (for example, if you got that message on your home wifi, try a cellular connection). Failing that, your best bet is to reach out to the Wikipedia admins for assistance; the block message should contain some instructions on how to do that.
  7. By default the extension will omit the tracking code if your browser sends a "Do Not Track" signal to the website. I am guessing this is what is happening for you, as some more privacy-focused browsers send this signal by default, and most other browsers can be configured to send that signal in their privacy settings. The extension page on mediawiki.org goes into more detail on how to configure this behavior, as well as a means of exempting user groups from being tracked.
  8. If you still have access to your old database server (the server itself, not just backup files): Export it as a .sql file using the mysqldump program via the command line Copy the .sql file generated to the new computer Import the .sql file using the mysql program via the command line If you no longer have access to the old database server, you are potentially out of luck if your existing .sql file did not import successfully.
  9. The location of your real files should not match the virtual directory you set up for short URLs. Good: Files in /w, e.g. https://example.com/w/index.php Article path in /wiki, e.g. https://example.com/wiki/Main_Page Bad: Files and article path in the same location (e.g. both in /wiki) Files and/or article path in website root You are in one of the "bad" cases which is why those rewrite rules are not working for you. Extra care is required when doing one of the configurations listed above as "bad", and even with a correct configuration certain article names matching file or directory names will become impossible to create on your wiki.
  10. If it's big and may cause timeouts on the web, use the importDump.php maintenance script from the command line. This involves first uploading the xml file onto the server somewhere, and then running the script on the file. It will still take a long time, but will not time out because maintenance scripts do not have time limits on execution.
  11. I recommend taking a look at the help page about Templates. It goes over what templates do (and don't do), and how you can easily copy templates from one wiki to another. Keep in mind that many templates require extensions such as ParserFunctions, Scribunto, or TemplateStyles to be installed on your wiki before they will work properly. You can find that help page at Help:Templates on mediawiki.org. You don't need a template to make an FAQ page -- the template is just some additional wikitext behind the scenes.
  12. You can define the MW_CONFIG_FILE constant somehow (such as via the auto_prepend_file php.ini setting) to be the absolute path to the settings file you wish to load. Note that this must be a path on your server's filesystem, not a URL.
  13. Unfortunately, there is no way to accomplish this built into MediaWiki, and I do not see any extensions currently existing that perform this task.
  14. Lack of highlighting generally indicates that the call to pygments is failing for some reason or another. You may wish to temporarily enable debug logging to better understand why this is happening. Chances are the issue lies with your choice of OS: I believe that the extension only ships a linux binary of pygments, but not a mac binary. You may need to install pygments separately and point to it via $wgPygmentsPath.
  15. (Moderation: moved to MediaWiki Support forum and removed personal details from message) The functionality you're after is achieved with the MultimediaViewer extension.
  16. Blank page indicates a PHP error: see here for how to diagnose it: https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#You_see_a_Blank_Page I note that your wiki is currently running 1.31.0 which has known security vulnerabilities. You should ensure you always keep MediaWiki up-to-date. Right now, that means upgrading to one of the following versions: 1.31.12 LTS (EOL June 2021) 1.35.1 LTS (EOL September 2023)
  17. MediaWiki 1.30 went end of life a year and a half ago (June 2019), and is no longer receiving any security or maintenance updates. You should definitely upgrade that wiki if it is exposed to the internet in any fashion. See Version lifecycle for more information on MediaWiki EOL dates. For PHP and MySQL versions, check the Compatibility page The general recommendation is to install the dependencies (apache, PHP, mysql) via your distribution's package manager and then keep them updated via said package manager on a regular basis. MediaWiki remains compatible with the older versions present in package managers from e.g. Debian stable for quite some time. Unless you are doing a very exotic setup (or if you're on Windows) there's generally no need to install the underlying dependencies manually.
  18. If you're already on Apache 2.4.x, upgrading it to a later version of 2.4.x shouldn't introduce any issues with upstream applications. There should be nothing you need to do for your wiki, just upgrade apache. (that said, you should also endeavor to keep the rest of your tech stack up to date, which means updating mysql, mediawiki, your server's kernel, etc. as things come in)
  19. Check Special:Version on the wiki to see if they have any extensions that seem related to the feature in question, and then searching mediawiki.org about it is your best bet. There's no one answer that will 100% work for any arbitrary feature. For things that appear in the page itself, editing/viewing the source of the page may help as well (you may need to go through some nested template rabbit holes first though)
  20. That isn't an extension, it's built into MediaWiki. See https://www.mediawiki.org/wiki/Manual:Collapsible_elements for more details on how to use it.
  21. Tables don't really support this feature. Given that you are displaying a grid of images, you should actually be looking into making a gallery, which is responsive by default.
  22. On CentOS, you would use the yum/dnf package manager (depending on what version of CentOS you have installed) to install the dependencies that MediaWiki needs, such as your webserver, database server, and PHP. A more step-by-step guide is available at https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux, but I have not checked it over for accuracy. It appears reasonably up-to-date however.
  23. You need to login to the API first (generally this is done by using a bot password generated at Special:BotPasswords). You will need to ensure the bot password used has the appropriate scopes to do whatever you want it to do (such as edit pages). The login API will attempt to set some cookies. You are required to save these cookies in your python script and present them to all future API requests, so it can pull up your logged-in session.
  24. You need to use the #tag parser function, see https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous for more information on that. <ref> does not allow embedding any wiki markup inside of it, but {{#tag:ref}} does Example (untested, may require modification to work): {{#tag:ref|Contents of the primary footnote/reference goes here.{{#tag:ref|Secondary footnote/reference goes here|name=secondary}}|name=primary}} This example is the equivalent of the following. Note the following markup does not work, this is meant to just give a better visualization of what the above text is doing: <ref name="primary">Contents of the primary footnote/reference goes here.<ref name="secondary">Secondary footnote/reference goes here</ref></ref>
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.