Nothing Special   »   [go: up one dir, main page]

Jump to content

Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(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 version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. 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.
  4. To start a new thread, click the box with the text "Start a new topic".
Mahabarata73 (talkcontribs)

There is a problem with this page and I don't have enough experience to solve it.

The text begins with "The Popups (known in Special:Version as Previews)".

But if you follow the link to the Special:Version page, you will see that there is no "Previews" on this page (nor "Popups" by the way).

I thought of 2 solutions:

  • remove the wrong text on the Extension:Popups page
  • add, in the right table (I don't know which one) of the Special:Version page, the information about this (important) extension.

I think that the best solution is the second one but I don't know who can do it.

If you think solution 1 is better, I can make the change if needed.

Clump (talkcontribs)

Correct, the link is to this wiki's own Special:Version page, and neither is installed here, but it should really be referring to a description of the Special:Version page on the wiki in which that extension is installed. Given the context, perhaps a better link would be to Manual:Developing extensions#Registering features with MediaWiki.

This post was hidden by ToadetteEdit (history)
Reply to "Extension:Popups"

Attempting to get citations going

3
2001:9E8:9379:5500:EDEB:DAEA:294:EE9D (talkcontribs)

Hey y'all,

I'm struggling to get the wikipedia citation system going, i've installed all the extensions and dependencies (Scribuntu and TemplateStyles) and imported the "Category:Citation Style 1 templates" category directly from wikipedia (yes, I do need all its functionality).

Still, Lua is throwing this error every time a formatted citation is attempted to be printed out:

  • Lua error in Module:Citation/CS1/Configuration at line 2083: attempt to index field '?' (a nil value).

you can also see the traceback an the page directly.

(e.g., http://psychopragmatics.com/index.php/Template:Cite_journal)

Is anyone experienced with citations and lua and knows how to fix this?

Thanks and love!

Jonathan3 (talkcontribs)
This post was hidden by ToadetteEdit (history)
Reply to "Attempting to get citations going"

Tabs in Special:Preferences not working

3
Meguumin (talkcontribs)

My wiki is up to date and so are the extensions. I cannot for the life of me figure out how to fix this, and it's affecting other users. This has also been affecting certain extensions to where they also won't function correctly.

The page opens to User Profile, however the Appearance, Edit, and the rest of the tabs are non-functional.

Any help is appreciated.

Ammarpad (talkcontribs)

Open your browser's console and look for errors.

This post was hidden by ToadetteEdit (history)
Reply to "Tabs in Special:Preferences not working"

Problem with VisualEditor and infobox

2
Tang Empire (talkcontribs)

Every time I edit a portable infobox on visual editor, it automatically adds this code to the front of the page which messes up the format:

<aside class="portable-infobox noexcerpt pi-background pi-theme-default pi-layout-stacked">

==<span style="font-size:16px; line-height:120% !important; text-align: center; display: block; padding-top:2px"><big></big> <span style="font-size:80%;"> </span></span>==

</aside><span></span>

<span></span>

does anyone know how to fix this?

This post was hidden by ToadetteEdit (history)
Reply to "Problem with VisualEditor and infobox"

how to create a page on wiki

2
Snchechaninbh (talkcontribs)

how to create a page on wiki

ToadetteEdit (talkcontribs)

The fastest way is type in the search box and click on the redlink in the "Create the page..." to open the editing box in order to create the page.

Reply to "how to create a page on wiki"

Extension:OpenBadges's Special:BadgeView not working.

1
Tang Empire (talkcontribs)

I ran the update script but it still says database error...

/index.php/Special:BadgeView 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?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1146: Table 'u585674696_3tRFj.bqyo_openbadges_assertion' doesn't exist

Function: MediaWiki\Pager\IndexPager::buildQueryInfo (BadgesPager)

Query: SELECT obl_name,obl_badge_image,assertion.obl_badge_id AS `badge_id`,obl_badge_evidence FROM `bqyo_openbadges_assertion` `assertion`,`bqyo_openbadges_class` `class` WHERE obl_receiver = 1 ORDER BY obl_name LIMIT 51

Backtrace:

from /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1236)

#0 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()

#1 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()

#2 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()

#3 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()

#4 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->select()

#5 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call()

#6 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(467): Wikimedia\Rdbms\DBConnRef->select()

#7 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(289): MediaWiki\Pager\IndexPager->reallyDoQuery()

#8 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/IndexPager.php(839): MediaWiki\Pager\IndexPager->doQuery()

#9 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/pager/TablePager.php(308): MediaWiki\Pager\IndexPager->isNavigationBarShown()

#10 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/extensions/OpenBadges/includes/specials/SpecialBadgeView.php(26): MediaWiki\Pager\TablePager->getNavigationBar()

#11 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPage.php(728): SpecialBadgeView->execute()

#12 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run()

#13 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#14 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(960): MediaWiki->performRequest()

#15 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/includes/MediaWiki.php(613): MediaWiki->main()

#16 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(50): MediaWiki->run()

#17 /home/u585674696/domains/heterodontosaurus-balls.com/public_html/index.php(46): wfIndexMain()

#18 {main}

I hope I didn't just dox myself, but please help, I've been trying to figure this out for so long and I don't know what to do...

Reply to "Extension:OpenBadges's Special:BadgeView not working."

Show different versions of a page

2
85.187.27.11 (talkcontribs)

I am trying to create different versions of a page. For example with colored title and without colored title.

Is it possible to create a links to different versions of the history of a page?

Jonathan3 (talkcontribs)
Reply to "Show different versions of a page"

Categories broken after updating to 1.42.3.

1
Laurvin (talkcontribs)

Just in case anyone finds this later, I found the solution here: https://www.reddit.com/r/mediawiki/comments/1axbuyh/problem_with_the_visual_editor/

Setting $wgUsePathInfo = true; in LocalSettings.php.



After updating from 1.39 to 1.42.3 all pages with categories have the same problem:

When I open the page in the Visual Editor the existing categories are shown in the category box at the bottom of the page as red links with these urls; Index.php?title=Category:category name].

If I leave it like that then after saving the page that url shows up at the bottom of the page text and the page no longer has any categories.

If I use the Source Editor instead everything is fine and the category shows up between double brackets.

The steps I took to update:

I uploaded the 1.42.3 zip to the server, had it unzipped to a new directory. I downloaded the latest versions for LabeledSectionTransclusion and Popups and uploaded those to the Extensions folder in the new directory.

I renamed the 1.39 folder to another name and then renamed the 1.42.3 folder to the regular wiki name. Then I ran the update script.

I opened the wiki main page and then saw I forgot to copy the images directory to the new folder, which is what I did next. I then reloaded the main page and everything looked fine.

The first time I edited a page I didn't notice the error at the bottom but after saving I saw what happened and from then on it became clear this is happening every time now.

I've tested by disabling all the extensions except for the editors to see if any of those could be the culprit but I keep getting the same issue.

These are the normally enabled extensions:

wfLoadExtension( 'CodeEditor' );

wfLoadExtension( 'LabeledSectionTransclusion' );

wfLoadExtension( 'PageImages' );

wfLoadExtension( 'ParserFunctions' );

wfLoadExtension( 'Popups' );

wfLoadExtension( 'TextExtracts' );

wfLoadExtension( 'VisualEditor' );

wfLoadExtension( 'WikiEditor' );

I did find the following in the release notes for 1.42:

ParserOutput::getCategories(), deprecated in 1.40, has been removed. You should use ::getCategoryNames() and ::getCategorySortKey() instead.

Maybe that is related but I don't understand how it could be as all the other extensions except for the two mentioned above come bundled with the latest version and should be compatible, one would think.

Could it be something needs to be added or removed from LocalSettings?

I'd love to know what the fix for this is as I used categories on all pages.

Thanks!

Reply to "Categories broken after updating to 1.42.3."

Import Templates from Wikipedia

8
MarinaTheRanger (talkcontribs)

Hi, I'm looking to import templates from Wikipedia, such as Infobox: military conflict or Template: flag but can't figure it out. Can anyone tell me how I can import Templates or do I have to write my own?

Thanks for any help.

TheDJ (talkcontribs)

English Wikipedia has extremely complex infoboxes, and they are pretty difficult to import. You'll need a good dose of knowledge of Wikipedia, and several extensions like ParserFunctions, Scribunto, TemplateStyles. And even then, many Infoboxes now have a level of integrations with Wikidata, which you won't have, that might require you to explicitly REMOVE that code from your imported templates. In many cases it will be easier to make your own simpler version of infoboxes.

Leaderboard (talkcontribs)

It may be worth looking at older versions of the infobox, or those from other wikis, which may be less complex.

MarinaTheRanger (talkcontribs)

Sorry for the late reply, but I'm having trouble viewing anything but the documentation. How could I view the source code for the older infobox versions??

Leaderboard (talkcontribs)

Hi try going to the history of that infobox and scrolling down years back (say 2013 or so). Click View History on the template itself.

MarinaTheRanger (talkcontribs)

I found the version and tried to copy the table content, but when I use the template it doesn't have parameters. Can you help?

Leaderboard (talkcontribs)

Which version and which template?

MarinaTheRanger (talkcontribs)

Nevermind. I got it solved.

Reply to "Import Templates from Wikipedia"

Undocumented Parameters

3
MarinaTheRanger (talkcontribs)

I tried to make an infobox for the first time (copying it from another public domain wiki) but it told me that it had no parameters despite them being in the code. I even made a documentation page with the parameters but it didn't do anything. Can someone with more knowledge about the endless labyrinth of MediaWiki software help?

Bawolff (talkcontribs)
MarinaTheRanger (talkcontribs)

Oh. It was that simple??

Aw, man. Thanks.

Reply to "Undocumented Parameters"