Project:Support desk

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

{ANSWERTABLE} placeholder only shows questions, not answers!

1
86.28.181.201 (talkcontribs)

Hello,

I am setting up email notifications for survey responses.

I want to be able to see the survey responses in the email, so have selected the 'detailed' notifications which include {ANSWERTABLE}. However, when I receive the email, it only lists the survey questions and NOT the answers to the questions. Am I doing something wrong?

Thanks for your help!

Reply to "{ANSWERTABLE} placeholder only shows questions, not answers!"

How do I make certain pages only be able to be viewed by me but later be able to be viewed by everyone?

4
Dark gundam (talkcontribs)

Odd question but I'm thinking of one day making my wiki public, for my story's and stuff, but I also use it to take notes and stuff, mainly for said story's. So I was wandering if it's possible to make specific pages only accessible and viewable by me, or specific users, but later make them be able to be viewed by everyone.

I'm fine with extentions. As long as it's not something I have to go into the code and type every single page, which would take far to long and be far to tedious. Do to the sheer amount I plan to add. Preferably a toggle, button or a tag I add to the page.

Bawolff (talkcontribs)

Mediawiki doesn't have great options for this, but perhaps putting your private pages in specific namespace (you can move after) and using extension:Lockdown

Dark gundam (talkcontribs)

Stupid question, how would I go about doing that, setting up namespaces i mean? To be honest I haven't heard of namespaces until now.

Bawolff (talkcontribs)
Reply to "How do I make certain pages only be able to be viewed by me but later be able to be viewed by everyone?"
217.95.165.151 (talkcontribs)

For an extension I need to obtain the parsed and fully rendered, formatted HTML from a subsection.

I have a content object in `$content` and can get sections via `$content->getSection("3")` and can proceed with $`getText()` but what I actually need is something like `$content>getSection("3.1")`

Unfortunately this returns `false`.

However, I do get the text of the entire section via `$content->getSection("3.0")->getText()` so I am a bit confused...

This is with 1.38.0 (e5cd267)

Bawolff (talkcontribs)

I'm not 100% sure, but i believe this uses just incrementing section numbers not hierarical.

So for example:

==A==
1
===B===
2
===C===
3
==D==
4

Section 1 includes all of section A including B and C (but not D), where section 2 is just B, section 3 is just C and section 4 is just D.

Reply to "Looking for subsection text"

How to host MediaWiki on the dark web?

2
Mina Saif (talkcontribs)

I've seen the hidden wiki on the dark web, and I need to know how to set up a MediaWiki website on the dark web but with a more updated version (like 1.39.0) than the one which is used in the hidden wiki. Could someone explain it to me step by step?

Bawolff (talkcontribs)

Its mostly the same as a normal MediaWiki setup. TOR mostly operates mostly on the layer below mediawiki. The MediaWiki part of the setup is no different.

If you have strong privacy requirements, I would recommend hiring a security expert to ensure your setup is secure and correct.

Reply to "How to host MediaWiki on the dark web?"

how do I run mediawiki on my android phone or cloud?

2
Dark gundam (talkcontribs)

Odd question but is it possible to do this? What I mean is not to load it, as that's done through special skins abd stuff, but run it, like with xampp. I don't want to get a third party hosting service yet but I want to be able to access my mediawiki from anywhere.

Basically is it possible to run something like xampp, or similar, from my phone or a cloud service and be able to access mediawiki from my phone or computer? Preferably the cloud, or atleast access it on the cloud, as my current situation has made me rethink about safe keeping important data.

Bawolff (talkcontribs)

Directly on your phone is probably hard. Its definitely possible, but there would be effort involved.


On the cloud is easy and is the normal way that mediawiki is operated. Normally you would get a VPS from a cloud provider and install mediawiki on it. This does cost money. A popular budget option is https://digitalocean.com (about $4/month) but there are lots of options out there.

Reply to "how do I run mediawiki on my android phone or cloud?"

Error contacting the Parsoid/RESTBase server (HTTP 400)

6
KatastrophenKommando (talkcontribs)

On the wiki https://wiki.hytalehub.com/Main_Page the Visual Editor isn't working. Its saying "Error contacting the Parsoid/RESTBase server (HTTP 400)". When i try to create an userpage/page which isnt in the main article space it's working but you can't save it (--> same error).

The api says:

{ "error": { "code": "apierror-visualeditor-docserver-http", "info": "Error contacting the Parsoid/RESTBase server (HTTP 400)", "*": "See https://wiki.hytalehub.com/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes." } }

How can i fix it? Its on a ngnix server

Thank you! :)

5.193.68.230 (talkcontribs)

It sounds like you are running your wiki behind cloudflare.

try this settings within your server block,

        location /rest.php/

        {

                try_files $uri $uri/ /rest.php?$query_string;

        }

KatastrophenKommando (talkcontribs)

Hey, thank you! ^^ I putted it on the end:

EntryPoint::main();

{

                try_files $uri $uri/ /rest.php?$query_string;

        }

Sadly its not working or should i put it before EntryPoint?

5.193.68.230 (talkcontribs)

you need to add this code to /var/nginx/sites-available/yoursite.conf

5.193.68.230 (talkcontribs)

sorry, /etc/nginx/sites-available/yoursite.conf

KatastrophenKommando (talkcontribs)

Hey :) Thank you, i have sadly currently no root account to edit it so i have to ask the admin

Reply to "Error contacting the Parsoid/RESTBase server (HTTP 400)"
BaffledBuffalo (talkcontribs)

I updated our MediaWiki from 1.32 to 1.39. After the login, the following error message appears on all (previously existing) pages: This page does not contain any text at the moment. You can create it, search its title on other pages or view the related logs. Interestingly, Special:AllPages lists all articles. Is this behavior due to a faulty migration of the database? Unfortunately, I don't get any error messages showing me a possible cause of the problem (even after using the debugging toolbar). I would be very happy to receive any suggestions that would help me to solve the problem. Thanks in advance!

Bawolff (talkcontribs)
BaffledBuffalo (talkcontribs)

Thanks! Are there typically any indicators for this? Can I check this manually in the database? Regarding the cleanupUsersWithNoId.php script, I'm not sure how to choose the prefix parameter. What would --prefix '*' do exactly? A look into the script couldn't reveal that (at least for me).

Bawolff (talkcontribs)

The best way you can tell, is through looking at the database, looking at the page table, find the entry for the missing page, look at the page_latest field, find the revision table entry where the rev_id matches the page_latest, and check the rev_actor field. If rev_actor is 0 then this is the problem you have. If it isn't than the problem is something else. If you are using sql, do a query [i havent tested this query] like: SELECT * FROM page WHERE page_title = "Main_Page" and page_namespace=0 left join revision on page_latest = rev_id left join actor on rev_actor=actor_id;


The prefix option just renames users who arent real users to have that prefix.

Some people report best results using cleanupUsersWithNoId is you use it before upgrading, so if you have a backup it might be better to try it before doing the upgrade.

140.180.240.87 (talkcontribs)

Did you guys fix this? Any solution would be much appreciated!!

BaffledBuffalo (talkcontribs)

Not yet, unfortunately.

Reply to "Pages seem to be gone"

Update From 1.38.4 To 1.39 Ends With An SQL Error

2
Gustav.zone (talkcontribs)

Hello


We got this error after automatic upgrade to v 1.39:

Deprecated: Caller from MediaWiki\User\UserOptionsManager::loadOptionsFromDb ignored an error originally raised from MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds: [1054] Unknown column 'rev_actor' in 'field list' in /path/to/rootdir/includes/debug/MWDebug.php on line 381

MediaWiki internal error.

Original exception: [Y4sC-agvWrsHVKR4EV9SnQABNxQ] /Esileht Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Error 1054: Unknown column 'rev_actor' in 'field list'

Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds

Query: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `zudn_revision` JOIN `zudn_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `zudn_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `zudn_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) JOIN `zudn_page` ON ((page_id = rev_page)) LEFT JOIN `zudn_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE rev_id = 22052 LIMIT 1


Can we do something before the update to fix this issue or is it caused by the installer (Installatron in this case)?

Would manual update work?


Thank you

Gustav

Bawolff (talkcontribs)

Did you run update.php? This is the type of error you would get if update.php was not run. (Although you would probably have to be going from a version earlier than 1.38)


Note: mediawiki does not have a builtin auto upgrade feature.

Reply to "Update From 1.38.4 To 1.39 Ends With An SQL Error"
M4tinbeigi (talkcontribs)

I get this error

where is the problem from?

[03-Dec-2022 10:49:14 Asia/Tehran] PHP Deprecated:  Non-static method Counter::wfParserFunctionCounter_Render() should not be called statically in /home/niir/public_html/includes/parser/Parser.php on line 5023

Malyacko (talkcontribs)

That is not an error but a warning. :) Please see "Post a new question" in the sidebar here.

Bawolff (talkcontribs)

Its coming from an extension so you could check if your extensions are up to date.

Reply to "Error in Parser.php"

I can't get the citations to work

3
216.227.112.52 (talkcontribs)

I can't get my citations to work and I'm wondering if I have to install more extensions? I just upgraded to the latest version of the software and have the citations extensions installed, but the cite tags don't parse. I'm confused about what else I have to do to get it to work. I read something about needing templates to make citations work, but other sources never mention templates. I do not have the cite option in my menu in the visual editor, if that makes a difference. I'm lost on this one!

Bawolff (talkcontribs)

Is cite listed in Special:version on your wiki?


Does the <ref>citation here</ref> syntax work in the non-visual wikitext editor?

216.227.107.34 (talkcontribs)

Thank-you for replying! Ahh, no, cite is not listed in Special:version and that makes my answer to your second question obvious, but no, the <ref> syntax doesn't work in the non-visual editor.

Is there a special process I need to go through to install the additional extensions? The first install I did was automatic, the second was manual. The extensions are all uploaded, but none are listed.

However, now that I know this I was able to figure out that I need to add the extensions to my local settings file and it looks like I'm good to go! Thank you so much!!!

Reply to "I can't get the citations to work"