I have faced problems to load my mediawiki with mysql server , so i have removed mysql server and installed new mysql server. And i have lost my data and i don't have any backup files. Now my mediawiki showing blank page. Can you please let me know how to solve my problem.
Mediawiki blank page
Are you saying that you deleted your Wiki's MySQL database?
If your Wiki is public on the internet, can you provide a link to it?
The below errors are been displaced when i have run my wiki:
[b0613efb8b238ef5680cd55a] /mediawiki/mediawiki-1.31.0/ InvalidArgumentException from line 536 of /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
#0 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php(482): Wikimedia\Rdbms\Database::getClass(string, NULL)
#1 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1013): Wikimedia\Rdbms\Database::attributesFromType(string, NULL)
#2 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(697): Wikimedia\Rdbms\LoadBalancer->getServerAttributes(integer)
#3 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(184): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean, integer)
#4 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(267): SqlBagOStuff->getDB(integer)
#5 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(245): SqlBagOStuff->getMulti(array)
#6 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(241): SqlBagOStuff->getWithToken(string, NULL, integer)
#7 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/CachedBagOStuff.php(56): SqlBagOStuff->doGet(string, integer)
#8 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/BagOStuff.php(185): CachedBagOStuff->doGet(string, integer)
#9 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(939): BagOStuff->get(string)
#10 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionInfo.php(150): MediaWiki\Session\SessionManager->generateSessionId()
#11 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionProvider.php(172): MediaWiki\Session\SessionInfo->__construct(integer, array)
#12 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(270): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
#13 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(244): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
#14 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(194): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
#15 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebRequest.php(736): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#16 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(130): WebRequest->getSession()
#17 /var/lib/mediawiki/mediawiki-1.31.0/includes/Setup.php(847): MediaWiki\Session\SessionManager::getGlobalSession()
#18 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebStart.php(88): require_once(string)
#19 /var/lib/mediawiki/mediawiki-1.31.0/index.php(39): require(string)
please help me out how to fix this problem
If you deleted and purged the data files of the MySQL server, I’m afraid it is lost, except if you find some backup.
Given the error, I guess you upgraded the wiki recently, and either you are on a very old server either you have a very customised configuration parameter $wgServers.
Thank you for your response.
Can you let me know what steps to be taken for solving this issue.
Do you really have the database with data inside? You said previously you deleted the database. What did you exactly when you "delete" the database?
How re-installed you the database?
What are the following configuration parameters in LocalSettings.php:
- $wgDBservers ?
What are the version of your MySQL server and PHP ?
I don‘t have mysql data in my system. But i have all the files of mediawiki that i have installed in /var/www/html/mediawiki.
In Localsettings.php i have the following below:
$wgDBtype : "mysql“ $wgDBserver : "localhost“
Currently i am using the version of Mysql - 5.7 and php - 7.2
Thank you for your response. I am sorry my wikii is not available on the internet. It is of local community one.
i have resolved the errors that i have posted above.
But now when i open my mediawiki it is showing
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Cannot access the database)
You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.
can you help me out in this.
> Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
This sounds like MySQL is not installed properly. At least I guess that the system currently cannot use it.
Apart from that: If you do not have a backup of the database, then I don't see a way of how to restore the wiki.
Maybe you can create a dump of the database from inside the old MySQL server. You could then restore this dump into the new server.
Thank you for your response.
Can you please let me know how can i create a dump of this database from inside the old mysql server and restore this in to the new server.
EDGE Browser comes up with manipulated page title
Hello altogether! In our small wiki, we have pages like this: https://www.perrypedia.proc.org/wiki/Portal_%22Intrawelt%22_(Zyklus)
In Firefox, opera, Chrome the page title shows: Portal "Intrawelt" (Zyklus)
Likewise does the EDGE browser, if I am _not_ logged in. With EDGE & being logged in, suddenly the title appears as: Portal "Intrawelt" #Zyklus#
Huh? When analyzing the source code, I can see the server sends (Zyklus) and I don't have any clue where and how the parenthesis are changed to hashes.
Server: Ubuntu 14.04.5, Apache 2.4.7, MySQL 5.5.61, Mediawiki 1.27.4 including several extensions Client: Windows 10, Microsoft Edge 42.17134.1.0
Does anyone have any ideas how and why this can happen? Sincerely, A.
How do I delete the File/Image:Foo.jpg?
Where is this File/Image?
I was playing around with the Proofread Page. It's not listed under uploads, files or images.
Trying to delete it manually via https://wiki.uibk.ac.at/noscemus/_-_/index.php?title=File:foo.jpg&action=delete results in the message "The page or file "File:foo.jpg" could not be deleted. It may have already been deleted by someone else."
Maybe it comes from $wgUseInstantCommons=true or $wgForeignFileRepos in LocalSettings.php?
This Wiki appears to be powered by "Atlassian Confluence 4.3.7, the Enterprise Wiki". Your question appears to be unrelated to MediaWiki.
Remove sensitive pages permanently
I have a wiki I've been building on localhost (in Windows 10). The wiki has both private (personal financial info) and public (regular wiki articles on all kinds of topics) pages, categories, etc.
Now I want to split the wiki into a private one that I will keep on my computer (to help manage household finances and bookkeeping duties) AND then publish the public pages to the web as a separate wiki.
I've considered several options, but none of them seem very good.
First, I thought about duplicating my local wiki folder, then migrating the second half to local, and deleting pages through the normal MediaWiki deletions process. But, I read that the pages aren't actually deleted, which won't work for me because I don't want my private credit card and other financial details online for some smart hacker to take a crack at, even if it is supposedly "secure".
I looked up options on how to permanently delete pages, but all I found was conversations where people were inquiring how, but with no solution.
Finally, I thought maybe there is a way to install MediaWiki fresh and import the pages from local that I want to be public on the web. The challenge there is what if I miss something? When I try to import my pages, will that handle all dependencies automatically as well? It took me forever to import all the wiki templates and subtemplates to configure a musical artist infobox to look like on WikiPedia. I don't want to have to suffer through that kind of start and stop again if I don't have to.
So, what is the OPTIMAL way to split a wiki in two, remove parts from the copy, and post the copy with all the removed parts PERMANENTLY REMOVED?
Any help is appreciated.
MediaWiki has a few maintenance scripts, which can do that.
Some scripts can work on a batch of pages, e.g. deleteBatch.php, but this one only does a normal deletion. Data will still be inside the database afterwards.
E.g. nukePage.php will permanently delete a page and all revision texts associated to it. You can e.g. create a list of the pages to be removed and then use Notepad++ to easily turn this list into a nukePage.php call for each one of them.
how can I have mediawiki display a lowercase username as a lowercase username without capitalizing the first letter?
who implemented this "I know you wrote the username all lowercase, but of course you wanted the first letter to be capitalized"? and could you please remove that since whoever did that omitted to provide a button that says "I know what I am doing"? thank you, much appreciated.
-- I do not know myself and God forbid that I should
Notify users of all updates
Our current version of media wiki requires users visit a page after an edit in order to receive new updates that the page has been edited.
Are there any extensions or settings that disable this feature?
If not, is there a way to modify the php code (\includes\mail\EmailNotification.php) to remove this feature?
Which version is that?
I'm using version 1.28.1.
Per Help:Watchlist, this is present in the current version (this is what I want to disable, I want users to get all changes):
"After receiving an email notification for a page, you have to visit the page while logged in if you want to be notified of further changes to the same page"
Buongiorno, come posso cancellare una foto che ho appena caricato?
Mi sono accorto dopo che c'era il watemark
For further details, see Commons:Criteria for speedy deletion.
Hi, i want to use monaco skin, but my free hosting is not use, it only give vps host use, how can i do?
so free host is not install monaco skin?
beacuse i use free host is not vps.
If your free host allows uploading of files to the server, you should be able to install the skin.
but i once it not uploading of files by free host, can you help me?
i from to taiwan, so i can little english.
Added by PlavorSeol: Fixed some grammar for better English - I'm from Taiwan and I can speak little English.
i once install monaco skin in my free host extensions, but not success.
can you help me?
What is your free host?
How did you install MediaWiki on your free host?
my free host use [https://www.freehosting.com/ free hosting.com].
i install app install mediawiki.
you once have install monaco free host success?
With your free hosting, you should have also gotten access to cPanel? Is there an icon for a file manager in cPanel?
yes, it have.
you know monaco skin author is who?
From the file manager of your cPanel, go to your Wiki directory, then inside the
skins directory, upload the Skin:Monaco files there.
Maybe we aren't understanding each other well because of language?
no, but you are know monaco skin author?
Prevent editing other users' user pages
Is there an extension for preventing users from editing other users' user pages (including subpages), except users have specific rights?
Use the Extension:AbuseFilter. You can make any rule you want. For example,
article_namespace === 2 & !(article_text contains user_name) & !(user_groups contains "sysop") will detect user page edits made by the other users that is not sysop.
For a working example of the above rule, see Terraria.wikia:Special:AbuseFilter/1.
But it allows users whose username is part of other users to edit those people's userpages.
Caching with opcache
Is it able to set up cache with PHP opcache extension?
Yes, you just have to enable the PHP extension OPcache and restart PHP. See Manual:Performance tuning#Bytecode caching.
How about object caching?
Please read the page Manual:Performance tuning.