Hi, I am trying to transclude a special page created by Extension:HitCounters on a wiki's landing page. The page displays the most popular articles in the form of a QueryPage. I found a rather old discussion concerning ways to transclude additional special pages (Manual talk:Special pages#Make special page transcludable) but I don't know if this is applicable to a QueryPage.
Project:Support desk
You have to create a method in your special page called isIncludable that returns true.
hi guys!
I was sure I'd find something quickly on this, but getting stuck it seems - and cannot find exactly the same error which is weird
basically trying to restore my old wiki XML dump on newer wiki, which is running on Synology
- MediaWiki 1.39.2
- PHP 8.0.28 (fpm-fcgi)
- MariaDB 10.11.2-MariaDB
- ICU 64.2
the file is quite big and has multiple languages in it (mostly english, but also Russian and Japanese etc).
what else can I try? I am hoping that I can import it like this (without having to restore older files & try to match MySQL version for mysqldump which I also have etc etc).
appreciate any tips !
user@Syn:/var/services/web_packages/mediawiki/maintenance$ php74 importDump.php --conf ../LocalSettings.php < /volume1/Syn/User/mediawiki_backups/wikidb_20140913.xml
MWException from line 724 of /volume1/web_packages/mediawiki/includes/import/WikiImporter.php: Expected <mediawiki> tag, got mysqldump
#0 /volume1/web_packages/mediawiki/maintenance/importDump.php(364): WikiImporter->doImport()
#1 /volume1/web_packages/mediawiki/maintenance/importDump.php(305): BackupReader->importFromHandle(Resource id #760)
#2 /volume1/web_packages/mediawiki/maintenance/importDump.php(139): BackupReader->importFromStdin()
#3 /volume1/web_packages/mediawiki/maintenance/includes/MaintenanceRunner.php(309): BackupReader->execute()
#4 /volume1/web_packages/mediawiki/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#5 /volume1/web_packages/mediawiki/maintenance/importDump.php(369): require_once('/volume1/web_pa...')
#6 {main}
just for reference beginning of this XML file is
<?xml version="1.0"?>
<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<database name="wikidb">
<table_structure name="mw_archive">
<field Field="ar_id" Type="int(10) unsigned" Null="NO" Key="PRI" Extra="auto_increment" Comment="" />
<field Field="ar_namespace" Type="int(11)" Null="NO" Key="MUL" Default="0" Extra="" Comment="" />
<field Field="ar_title" Type="varbinary(255)" Null="NO" Key="" Default="" Extra="" Comment="" />
<field Field="ar_text" Type="mediumblob" Null="NO" Key="" Extra="" Comment="" />
<field Field="ar_comment" Type="tinyblob" Null="NO" Key="" Extra="" Comment="" />
<field Field="ar_user" Type="int(10) unsigned" Null="NO" Key="" Default="0" Extra="" Comment="" />
<field Field="ar_user_text" Type="varbinary(255)" Null="NO" Key="MUL" Extra="" Comment="" />
<field Field="ar_timestamp" Type="binary(14)" Null="NO" Key="" Default="" Extra="" Comment="" />
<field Field="ar_minor_edit" Type="tinyint(4)" Null="NO" Key="" Default="0" Extra="" Comment="" />
<field Field="ar_flags" Type="tinyblob" Null="NO" Key="" Extra="" Comment="" />
<field Field="ar_rev_id" Type="int(10) unsigned" Null="YES" Key="MUL" Extra="" Comment="" />
<field Field="ar_text_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" />
<field Field="ar_deleted" Type="tinyint(3) unsigned" Null="NO" Key="" Default="0" Extra="" Comment="" />
<field Field="ar_len" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" />
<field Field="ar_page_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" />
<field Field="ar_parent_id" Type="int(10) unsigned" Null="YES" Key="" Extra="" Comment="" />
<field Field="ar_sha1" Type="varbinary(32)" Null="NO" Key="" Default="" Extra="" Comment="" />
<field Field="ar_content_format" Type="varbinary(64)" Null="YES" Key="" Extra="" Comment="" />
<field Field="ar_content_model" Type="varbinary(32)" Null="YES" Key="" Extra="" Comment="" />
<key Table="mw_archive" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="ar_id" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="1" Column_name="ar_namespace" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="2" Column_name="ar_title" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="name_title_timestamp" Seq_in_index="3" Column_name="ar_timestamp" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="usertext_timestamp" Seq_in_index="1" Column_name="ar_user_text" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="usertext_timestamp" Seq_in_index="2" Column_name="ar_timestamp" Collation="A" Cardinality="0" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_archive" Non_unique="1" Key_name="ar_revid" Seq_in_index="1" Column_name="ar_rev_id" Collation="A" Cardinality="0" Null="YES" Index_type="BTREE" Comment="" Index_comment="" />
<options Name="mw_archive" Engine="InnoDB" Version="10" Row_format="Compact" Rows="0" Avg_row_length="0" Data_length="16384" Max_data_length="0" Index_length="49152" Data_free="5242880" Auto_increment="1" Create_time="2014-09-13 02:23:19" Collation="binary" Create_options="" Comment="" />
</table_structure>
<table_data name="mw_archive">
</table_data>
<table_structure name="mw_category">
<field Field="cat_id" Type="int(10) unsigned" Null="NO" Key="PRI" Extra="auto_increment" Comment="" />
<field Field="cat_title" Type="varbinary(255)" Null="NO" Key="UNI" Extra="" Comment="" />
<field Field="cat_pages" Type="int(11)" Null="NO" Key="MUL" Default="0" Extra="" Comment="" />
<field Field="cat_subcats" Type="int(11)" Null="NO" Key="" Default="0" Extra="" Comment="" />
<field Field="cat_files" Type="int(11)" Null="NO" Key="" Default="0" Extra="" Comment="" />
<key Table="mw_category" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="cat_id" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_category" Non_unique="0" Key_name="cat_title" Seq_in_index="1" Column_name="cat_title" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<key Table="mw_category" Non_unique="1" Key_name="cat_pages" Seq_in_index="1" Column_name="cat_pages" Collation="A" Cardinality="40" Null="" Index_type="BTREE" Comment="" Index_comment="" />
<options Name="mw_category" Engine="InnoDB" Version="10" Row_format="Compact" Rows="40" Avg_row_length="409" Data_length="16384" Max_data_length="0" Index_length="32768" Data_free="5242880" Auto_increment="41" Create_time="2014-09-13 02:23:19" Collation="binary" Create_options="" Comment="" />
</table_structure>
<table_data name="mw_category">
<row>
<field name="cat_id">1</field>
<field name="cat_title">Debian</field>
<field name="cat_pages">18</field>
<field name="cat_subcats">0</field>
<field name="cat_files">0</field>
importDump.php only accepts XML dumps generated from Special:Export or Manual:dumpBackup.php
Your XML dump seems to be a *database* dump, which is more low-level than MediaWiki's dumps. You should import it directly to the mysql/mariadb database, not with MediaWiki.
thanks @Ciencia Al Poder !
I just checked what script I used, it seems like it was dumpBackup.php indeed
I do have a second set of pure .sql files as well, those are indeed created by mysqldump (and those I am trying not to use due to old version)
php /usr/share/mediawiki/maintenance/dumpBackup.php --full --output=bzip2:wikixml-$(date '+%Y%m%d').tar.bz2
dumpBackup.php doesn't generate this kind of XML, that's why you're getting the error in the first place.
See https://stackoverflow.com/questions/43699791/import-mysql-xml-dump for more information regarding importing your XML (mysql) dump
I am facing this problem and I have tried opening php.ini file and deleting ; this from extension I am using Xampp local host for all process can somone help to get out fro this.
MediaWiki 1.41 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- intl (more information)
You need to install the PHP intl extension. I am not sure how to rephrase the error message to make it clearer, please elaborate what is unclear.
The problem as I has mentioned is the exact problem it says for installation of php so how could I do it.
What happened when you deleted the ; ?
Did you restart xampp? You have to restart for changes to take effect
I have restarted xamppp but it's not working.
It is still not clear to me: Did you successfully install the PHP intl extension?
I am confused in actually how to install it I have't installed it yet.
That depends on your operating system. Please refer to PHP documentation as this question is not related to MediaWiki itself but to PHP (which MediaWiki uses).
From where can I get help of this topic at all.
I moved the wiki to a new server location and now when you click on the edit button you get an error and it doesnt open up.
[36608ab44f7e307376a5e9ba] Exception caught: Could not open '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128'.
For the moving proceedure I simply moved the files and database and changed LocalSettings to reflect the new server location. I also moved the temp file to outside of the website folders and relinked. The temp folder has the same permissions as it did on the other server.
This file '/home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-12' does not exist in this location - it also isn't on the old server either. I wonder if there is another step I need to run to ensure everything works as it should? Or to recreate these missing files!
I can see visual editor is in the extensions folder and this is set
wfLoadExtension( 'VisualEditor' ); is set in the settings
On the help on here it says I will need to configure the parasoid settings but I can't find anything about parasoid in the file structure and no mention of any of the folders it says the file should be located.
/etc/mediawiki/parsoid/config.yaml
Is parasoid something I need to install somewhere? I feel as if there's a setup script or something I should be running?
Just delete /home/user_13589/tmp_zswknl/mw-GlobalIdGenerator1021-UUID-128 . The error means wrong permissions, but file will be recreated if deleted.
"Set the location of your citoid service instance in your wiki's LocalSettings.php
"
where can I find cityid service instance?
I have moved the database and files to a new server and have tried to get Media Wiki working.
I get a blank page with the error pasted below.
MediaWiki internal error.
Original exception: [905b5c01c455a15057df55c8] / 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 'app_13859.mwuf_l10n_cache' doesn't exist
Function: LCStoreDB::get
Query: SELECT lc_value FROM `mwuf_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Backtrace:
from /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1236)
#0 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()
#1 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()
#3 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#4 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1334): Wikimedia\Rdbms\Database->select()
#5 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectField()
#6 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call()
#7 /home/user_13859/app_13859/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(726): Wikimedia\Rdbms\DBConnRef->selectField()
#8 /home/user_13859/app_13859/includes/language/LCStoreDB.php(65): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#9 /home/user_13859/app_13859/includes/language/LocalisationCache.php(559): LCStoreDB->get()
#10 /home/user_13859/app_13859/includes/language/LocalisationCache.php(606): LocalisationCache->isExpired()
#11 /home/user_13859/app_13859/includes/language/LocalisationCache.php(516): LocalisationCache->initLanguage()
#12 /home/user_13859/app_13859/includes/language/LocalisationCache.php(396): LocalisationCache->loadSubitem()
#13 /home/user_13859/app_13859/includes/language/LocalisationCache.php(412): LocalisationCache->getSubitem()
#14 /home/user_13859/app_13859/includes/language/MessageCache.php(1235): LocalisationCache->getSubitemWithSource()
#15 /home/user_13859/app_13859/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang()
#16 /home/user_13859/app_13859/includes/language/MessageCache.php(1075): MessageCache->getMessageFromFallbackChain()
#17 /home/user_13859/app_13859/includes/language/Message.php(1485): MessageCache->get()
#18 /home/user_13859/app_13859/includes/language/Message.php(972): Message->fetchMessage()
#19 /home/user_13859/app_13859/includes/language/Message.php(1059): Message->format()
#20 /home/user_13859/app_13859/includes/title/MalformedTitleException.php(61): Message->text()
#21 /home/user_13859/app_13859/includes/title/MediaWikiTitleCodec.php(101): MediaWiki\Title\MalformedTitleException->__construct()
#22 /home/user_13859/app_13859/includes/title/MediaWikiTitleCodec.php(411): MediaWiki\Title\MediaWikiTitleCodec::MediaWiki\Title\{closure}()
#23 /home/user_13859/app_13859/includes/title/Title.php(2756): MediaWiki\Title\MediaWikiTitleCodec->splitTitleString()
#24 /home/user_13859/app_13859/includes/title/Title.php(510): MediaWiki\Title\Title->secureAndSplit()
#25 /home/user_13859/app_13859/includes/MediaWiki.php(100): MediaWiki\Title\Title::newFromURL()
#26 /home/user_13859/app_13859/includes/MediaWiki.php(189): MediaWiki->parseTitle()
#27 /home/user_13859/app_13859/includes/MediaWiki.php(908): MediaWiki->getTitle()
#28 /home/user_13859/app_13859/includes/MediaWiki.php(613): MediaWiki->main()
#29 /home/user_13859/app_13859/index.php(50): MediaWiki->run()
#30 /home/user_13859/app_13859/index.php(46): wfIndexMain()
#31 {main}
Exception caught inside exception handler: [905b5c01c455a15057df55c8] / 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 'app_13859.mwuf_page' doesn't exist
Function: MessageCache::loadFromDB(en)-big
Query: SELECT page_title,page_latest FROM `mwuf_page` WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
Backtrace:
from /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1236)
#0 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException()
#1 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(679): Wikimedia\Rdbms\Database->reportQueryError()
#3 /home/user_13859/app_13859/includes/libs/rdbms/database/Database.php(1383): Wikimedia\Rdbms\Database->query()
#4 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->select()
#5 /home/user_13859/app_13859/includes/libs/rdbms/database/DBConnRef.php(351): Wikimedia\Rdbms\DBConnRef->__call()
#6 /home/user_13859/app_13859/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(708): Wikimedia\Rdbms\DBConnRef->select()
#7 /home/user_13859/app_13859/includes/language/MessageCache.php(606): Wikimedia\Rdbms\SelectQueryBuilder->fetchResultSet()
#8 /home/user_13859/app_13859/includes/language/MessageCache.php(504): MessageCache->loadFromDB()
#9 /home/user_13859/app_13859/includes/language/MessageCache.php(421): MessageCache->loadFromDBWithMainLock()
#10 /home/user_13859/app_13859/includes/language/MessageCache.php(341): MessageCache->loadUnguarded()
#11 /home/user_13859/app_13859/includes/language/MessageCache.php(1301): MessageCache->load()
#12 /home/user_13859/app_13859/includes/language/MessageCache.php(1206): MessageCache->getMsgFromNamespace()
#13 /home/user_13859/app_13859/includes/language/MessageCache.php(1177): MessageCache->getMessageForLang()
#14 /home/user_13859/app_13859/includes/language/MessageCache.php(1075): MessageCache->getMessageFromFallbackChain()
#15 /home/user_13859/app_13859/includes/language/Message.php(1485): MessageCache->get()
#16 /home/user_13859/app_13859/includes/language/Message.php(972): Message->fetchMessage()
#17 /home/user_13859/app_13859/includes/language/Message.php(1059): Message->format()
#18 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(254): Message->text()
#19 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(191): MWExceptionRenderer::msg()
#20 /home/user_13859/app_13859/includes/exception/MWExceptionRenderer.php(105): MWExceptionRenderer::reportHTML()
#21 /home/user_13859/app_13859/includes/exception/MWExceptionHandler.php(134): MWExceptionRenderer::output()
#22 /home/user_13859/app_13859/includes/exception/MWExceptionHandler.php(251): MWExceptionHandler::report()
#23 /home/user_13859/app_13859/includes/MediaWiki.php(632): MWExceptionHandler::handleException()
#24 /home/user_13859/app_13859/index.php(50): MediaWiki->run()
#25 /home/user_13859/app_13859/index.php(46): wfIndexMain()
#26 {main}
OK, so it turned out that I didnt have the correct databse user asigned, that issuse is resolved.
I was searching on Wikipedia when I notice the search autocomplete results on the site was broken. The results come back with completely random results that might not be related to what I am looking for. For example, typing in “Joe B” would list results of Carson Robinson instead of Joe Biden, and other nonsense. I would like to see this fixed asap
I am using MediaWiki version 1.41.1, and I added a infobox template. My problem is, whenever a section is not filled with text, it will still appear but blank, (but I want it to be not visible completely). I have figured out a bit, but still cannot get the full picture. Here is a wiki page of mine for reference and code: Germany - Heterodontosaurus Balls (heterodontosaurus-balls.com)
All help is appreciated greatly ❤️
Probably you want the #if parser function. See help:Extension:ParserFunctions
thank you, but I have another problem now with this
I applied the #if function to my bars in my infobox, but the bars do not disappear completely and is instead still visible in a tiny stripe.
Template:CountryInfo - Heterodontosaurus Balls (heterodontosaurus-balls.com)
is it a problem with the #if function or a problem with the infobox itself?
Hi Everyone,
I've been trying to set up templates on my wiki but every time I call for them on a page they just appear as a link. For example, I'd make a page called Welcome in the template namespace and write "Welcome to my Wiki!" and then put
Version:1.41 Php:8.2.18 MariaDB:10.6.16 Extensions (I think are important) are templatestyles, templatedata, templatewizard, cargo, lockdown, parserfunctions, scribunto, and visual editor.
When disabling templatestyles, templatedata, templatewizard, parserfunctions, and scribunto. The template function still doesn't work. I don't get any error messages either. I've also tried importing templates just in case I was setting them up wrong but that didn't work either.
Any input is appreciated.
UPDATE: I figured out how to make templates work on my wiki. My localsettings.php file had $wgNonincludableNamespaces = array(); defined to protect certain namespaces. For some reason, this caused all templates to not work. Trying to define $wgNonincludableNamespaces[NS_SPECIAL] = true; instead of using an array still causes templates to not work in the main namespace. Is this a bug in 1.41.0 or am I missing something?
$wgNonincludableNamespaces[NS_SPECIAL] = true; is incorrect syntax. See manual:$wgNonincludableNamespaces for information on how to use this setting.
Please also include the exact configuration settings you used in your post.
Hello, is there a moderation configuration that will block edits to be displayed to the public before the admin or the authorised personels approves after seeng that is worthy.
Thanks
Rgds
Owner