Project:Support desk

Jump to navigation Jump to search

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".

How to insert templates on bottom of every page?

2
Gaon12 (talkcontribs)

I want to insert templates on bottom of every pages.

However, I would like to exclude some pages. For example, document Front Page.

What should I do?

AhmadF.Cheema (talkcontribs)
Reply to "How to insert templates on bottom of every page?"
Cableguysteve (talkcontribs)

I am recieving this Internal Error - [YbH5qyUNH_vBtE6nESg2fgAAiAA] 2021-12-09 12:42:19: Fatal exception of type "CannotCreateActorException"

I am trying to verify a new account in the instance I have installed. Tried Google and a few other places with no luck.

The process is i go to a special page, review the new account, create the account and that is when the error appears.

I would be thankful for any assistance.

Steve Fulton, UE

AhmadF.Cheema (talkcontribs)
Cableguysteve (talkcontribs)

[YbINUv6o1oGWX-wzmrLcLwABzQc] /mw19/index.php?title=Special:CreateAccount&returnto=Special:ConfirmAccounts/authors CannotCreateActorException: Failed to create actor ID for user_id=6 user_name="David T1423"

Backtrace:

from /home/ch/public_html/mw19/includes/user/ActorStore.php(439)

#0 /home/ch/public_html/mw19/includes/user/User.php(3549): MediaWiki\User\ActorStore->acquireActorId(MediaWiki\User\UserIdentityValue, Wikimedia\Rdbms\DatabaseMysqli)

#1 /home/ch/public_html/mw19/includes/libs/rdbms/database/Database.php(4782): User->{closure}(Wikimedia\Rdbms\DatabaseMysqli, string)

#2 /home/ch/public_html/mw19/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)

#3 /home/ch/public_html/mw19/includes/libs/rdbms/database/DBConnRef.php(668): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#4 /home/ch/public_html/mw19/includes/user/User.php(3551): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure)

#5 /home/ch/public_html/mw19/includes/auth/AuthManager.php(1493): User->addToDatabase()

#6 /home/ch/public_html/mw19/includes/auth/AuthManager.php(1217): MediaWiki\Auth\AuthManager->continueAccountCreation(array)

#7 /home/ch/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(376): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string)

#8 /home/ch/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#9 /home/ch/public_html/mw19/includes/htmlform/HTMLForm.php(718): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#10 /home/ch/public_html/mw19/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()

#11 /home/ch/public_html/mw19/includes/specialpage/LoginSignupSpecialPage.php(318): AuthManagerSpecialPage->trySubmit()

#12 /home/ch/public_html/mw19/includes/specialpage/SpecialPage.php(647): LoginSignupSpecialPage->execute(NULL)

#13 /home/ch/public_html/mw19/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)

#14 /home/ch/public_html/mw19/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)

#15 /home/ch/public_html/mw19/includes/MediaWiki.php(925): MediaWiki->performRequest()

#16 /home/ch/public_html/mw19/includes/MediaWiki.php(559): MediaWiki->main()

#17 /home/ch/public_html/mw19/index.php(53): MediaWiki->run()

#18 /home/ch/public_html/mw19/index.php(46): wfIndexMain()

#19 {main}

Cableguysteve (talkcontribs)
Reply to "CannotCreateActorException"

How to start a conversation like this at the end of page or article

2
Nivek2046 (talkcontribs)

Hi! I am new here. I have not installed any MediaWiki yet.

Are the following things possible?

(1) at the end of a wiki article or page to have a conversation thread just like what we are doing right now?

(2) in the middle of an article or page to have a conversation thread?

(3) let individual users make comments like youtube, the guardian, Financial Times, etc? Is that possible ? I presume this is only possible at the end of an article.

Thanks a million!

AhmadF.Cheema (talkcontribs)
Reply to "How to start a conversation like this at the end of page or article"

Show a link to a random page

2
49.230.30.5 (talkcontribs)

MediaWiki 136.1.

I want to show a link to a random page in my homepage.

I can use the template Special:Randompage

But, I want the link name to be the same as that of the linked article.

How to do that?

AhmadF.Cheema (talkcontribs)
Reply to "Show a link to a random page"

MediaWiki 1.26.4 LocalSettings.php not found.

3
Veera.chettebhaktula (talkcontribs)

Hi,


We have installed mediawiki1.26.4 4 years ago and our site working without any issues until now. From 12/06/2021 we are seeing the above file. We have checked the LocalSettings.php there in the root folder. But still we are getting the error. Need your help.

Samwilson (talkcontribs)
Majavah (talkcontribs)

MediaWiki 1.26 went end of life in early 2017. Please update to a supported version.

Reply to "MediaWiki 1.26.4 LocalSettings.php not found."
BugDroid (talkcontribs)

Hi


on this page https://es.wikipedia.org/wiki/Metro_de_la_Ciudad_de_Mexico

you see an infobox on the right. On its titel with the red background you see a small icon on the right. I havent been able to understand where this icon is commong from, where its been implemented.


can someone help?

Malyacko (talkcontribs)
BugDroid (talkcontribs)
Bawolff (talkcontribs)
BugDroid (talkcontribs)

you say its enabled by default. Could it be that it is disabled on my wiki?

I am trying to build my own mediawiki using wikibase and all the rest. Its not meant for anything, only for me to understand and get into mediawiki.

Everything is working just fine. The page on my wiki looks identicaly to the original on wikipedia. Only the png I mentioned is not there

I do have imported imagenesinfobox and imagenesinfobox.css. When I open the original page and inspect it, I see a bunch of cabecera parameter, also "cabecera.transporte". The latter calls for the png


.cabecera.transporte {

   background:url("//upload.wikimedia.org/wikipedia/commons/3/31/Infobox_Public_Transport.png") no-repeat top right

}


nevertheless, on my page I dont see any cabecera parameters.

Bawolff (talkcontribs)

> you say its enabled by default. Could it be that it is disabled on my wiki?

The user preference (gadget) is enabled by default only on es wikipedia. It would not be enabled by default (or even exist) on your wiki unless you created.

By default i just mean the user preference starts out being checked on Special:preferences, not that it is a default part of mediawiki.


See extension:gadgets for more info.

Reply to "Mysterious Icon"

How to get detailed error-message in API / upload

1
2003:E7:5702:7C00:D9E8:785F:312A:C42B (talkcontribs)

I am using the mw.Api() call for uploading a file. It often works but sometimes fails. In the failure cases I only get back the name of the file instead of a detailed error message. How can I find out about the reason fo the error?

var param = {fileInput, format: 'json', comment, errorformat:"raw"};

  var api = new mw.Api();

  api.upload( fileInput, param )

    .done( function ( data ) {console.log ("API upload returned ", JSON.stringify (data));} )

    .fail( function ( data ) {console.log ("upload failed: ", JSON.stringify (data))} )

The fail call in data returns only the name of the file. How come?

Reply to "How to get detailed error-message in API / upload"
Silva Selva (talkcontribs)
Bawolff (talkcontribs)

Use intitle: operator in the general search field (not the title field).

Help:CirrusSearch might be helpful

Reply to "search-title-disabled"

Infobox at the top in desktop view but after first paragraph in mobile view?

1
Hamburg0815 (talkcontribs)

In the article at https://en.wikipedia.org/wiki/Angela_Davis, the top of infobox is flush with the first line of text. In mobile view, however, it is flush with the second paragraph. How do I this on my wiki without the Infobox template from WP which requires setting up several extensions, scripts, etc.? Is there a simple way to do this?

Reply to "Infobox at the top in desktop view but after first paragraph in mobile view?"

mediawiki trying to parse .png files?

6
69.165.137.183 (talkcontribs)

mediawiki is trying to parse a bunch of my .png files instead of just displaying the picture....any thoughts?

Bawolff (talkcontribs)

Why is that a problem? Can you define "parse", i suspect you mean something other than the usual definition.

Bawolff (talkcontribs)

Just to note, you used parse 100% correctly - sorry about being condescending

69.165.137.183 (talkcontribs)

Warning: Unexpected character in input: '�' (ASCII=28) state=0 in (removed).png on line 814


Parse error: in (removed).png on line 814

Ciencia Al Poder (talkcontribs)

This means your webserver is configured to parse all files on the server as PHP files. This is bad and a security risk. Only .php files should be processed by PHP!

This has nothing to do with MediaWiki, btw.

69.165.137.183 (talkcontribs)

ok thank you very much!

Reply to "mediawiki trying to parse .png files?"