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
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)
$wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );
to LocalSettings.php in order to make MediaWiki show more detailed error messages.
|
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
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.
You have to create a method in your special page called isIncludable that returns true.
Im creating a table, it has values and color associated with each value like:
{| class="wikitable"
| style="background-color:#fcff2f;" | 1
| style="background-color:#67fd9a;" | 2
| style="background-color:#34cdf9;" | 3
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
| style="background-color:#fcff2f;" | 1
| style="background-color:#fcff2f;" 1
| style="background-color:#34cdf9;" | 3
| style="background-color:#67fd9a;" | 2
|}
There is a way to create "macro" variables or something like that to store the style, so i can store color value and change it only one time. the way im doing now is changing manualy each value. im looking to a way like this:
variable yellow-> style="background-color:#fcff2f;"
variable green-> style="background-color:#67fd9a;"
variable blue-> style="background-color:#34cdf9;"
{| class="wikitable"
| yellow | 1
| green | 2
| blue | 3
etc...
|}
Help:TemplateStyles after installing that extension to define the CSS per class in one place.
Hello! Kindly help me customize the URL from 'mydomain.com/main_page' to 'mydomain.com' so that the home page does not redirect to 'main_page'. I would like to create a dashboard similar to Wikipedia on the home page. I have already used the code '$wgArticlePath = "/$1";' which helped customize the URLs, but the home page URL, which is supposed to be 'mydomain.com', is automatically redirecting to 'mydomain.com/main_page'. How can I modify the configuration to achieve the desired setup? Thank you!
I solved it configuring apache2 mod security.
I am facing this issue in a new instalation. When i edit any page and ther is the @ character, the page shows a 403 error.
Example: root@debian:~
If i put a space before @ it works, like root @debian:~
Any secret i don't know?
Making more specific: when my page have root@debian it shows a 403 error. When i change to mark@debian, nathaniel@debian, anything@debian, it works fine.
What's about root@debian? Why it gives me a 403 error?
From web server error.log:
Apache-Error: [file "apache2_util.c"] [line 275] [level 3] [client 189.50.82.144] ModSecurity: Access denied with code 403 (phase 2). Pattern match "(?i:\\\\\\\\b(?:coalesce\\\\\\\\b|root\\\\\\\\@))" at ARGS:text. [file "/etc/apache/modsecurity.d/base_rules/modsecurity_crs_41_sql_injection_attacks.conf"] [line "140"] [id "950908"] [rev "2"] [msg "SQL Injection Attack."]
I can log on to my mediawiki site from all other devices, but when I try to logon from my Pixel 6a, it just keeps asking me to log on. I have even tried changing the password to test it , but still I can log on from the other devices but not the Pixel phone.
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 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.
Installing some PHP extensions is required.
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
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
It is still not clear to me: Did you successfully install the PHP intl extension?
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).
Hello, i kindly request you to help me protect some of my pages like home page and privacy policy to be only editable by admins only. i used this code
$wgNamespaceProtection[NS_MAIN] = ['sysop'];
$wgGroupPermissions['sysop']['edit'] = false;
in my local setting php and it locked me for editing anything that is already in the site.
this code does not work either
$wgFlaggedRevsProtection = array('sysop' => true);
kindly help.
Rgds
Davis Wanyonyi
That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set
$wgDisplayTitleFollowRedirects = false;
Thanks for the help!
Hi all,
We've just upgraded our wikis from 1.35 to 1.39. I've noticed that internal links now behave differently.
Let's say we have a page containing a person's information: People/Patrul Rinpoche
We have some redirects setup for that page including the page: Patrul Rinpoche
Now when referencing that page on other pages, we'd like to just write: [[Patrul Rinpoche]] and have it stay that way, showing the link without the People/ part. But it automatically changes the text of the link to People/Patrul Rinpoche.
Any way to prevent that behavior?
Thanks in advance!
That's odd. That is not something mediawiki does. Do you have any extensions installed that might affect that. (E.g. maybe displaytitle extension might affect that, not sure)
Oh interesting. It happened recently, we assumed it was core but it was maybe one of the extension updates that did it. Thanks!
That worked for anyone who's wondering. The DisplayTitle extension ends up by default following the redirects for internal links. If you don't want this behavior, for 1.39 and up you need to set
$wgDisplayTitleFollowRedirects = false;
Thanks for the help!