Project:Support desk/Flow/2017/01
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
"Search in namespaces" incomplete after upgrading to MW 1.28
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I upgraded from 1.24 and noticed that the advanced mode in Special:Search shows less than half of the namespaces I'm using. It does not even include the Main, Project and Category namespaces.
Which is weird. There's still a job queue that's being processed, but I wouldn't expect this to be dependent on runJobs.php. Cavila 09:30, 1 January 2017 (UTC)
- Try disabling all extensions. Extensions can hook SearchableNamespaces to remove namespaces to be searched. Ciencia Al Poder (talk) 16:31, 1 January 2017 (UTC)
- Thanks for taking the time to point me in the right direction! I found that the problem lies with the Lockdown extension, which has undergone some changes recently and probably needs to be configured a little differently from what used to be the case. Cavila 17:49, 1 January 2017 (UTC)
Dead link to LoTW cert info
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://wiki.ampr.org/wiki/AMPRNet_VPN has a link to get LoTW certs. This link is dead. 2601:8C0:200:A6D8:AD3B:805E:2DE1:5E24 (talk) 22:54, 1 January 2017 (UTC)
- Feel free to create an account there and edit the page yourself Ciencia Al Poder (talk) 10:05, 2 January 2017 (UTC)
Login: Problems with bot passwords
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm working at development of LrMediaWiki, a plug-in for Adobe Photoshop Lightroom which enables Lightroom users to upload images to a MediaWiki instance inside the application. Users need to login to upload images, user's login credentials are stored by the plug-in. Recently I detected deprecated MediaWiki API calls related to the login. According to the methods recommended at API:Login, I decided to use the API action "clientlogin" for future versions of LrMediaWiki to resolve the deprecated issues. I'm not sure, if this decision was right. Maybe, the "login" action might fit better to LrMediaWiki, but it seems this supports only bot users/passwords, not main accounts. LrMediaWiki needs to support both kinds of credentials: (a) normal main accounts and (b) bot users/passwords. Up to now, my changes (using "clientlogin" action) resolved the deprecated issues with main accounts, but bot users/passwords don't work. Testing bot users/passwords with a non-WMF MediaWiki 1.28.0 instance yields an error message "The supplied credentials could not be authenticated." (If $wgLanguageCode set to "de": "Die angegebenen Anmeldeinformationen konnten nicht überprüft werden.") Testing bot users/passwords with commons.wikimedia.beta.wmflabs.org running MediaWiki 1.29.0-alpha results to an error message "Incorrect password entered. Please try again." Therefore I assume, API action "clientlogin" doesn't support bot users/passwords. Any idea, how I could support both kinds of credentials? Hasenläufer (talk) 07:39, 2 January 2017 (UTC)
- API:Login is written a little awkwardly. I think the main thing for you is this bit: "Interactive applications such as mobile apps that aim to completely replace access to the web-based user interface should use the
clientloginaction to authenticate." - LrMediaWiki is an application that the user uses instead of the website. This seems to match "Interactive applications... that aim to completely replace access to the web-based user interface." ☠MarkAHershberger☢(talk)☣ 19:06, 3 January 2017 (UTC)
- Mark, thanks for your contribution!
- In the meantime I adressed this issue at API talk:Login#Support of both kinds of credentials?. The response I got there helped me to fix the issue. Therefore this thread here can be treated to be resolved and can be closed. Hasenläufer (talk) 20:44, 4 January 2017 (UTC)
A question
Hi, I'm hosting a Mediawiki server on my windows 10 pc with XAMPP. If I use localhost It brings me to the localhost/dashboard. Is there a way to change it so It instantly bringes me to my mediawiki page? Thanks, Windowsmasterrace (talk) 10:36, 2 January 2017 (UTC)
- You should ask this in the XAMPP forums: https://www.apachefriends.org/community.html
- I think, though, that this can be solved with an .htaccess file. See Manual:Short URL/Apache ☠MarkAHershberger☢(talk)☣ 18:57, 3 January 2017 (UTC)
CategoryTree/extension.json does not exist
I am installing MW 1.27.1 on WampServer under Windows 10. I downloaded all new extensions. The CategoryTree extension shows that it should use
wfLoadExtension( 'CategoryTree' );
in LocalSettings.php but that returns the following error message:
Fatal error: Uncaught exception 'Exception' with message 'D:\wamp\www\wiki/extensions/CategoryTree/extension.json does not exist
If I change it to the previously used require_once "$IP/extensions/CategoryTree/CategoryTree.php";
then it loads correctly. Is the Installation documentation incorrect on the CatergoryTree extension page? Ken Roy (talk) 11:25, 2 January 2017 (UTC)
- You are right, the documentation was incorrect. The CategoryTree extension only has an extension.json file in its 1.28 branch and in master. But not in older branches. So for MediaWiki 1.27 and older, the extension cannot be loaded with wfLoadExtension(). It instead has to be loaded with require_once in these versions.
- I have now updated the installation description to fix that! 83.135.237.110 (talk) 12:44, 2 January 2017 (UTC)
- Thanks. I take that this is also true for the Echo extension, since I got a similar error there. Ken Roy (talk) 13:06, 2 January 2017 (UTC)
- Yes, the problem is of the same type, only that the Echo extension has only been updated in the master branch. So for this extension, you have to use require_once, even for version 1.28. 83.135.237.110 (talk) 13:13, 2 January 2017 (UTC)
- I would have liked to update the wrong description in Template:ExtensionInstall, but this template already is ok.
- What is not ok currently is Template:ExtensionInstall/en. Obviously this outdated translation gets used, displaying people wrong information. The translation needs to be updated! Jörgi123 (talk) 13:23, 2 January 2017 (UTC)
Recover pages and discussion pages from a old account
I had an account named KuroDakunaito on Elwiki.net but I forgot it too long time and now I want to recover my old history, pages and discussion pages. Please help me. Kuro Ouji (talk) 17:21, 2 January 2017 (UTC)
- I am not sure, what exactly you mean with "recovering" pages and discussions.
- You can at least see all your contributions on http://elwiki.net/w/Special:Contributions/KuroDakunaito. 83.135.237.110 (talk) 22:39, 2 January 2017 (UTC)
upload problems
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am working with your software for my project: www.zauber-pedia.de and I have encountered two serious problems: 1st: sometime I cannot upload a photo. I recieve a warning: Service Temporarily Unavailable - the Server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
2nd: I get the same warning when entering a link to a page.
but strange enough, after a while, one day or two days I can upload the photo and / or can type the link and save the page without problmes.
I talked to my provider today and he said it is not a mistake with the server. He described the problem as follows: when something is typed in a wiki the software has to "transform" the data into the final result but that seems not to work and when I try to save these changes the server refuses ot accept it. Kassner (talk) 22:59, 2 January 2017 (UTC)
- What your provider gave you is an interesting description.
- All I can tell you is that the same software is working correctly - on other hosts. Maybe your host is changing the configuration so that things, which were disallowed one day might work the other. Or he has the mentioned capacity problems or something else.
- Your host is Strato. Which of their hosting packages are you using?
- Server errors are logged in the error_log file of the server. In order to help you, we need to know, what gets logged during the failing requests. 83.135.237.110 (talk) 02:41, 3 January 2017 (UTC)
- wow... first thank you. this is the first answer which I understand and which shows me that someone cares. THANK YOU.
- I using the package: STRATO PowerWeb Pro.
- I will ask for the error_log file
- Thanks Kassner (talk) 09:07, 3 January 2017 (UTC)
- okay, now I know where to find the log files. I try tor reproduce the error. How can I send to you the file? Kassner (talk) 09:18, 3 January 2017 (UTC)
- The error log usually has lines containing date and time. Just grab the relevant lines from the log and paste them here wrapping them between <pre></pre> tags (switch the editor to wiki code first), or on https://dpaste.de/
If adding an external link (or a given number of them) causes the problem (this should happen also on "preview changes") then it's a configuration of the server, usually caused by ModSecurity Ciencia Al Poder (talk) 10:30, 3 January 2017 (UTC)
- again thanks. I just happened to have created the error again but after that I could not find anything in the error-log file, which says, nothing wrong has happened ... if I can trust your ;-) I would be willing to make you administrator for Zauber-Pedia.de for a short while ...
- but would rather do this not on this platform here ... Kassner (talk) 12:27, 3 January 2017 (UTC)
- STRATO PowerWeb Pro is the most expensive package they are offering. Without knowing more details about how powerful the underlying servers are, I would say that for a normally sized MediaWiki installation, this package should be overkill. Apart from that their website claims things would be compatible with MediaWiki - without limiting this to any package. So MW should also work with the other, cheaper packages - and with the most expensive one more than ever.
- Are you maybe looking into the wrong error log file?
- There should be an error log of the webserver itself (most likely that is the Apache error.log), an error log of PHP and maybe also one of MySQL.
- A server error 500 should get logged inside the Apache error log. 87.123.253.9 (talk) 12:59, 3 January 2017 (UTC)
- Off-topic: According to their website, MediaWiki would be and have this:
- Cooles User Management
- Abgefahrenes Publikations Management
- I didn't know that. ;-) 87.123.253.9 (talk) 13:02, 3 January 2017 (UTC)
- thanks again for your comments which I can understand, I think ...
- I have not found any other error log ... MySQL-Version is 5.5.52 - what ever this means --- more to you, I suppose.
- for my packages I have two options: A) Errorlogs, B) Logfile Download
- still - I am lost ... Kassner (talk) 15:39, 3 January 2017 (UTC)
- A sounds better, but try both and see, what you get, I would say...
- Is that your own server, where you can install and update PHP and where you can update the operating system, or is it in fact a shared host, where all you have is control over the webroot folder into which you have installed MediaWiki?
- On a shared host it is possible that you cannot view the error logs yourself... 87.123.253.9 (talk) 16:00, 3 January 2017 (UTC)
- oh... more words I do not understand ... I have no own server. It is STRATO, I thought this was clear? Misunderstanding? And I do not know wht PHP is ...
- With FileZilla I can upload "things" into the media wiki folder and I can changes (carefully!!!!:-) ) settings in the Localsettings ...
- so, you tell me if it is "my own" server or a shared host ... what ever this means. Please forgive me, but I really do not know anything about Computer --- have been working with MAC all my life ... Thanks for your concern Kassner (talk) 16:37, 3 January 2017 (UTC)
- That means what I thought it would most likely be: It is a shared server and you most likely have no control over its setup. Usually this also means that you cannot view the error log yourself.
- Tell the Strato support that - contrary to what their website claims - MediaWiki would not work correctly on their server. Since it is their server, it is up to them - and not to you - to check what is going wrong.
- And even if they start making issues: Without the entries from error log we cannot help you. 87.123.253.9 (talk) 17:25, 3 January 2017 (UTC)
- okay ... i try ... Kassner (talk) 17:48, 3 January 2017 (UTC)
- However, from a company which claims that they had the best service in the business (I just saw their commercial this evening), it should be an easy task not only to identify the issue, but to actually remove the inconvenience the problem is causing the customers by solving it for them.
- But seems it's not so easy... 87.123.253.9 (talk) 22:27, 3 January 2017 (UTC)
- rigth you are ... I'll keep you informed ... thanks a lot so far. Kassner (talk) 23:41, 3 January 2017 (UTC)
- I think I can close this case: spoke to STRATO today and finally found someone who seemed to be competent. He advised to disable a filter which was put on for »guest-book spam« ... don't know what it is but since I have switched off that filter, everything seems to work ... thank you for getting me on the right way to talk with them ... happy new year now Kassner (talk) 10:22, 4 January 2017 (UTC)
Age at Death
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Where a death notice reads age I understand the age should be written as displayed however many notices state "in his/her 45th or 50th or whatever year. My understanding is that the person has not yet reached that birthday so should the age be recorded for a person where it shows in his 45th year as 44 or 45 and similarly for in her 50th year should this be recorded as 49 or 50? There is no indication on the help panel for when the age is listed as in his XX year. 2001:8003:4462:8300:24B0:766B:B561:9469 (talk) 04:51, 3 January 2017 (UTC)
- This support forum is for the software MediaWiki, and this questions appears unrelated to it. AhmadF.Cheema (talk) 04:58, 3 January 2017 (UTC)
Mediawiki 28.0 update script and composer lock file
I try to update a Mediawiki 24.0 installation to a 28.0 installation on my local windows 7 computer before trying the web-server.
When I run the update.php in maintenance directory, it complains that composer lock file is not up to date, after I ran the composer update. Probably, I missed a step:
C:\apps\web1701_php63\htdocs\rehw>php composer.phar update > ComposerHookHandler::onPreUpdate Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Writing lock file Generating optimized autoload files C:\apps\web1701_php63\htdocs\rehw>cd maintenance C:\apps\web1701_php63\htdocs\rehw\maintenance>php update.php MediaWiki 1.28.0 Updater mediawiki/semantic-media-wiki: 2.4.4 installed, ~2.0 required. mediawiki/validator: 2.2.1 installed, 2.2.* required. mediawiki/maps: 4.0.3 installed, * required. mediawiki/semantic-forms: 3.7 installed, * required. mediawiki/parser-hooks: 1.5.0 installed, * required. mediawiki/sub-page-list: 1.4.0 installed, * required. Error: your composer.lock file is not up to date. Run "composer update" to insta ll newer dependencies
~~ Tomaschwutz (talk) 15:29, 3 January 2017 (UTC)
- The only thing I notice is that you change to the maintenance directory before running update.php.
- What happens if you run update.php from the top level of your wiki? For example:
C:\apps\web1701_php63\htdocs\rehw> php maintenance/update.php --quick☠MarkAHershberger☢(talk)☣ 18:46, 3 January 2017 (UTC)- Thanks for taking care.
- It does not make any difference.
- As a workaround, I updated the composer.json to require exactly the version (without *, ~ or >=) as given by the complaint. Then the update script works. Tomaschwutz (talk) 12:17, 4 January 2017 (UTC)
- I don't know much about composer, but maybe composer itself needs to be updated? "composer self-update" would do that. ☠MarkAHershberger☢(talk)☣ 14:31, 4 January 2017 (UTC)
- Had the same problem (Composer 1.3.1, the most recent version) and managed to work around it by using the --skip-external-dependencies parameter. Cavila 11:09, 15 January 2017 (UTC)
Large Category Page Alphabetic Menus
I'm looking how to do an alphabet menu at the top of a category page to navigate categories that have 1000's of entries. Anyone know of one? I see the "next page" "previous page" are generated in the showChunk function in special all pages. I've see these menus before: A B C D E F G.... Z. Any help would be appreciate! Dehilster (talk) 17:02, 3 January 2017 (UTC)
- Easy way to create the extension to do this:
- find a hook where you could insert this output
- write an extension that generates links with offset=a, offset=b, etc. ☠MarkAHershberger☢(talk)☣ 20:13, 3 January 2017 (UTC)
- That's what I thought. Just thought this would be very useful and that someone else did it! ;-) Dehilster (talk) 21:36, 3 January 2017 (UTC)
centralAuth Extension not able to make persistant SSO session for multiple Wikis setup in mediawiki 1.27
I have setup two wikis named as enwiki and frwiki, and the configuration settings in localsettings.php are as follows:
1 . for frwiki localsettings.php (http://fr.wiki.com);
| Extended content |
|---|
## Shared memory settings
$wgSharedDB = 'centralauth'; // or whatever database you use for central data
$wgMainCacheType = CACHE_ACCEL;
$wgParserCacheType = CACHE_ACCEL;
$wgMessageCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB;
$wgMemCachedServers = [];
require_once ("$IP/extensions/CentralAuth/CentralAuth.php"); //require the extension, pretty self-explanatory
# General CentralAuth configuration
$wgCentralAuthAutoNew = true;
$wgCentralAuthDatabase = 'centralauth'; // default is 'centralauth'
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthCookies = true;
$wgCentralAuthCookieDomain = ".wiki.com";
#$wgCentralAuthAutoLoginWikis = array( 'en_wiki', 'fr_wiki' );
#$wgCentralAuthLoginWiki = 'centralauth';
# Create the local account on pageview, set false to require a local login to create it.
$wgCentralAuthCreateOnView = true;
# Skips the "login success" page
$wgCentralAuthSilentLogin = true;
# Deprecated, will be removed soon.
$wgCentralAuthUseOldAutoLogin = false;
$wgCentralAuthDryRun = false;
# unset( $wgGroupPermissions['*']['centralauth-merge'] );
# $wgGroupPermissions['sysop']['centralauth-merge'] = true;
// You can't just set wgConf values to the globals defined in Setup.php for your
// local wiki, because it hasn't run yet. You could hard-code $wgConf settings
// here, but instead we set the wgConf values in a hook that runs later.
$wgConf = new SiteConfiguration;
# Read wiki lists
$wgLocalDatabases = array( 'en_wiki', 'fr_wiki' ); //all wiki databases, as an array. Important to change.
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
); //We have the same suffix of wiki
//all databases have suffix wiki
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( 'localhost' ); //your database server. could be example.com or IP address. no http://
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'default' => '//fr.wiki.com', //default means applied to all wikis. We want our location to be http://localhost/(wiki). If your wikis are hosted on different domains, then you would override this, but let's keep it simple
),
'wgCanonicalServer' => array(
'default' => 'http://fr.wiki.com',
),
'wgScriptPath' => array(
'en_wiki' => '', //script path, where index.php is located for meta''
'fr_wiki' => '', //test''
),
'wgArticlePath' => array(
'en_wiki' => '/$1', //for short urls
'fr_wiki' => '/$1',
),
//IF IT'S NOT WORKING
//keep articlepath the same as scriptpath, with /$1 at the end. So for test_wiki it would be /testwiki and /testwiki/$1
'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name!
'default' => '$lang',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
session_save_path("$IP\tmp");
|
2. for enwiki Localsettings.php (http://en.wiki.com)
| Extended content |
|---|
## Shared memory settings
$wgSharedDB = 'centralauth'; // or whatever database you use for central data
$wgMainCacheType = CACHE_ACCEL;
$wgParserCacheType = CACHE_ACCEL;
$wgMessageCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB;
$wgMemCachedServers = [];
$wgLanguageCode = "en";
require_once ("$IP/extensions/CentralAuth/CentralAuth.php"); //require the extension,
# General CentralAuth configuration
$wgCentralAuthAutoNew = true;
$wgCentralAuthDatabase = 'centralauth'; // default is 'centralauth'
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthCookies = true;
$wgCentralAuthCookieDomain = ".wiki.com";
#$wgCentralAuthAutoLoginWikis = array( 'en_wiki', 'fr_wiki' );
#$wgCentralAuthLoginWiki = 'centralauth';
# Create the local account on pageview, set false to require a local login to create it.
$wgCentralAuthCreateOnView = true;
# Skips the "login success" page
$wgCentralAuthSilentLogin = true;
# Deprecated, will be removed soon.
$wgCentralAuthUseOldAutoLogin = false;
$wgCentralAuthDryRun = false;
# unset( $wgGroupPermissions['*']['centralauth-merge'] );
# $wgGroupPermissions['sysop']['centralauth-merge'] = true;
// You can't just set wgConf values to the globals defined in Setup.php for your
// local wiki, because it hasn't run yet. You could hard-code $wgConf settings
// here, but instead we set the wgConf values in a hook that runs later.
$wgConf = new SiteConfiguration;
# Read wiki lists
$wgLocalDatabases = array( 'en_wiki', 'fr_wiki' ); //all wiki databases, as an array. Important to change.
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
); //We have the same suffix of wiki
//all databases have suffix wiki
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( 'localhost' ); //your database server. could be example.com or IP address. no http://
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'default' => '//en.wiki.com', //default means applied to all wikis. We want our location to be http://localhost/(wiki). If your wikis are hosted on different domains, then you would override this, but let's keep it simple
),
'wgCanonicalServer' => array(
'default' => 'http://en.wiki.com',
),
'wgScriptPath' => array(
'en_wiki' => '', //script path, where index.php is located for meta''
'fr_wiki' => '', //test''
),
'wgArticlePath' => array(
'en_wiki' => '/$1', //for short urls
'fr_wiki' => '/$1',
),
//IF IT'S NOT WORKING
//keep articlepath the same as scriptpath, with /$1 at the end. So for test_wiki it would be /testwiki and /testwiki/$1
'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name!
'default' => '$lang',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
session_save_path("$IP\tmp");
|
I have configured the centralAuth Extension for both wikis as mentioned in the following link https://www.mediawiki.org/wiki/Extension:CentralAuth/Walkthrough
I was able to create SSO on both wikis (en.wiki.com, fr.wiki.com), but i am facing an unknown issue like if i login from en.wiki.com and check user session on fr.wiki.com , it is created there also by CentralAuth session, then if i logout from en.wiki.com, the session also expires from fr.wiki.com, till here everything goes fine. but if now i try to login on en.wiki.com the session get created for user on en.wiki.com, but if i go on fr.wiki.com and check whether user is logged in, the session goes expired as soon as i refresh the page to check user is logged in , and if i visit en.wiki.com there also session got expired, the same problem persists if i continuously try to login from en.wiki.com.
but one more strange situation also comes to play, if now i try to login from fr.wiki.com the session is created on fr.wiki.com as well as on en.wiki.com, when i refresh the page on en.wiki.com it will show me the user is logged in there also.
so the situation is like if i login from subdomain_1 session gets created on subdomain_2 also, but if i logout from any subdomain, suppose i logout from subdomain_1, session expired from both subdomains, then if i try to login from subdomian_2 the SSO feature is not working, but if i try to login again from the subdomain from where i logged out last time say subdomain_1, the SSO feature is working.
this problem you can see when you have opened fr.wiki.com and en.wiki.com on seperate browsers window tabs.
I don't understand the exact problem and what is happening wrong in the extension setup. please someone if have ever faced any situation and able to sort it out, then please reply here with your solutions. OTS795 (talk) 14:41, 4 January 2017 (UTC)
Picture upload error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I try to load picture< I get error "Unable to open lockfile for "mwstore://local-backend/local-public/c/c4/Irbi.png" (message translated from my local language). I lock on hosting to directory /images. In /images was created directory ../lockdir but has rights 666. My apache run as user www-data. Owner of /images is www-data. Owner of /images/lockdir - www-data. When I change /images/lockdir rights to 777 manualy and try to load pictures some directoryes was created in /images (../c ../d etc.). And that directory has right 666. Where I can change options to make rights for directory created by WIKI ? 195.162.89.43 (talk) 14:52, 4 January 2017 (UTC)
- It sounds like you need to set umask. On Debian/Ubuntu servers, this can be done by adding
umask 002
- to
/etc/apache2/envvars☠MarkAHershberger☢(talk)☣ 16:29, 4 January 2017 (UTC) - Thank you! It's work! 195.162.89.43 (talk) 08:25, 5 January 2017 (UTC)
Special:Statistics - Missing Download Database button?
I'm trying to download my own XML from my own Mediawiki so i can clone it.
On Wikia pages there is a download XML button but on my page it has everything except that.
Help please :S 217.171.202.125 (talk) 16:44, 4 January 2017 (UTC)
- Im reffering to this http://starwars.wikia.com/wiki/Special:Statistics Where you can download the database dump. Is there an extension i need for this to be possible for me also? 217.171.202.125 (talk) 16:50, 4 January 2017 (UTC)
- Love the amount of support and documentation. All the offiical pages simply say Oh you need to import oh use the cd oh use the command line tool. But never WHERE or HOW. I have PuTTY but no where to aim it at. And it seems no one even knows how to download a SIMPLE XML dump from a mediawiki which should be insanely easy considering the feature already exists in Special:Export. But who has the time to manually type 4000 pages.. 217.171.202.125 (talk) 17:38, 4 January 2017 (UTC)
- Still no word on a simple XML dump that doesnt require the most advanced practice in coding? 217.171.202.125 (talk) 17:54, 4 January 2017 (UTC)
- If you want to use putty to extract the XML from a wiki, see Manual:DumpBackup.php. That page offers a lot of examples, but if something isn't clear, just ask.
- Once you have a dump on the server you want to clone the wiki to, see Manual:Importing XML dumps.
- Again, if you have a specific question that isn't answered there, just ask. ☠MarkAHershberger☢(talk)☣ 17:57, 4 January 2017 (UTC)
- Thats the one im confused about i read it but its written as if you are supposed to already know it. In example on the "Detailed Example"
- In this example Green text is text you type in.
- Redirect to the maintenance folder using the cd command. The location of your maintenance folder will vary from this example.
- Type in php dumpBackup.php --full > dump.xml and press enter. A long list of code is created, similar to the example below.
- What is cd command & where do you type in php dumpBackup.php --full > dump.xml i guess would be good starter questions.
- Also thank you for replying :) 78.79.61.211 (talk) 21:37, 4 January 2017 (UTC)
- What is cd command?
- cd means "change directory" and there is already a wiki article for it. (Directories are sometimes called folders.) So, in Putty, once you log in, you'll see a prompt like the one shown in the "Detailed Example" but it will probably have your username instead of "root" and end with "$" instead of "#".
- Assuming you know where the directory, or folder, for your wiki is, use the cd command to navigate to that location.
- If your wiki is installed under
/home/mysite/public_html/w, you would type "cd /home/mysite/public_html/w" and then hit the return or enter key. - You can use the "ls" command (here is the wiki article on that command) to see the contents of that directory. So, typing "
ls -l" (followed by hitting the return key) will show you a list of filenames. One of the lines will start with a "d" and end with "maintenance" if you're in the right directory. - Use cd on the command line again to go into the maintenance directory. Type "
cd maintenance" (followed by return) to get into the directory. - Where do you type in
php dumpBackup.php --full > dump.xml? - After you run the cd command to get into the maintenance directory, you can type that command. I would recommend "
php dumpBackup.php --full | gzip > ~/dump.xml.gz" (don't forget to hit return!) so that it compresses the file (that is what "| gzip" is for) and puts the result in your home directory instead of inside your wiki's maintenance directory (That is what the "> ~/" is for. The tilde-slash means "home directory".) ☠MarkAHershberger☢(talk)☣ 22:57, 4 January 2017 (UTC)
How do I create a sidebar nav for the pages I create?
I keep having to hit random page, or go to tools, all pages, in order to access them. How can I create a page, and then hyper link all the other pages..all while creating a link to the master page in the side nav? 206.169.61.130 (talk) 17:39, 4 January 2017 (UTC)
- See Manual:Interface/Sidebar for how to change the sidebar. ☠MarkAHershberger☢(talk)☣ 17:51, 4 January 2017 (UTC)
Internet Explorer 9 and JavaScript
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Has a date for ending JavaScript support in IE 9 (dropping it from Grade A to C) been announced? I think it will be in MediaWiki 1.30, after Microsoft ends support for Windows Vista on April 11, 2017. IE 8 ended support a year ago, at around the same time Microsoft ended support for Windows 8 (not 8.1); as well as IE 8, IE 9 and IE 10 on Windows 7. GTrang (talk) 21:33, 4 January 2017 (UTC)
- If it had been announced, it would be listed on Compatibility#Browser support matrix. https://phabricator.wikimedia.org/T128115 looks related when it comes to discussing it. Malyacko (talk) 10:26, 5 January 2017 (UTC)
- Now T128115 has been merged. GTrang (talk) 22:52, 8 April 2017 (UTC)
Transfer template parameters to sub-template?
Hi, I would like to know if it's possible to transfer template parameters to sub-template? What I want to achieve:
- I'm creating a wiki to a (pen&paper) RPG.
- I have pages that describe each creature with a 'stat sheet' part (where come characteristics).
- This 'stat sheet' is a template that take in input parameters the characteristics of the creature (Strength, Constitution, Size, etc.).
- Some of the information displayed into the template are computed from the input parameters: it's a 'sub-characteristic' (for example, the HP depends on Constitution and Size).
- For all the formulas, I create a unique template that return a value for a given sub-characteristic.
- My problem is I would like to be able to pass ALL my characteristics to each of the formula (I have about 15 characteristics so it's a mess to write them all each time)
Example of what I doing actually:
- Page:Horse
- {{Sheet|Strength=15|Constitution=12|Size=14}}
- Template:Sheet
- {{Formula|HP|Constitution=12|Size=14}}
- {{Formula|BO|Strength=15|Size=14}}
- Template:Formula
- {{#switch:{{{1}}}
- |HP = {{#exp:{{{Constitution}}} * 2 + {{{Size}}} }}
- |BO = {{#exp:{{{Strength}}} + {{{Size}}} }}
And what I would like to be able to do:
- Page:Horse
- {{Sheet|Strength=15|Constitution=12|Size=14}}
- Template:Sheet
- {{Formula|HP|##ALL_PARENT_PARAMS##}}
- {{Formula|BO|##ALL_PARENT_PARAMS##}}
Is it possible? I didn't found any magical word to do it. Any other way to achieve that? 84.14.165.74 (talk) 21:53, 4 January 2017 (UTC)
- Sorry, I forgot to put <nowiki> in formula. -_-,
- Can someone edit my post to fix that? 84.14.165.74 (talk) 21:55, 4 January 2017 (UTC)
Done fixed Shirayuki (talk) 22:20, 4 January 2017 (UTC)- {{Translatable template}} ({{TNT}}) transfers all parameters to the specified template Shirayuki (talk) 22:55, 4 January 2017 (UTC)
- Thank you Shirayuki.
- {{TNT}} use Lua to transfer parameters (https://www.mediawiki.org/wiki/Module:Template_translation).
- I'm pretty sure my provider don't allow me to use Lua on my wiki server. :-/
- No other way to do that? 82.230.230.17 (talk) 23:27, 4 January 2017 (UTC)
- Lua is very lightweight. I would try the Scribunto extension, at least, and see if it works. ☠MarkAHershberger☢(talk)☣ 16:36, 5 January 2017 (UTC)
- If you can't install scribunto extension, there's no other way to do this except {{Formula|HP|Constitution={{{Constitution|}}}|Size={{{Size|}}}}} etc Ciencia Al Poder (talk) 10:46, 5 January 2017 (UTC)
- I checked and I can't use Lua on my server. :-/
- I think the simplest way to achieve my goal is... to create an extension with a parse fonction that return the current page parameters.
- It's could be not too difficult if the parameters are easily available. 82.230.230.17 (talk) 21:59, 5 January 2017 (UTC)
Editing pages on wikipaedia
Hi, This is not a reply, but suggestion regarding the choice given to all readers of editing pages on wikipedia. If you could give authorship/ recognition to the people who edit it, it may increase the frequency in which people would be interested to edit wikipaedia pages. Also it can contribute to the income of wikipaedia and ou wont have to appply for a plea on your page for donations!!! Hows that? 59.182.196.61 (talk) 09:05, 5 January 2017 (UTC)
- Welcome to the support desk for the MediaWiki software. If you'd like to discuss Wikipedia, you'll have to do that on Wikipedia I'm afraid. :) "Authorship" (maybe you mean copyright?) is always "given" as the "History" link shows you who has edited an article. If you have something else in mind you probably have to elaborate, on Wikipedia. Malyacko (talk) 10:19, 5 January 2017 (UTC)
Missing extension?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
can someone help to find out which extension I am missing (www.zauber-pedia.de) for the following case:
I have copied some templates from Wikipedia which do work in general but they do look a bit different in my wiki. Example, if I copy the complete Welcome Page from WP in to my wiki I do not see any frames and borders, just the text and single lines. What am I missing in my settings - if this is the case at all. thanks for your help Kassner (talk) 12:09, 5 January 2017 (UTC)
- You are probably missing the relevant code lines from https://en.wikipedia.org/wiki/MediaWiki:Common.css and not some extension. AhmadF.Cheema (talk) 16:22, 5 January 2017 (UTC)
- sorry for this late reply, but I am gratefull very much to your answer. Where should I place these codes? Thanks so much for helping Kassner (talk) 08:48, 10 January 2017 (UTC)
- These will need to be placed in your Wiki's MediaWiki:Common.css page (i.e. http://www.zauber-pedia.de/index.php?title=MediaWiki:Common.css).
- Note that not all the code at https://en.wikipedia.org/wiki/MediaWiki:Common.css will be relevant, you will have to take a look at the comments on that page for clues regarding which code is needed for a particular template. AhmadF.Cheema (talk) 10:15, 10 January 2017 (UTC)
- again thank you som much. could you give me a clue which part it could be so that can see the frames and colors correctly? Just to remember: if I copy all from WP main page into my MW it does not schon any frames and colors of the frames. Thanks in advance - and sorry for getting on your nerves ... Kassner (talk) 11:11, 10 January 2017 (UTC)
- and ... if I paste "anything" into my Common.css page can I make something wrong - my fear is that I might not be able to open a page anymore and even cannot delete the pasted stuff from the page. Can such a thing happen? Kassner (talk) 11:36, 10 January 2017 (UTC)
- The issue must be something else because as far as I can see there is nothing in the Common.css code that is affecting "frames and colors of the frames". Also, tried the code on a test Wiki with completely blank Common.css and still there was no issue with "frames and colors of the frames", everything seemed to be working fine.
- Try saving a page with WP main page code and hit F12 to see if there are any fatal errors that are blocking the css effects from displaying. AhmadF.Cheema (talk) 13:44, 10 January 2017 (UTC)
- I am working with Mac .... what is F12 ???? so sorry to bother with these "littel" things. But try to find what you mean ... Kassner (talk) 15:39, 10 January 2017 (UTC)
- I copied the WP main page source into mine. See here: http://zauber-pedia.de/index.php?title=Diskussion:Zauberperiodika
- There is a F12 which I hit and a new window at the bottom opened for some more options. But honestly, I have no idea what to do with that information ... perhaps you find something more. Thanks Kassner (talk) 15:46, 10 January 2017 (UTC)
- OK, got it.
- You have been using the source code for the German Wikipedia and I was looking at the one for the English Wikipedia. The German Wikipedia does seem to store the CSS code somewhere else (like in MediaWiki:Common.css) while the English Wikipedia code should work out-of-the-box.
- Try copying the source code from here: https://en.wikipedia.org/w/index.php?title=Main_Page&action=edit. AhmadF.Cheema (talk) 06:43, 11 January 2017 (UTC)
- Thanks, yes, the English source works fine with all frames and colors ... Thank you !!!!
- Still, I would like to find out where to change some settings as there is still anohther problem:
- See the template here from the German WP: https://de.wikipedia.org/wiki/Schmidt
- and this from the very same template which I copied into mine, the shadow is missing: http://www.zauber-pedia.de/index.php?title=Peter_Kersten_(Begriffskl%C3%A4rung) Kassner (talk) 09:16, 11 January 2017 (UTC)
- this is more precise for what I mean: This is the WP template: https://de.wikipedia.org/wiki/Vorlage:Begriffskl%C3%A4rung
- and this is how it looks in my Wiki: http://www.zauber-pedia.de/index.php?title=Vorlage:Begriffskl%C3%A4rung Kassner (talk) 09:38, 11 January 2017 (UTC)
- Not understanding German is causing some confusion for me.
- If I understand correctly, you probably need the following in your MediaWiki:Common.css:
/* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */ .rahmenfarbe1 { border: 1px #a2a9b1; } /* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */ table > * > tr.hintergrundfarbe1 > th, table > * > tr > th.hintergrundfarbe1, table.hintergrundfarbe1, .hintergrundfarbe1 { background-color: #f8f9fa; }- Note that you will need to hard-refresh (to clear the browser cache) the page to be able to see the changes. AhmadF.Cheema (talk) 10:51, 11 January 2017 (UTC)
- Yes, language can be confusing ... thanks a lot to try ... and I will try your suggestion ... Kassner (talk) 13:29, 11 January 2017 (UTC)
- unfortunately, no result... noch gray background with the template ... Kassner (talk) 13:59, 12 January 2017 (UTC)
- I'm kind of stumped, class "hintergrundfarbe1" is definitely the one which gives that background colouring, but for some reason, that class is not loading on your Wiki's template (possibly because your MediaWiki version is older).
- For a somewhat similar outcome, in your http://www.zauber-pedia.de/index.php?title=Vorlage:Begriffskl%C3%A4rung, you can add the following code
background-color: #f8f9fa;
- before the two occurrences of:
vertical-align: middleAhmadF.Cheema (talk) 17:53, 12 January 2017 (UTC)- The problem is, http://www.zauber-pedia.de/index.php?title=MediaWiki:Common.css contains invalid CSS. It has template code!! Since it has syntax errors, most of the CSS rules there are completely ignored. Please remove wiki code and HTML code from that page Ciencia Al Poder (talk) 10:44, 13 January 2017 (UTC)
- thanks so much for THIS advice. Unfortunatley I have no idea which lines I should delete from Common.css page ... where is a HTML code. Just one short hint should help me. again, many, many thanks for your help Kassner (talk) 14:17, 13 January 2017 (UTC)
- I think, in your case you should actually delete all the lines (except the ones I quoted above) because all those lines appear to be template code and not CSS. AhmadF.Cheema (talk) 16:09, 13 January 2017 (UTC)
- please help me: which lines ... can you send me a screenshot what I should delete ... send to othelloo(at)web.de
- thanks Kassner (talk) 13:05, 14 January 2017 (UTC)
- Delete all lines from http://www.zauber-pedia.de/index.php?title=MediaWiki:Common.css and then insert the following on the same page:
- AhmadF.Cheema (talk) 13:14, 14 January 2017 (UTC)
/* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */ .rahmenfarbe1 { border: 1px #a2a9b1; } /* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */ table > * > tr.hintergrundfarbe1 > th, table > * > tr > th.hintergrundfarbe1, table.hintergrundfarbe1, .hintergrundfarbe1 { background-color: #f8f9fa; } - you really mean I should "empty" the complete page and just put in these lines:
- /* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */
- .rahmenfarbe1 {
- border: 1px #a2a9b1;
- }
- /* Wie Inhaltsverzeichnis (mediawiki.skinning/content.css) */
- table > * > tr.hintergrundfarbe1 > th,
- table > * > tr > th.hintergrundfarbe1,
- table.hintergrundfarbe1,
- .hintergrundfarbe1 {
- background-color: #f8f9fa;
- } Kassner (talk) 09:26, 15 January 2017 (UTC)
- Yes, because those lines are wikitext and not CSS.
- Additionally, there is nothing to worry about deleting those lines because such an edit would be easily reversible. AhmadF.Cheema (talk) 11:40, 15 January 2017 (UTC)
- YES, the shadow in the template is working ... thank you. The frames from the German WP still do not show up ... in my ZP ... I think this is all now and you may close the case. Thank you very much for taking your time helping me. Kassner (talk) 06:45, 16 January 2017 (UTC)
CentralAuth Extension not able to make persistant SSO session for multiple Wikis setup in mediawiki 1.27
I have setup two wikis named as enwiki and frwiki, and the configuration settings in localsettings.php are as follows:
1 . for frwiki localsettings.php (http://fr.wiki.com);
## Shared memory settings
$wgSharedDB = 'centralauth'; // or whatever database you use for central data
$wgMainCacheType = CACHE_ACCEL;
$wgParserCacheType = CACHE_ACCEL;
$wgMessageCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB;
$wgMemCachedServers = [];
require_once ("$IP/extensions/CentralAuth/CentralAuth.php"); //require the extension, pretty self-explanatory
# General CentralAuth configuration
$wgCentralAuthAutoNew = true;
$wgCentralAuthDatabase = 'centralauth'; // default is 'centralauth'
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthCookies = true;
$wgCentralAuthCookieDomain = ".wiki.com";
#$wgCentralAuthAutoLoginWikis = array( 'en_wiki', 'fr_wiki' );
#$wgCentralAuthLoginWiki = 'centralauth';
# Create the local account on pageview, set false to require a local login to create it.
$wgCentralAuthCreateOnView = true;
# Skips the "login success" page
$wgCentralAuthSilentLogin = true;
# Deprecated, will be removed soon.
$wgCentralAuthUseOldAutoLogin = false;
$wgCentralAuthDryRun = false;
# unset( $wgGroupPermissions['*']['centralauth-merge'] );
# $wgGroupPermissions['sysop']['centralauth-merge'] = true;
// You can't just set wgConf values to the globals defined in Setup.php for your
// local wiki, because it hasn't run yet. You could hard-code $wgConf settings
// here, but instead we set the wgConf values in a hook that runs later.
$wgConf = new SiteConfiguration;
# Read wiki lists
$wgLocalDatabases = array( 'en_wiki', 'fr_wiki' ); //all wiki databases, as an array. Important to change.
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
); //We have the same suffix of wiki
//all databases have suffix wiki
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( 'localhost' ); //your database server. could be example.com or IP address. no http://
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'default' => '//fr.wiki.com', //default means applied to all wikis. We want our location to be http://localhost/(wiki). If your wikis are hosted on different domains, then you would override this, but let's keep it simple
),
'wgCanonicalServer' => array(
'default' => 'http://fr.wiki.com',
),
'wgScriptPath' => array(
'en_wiki' => '', //script path, where index.php is located for meta''
'fr_wiki' => '', //test''
),
'wgArticlePath' => array(
'en_wiki' => '/$1', //for short urls
'fr_wiki' => '/$1',
),
//IF IT'S NOT WORKING
//keep articlepath the same as scriptpath, with /$1 at the end. So for test_wiki it would be /testwiki and /testwiki/$1
'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name!
'default' => '$lang',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
session_save_path("$IP\tmp");
2. for enwiki Localsettings.php (http://en.wiki.com)
## Shared memory settings
$wgSharedDB = 'centralauth'; // or whatever database you use for central data
$wgMainCacheType = CACHE_ACCEL;
$wgParserCacheType = CACHE_ACCEL;
$wgMessageCacheType = CACHE_ACCEL;
$wgSessionCacheType = CACHE_DB;
$wgMemCachedServers = [];
$wgLanguageCode = "en";
require_once ("$IP/extensions/CentralAuth/CentralAuth.php"); //require the extension,
# General CentralAuth configuration
$wgCentralAuthAutoNew = true;
$wgCentralAuthDatabase = 'centralauth'; // default is 'centralauth'
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthCookies = true;
$wgCentralAuthCookieDomain = ".wiki.com";
#$wgCentralAuthAutoLoginWikis = array( 'en_wiki', 'fr_wiki' );
#$wgCentralAuthLoginWiki = 'centralauth';
# Create the local account on pageview, set false to require a local login to create it.
$wgCentralAuthCreateOnView = true;
# Skips the "login success" page
$wgCentralAuthSilentLogin = true;
# Deprecated, will be removed soon.
$wgCentralAuthUseOldAutoLogin = false;
$wgCentralAuthDryRun = false;
# unset( $wgGroupPermissions['*']['centralauth-merge'] );
# $wgGroupPermissions['sysop']['centralauth-merge'] = true;
// You can't just set wgConf values to the globals defined in Setup.php for your
// local wiki, because it hasn't run yet. You could hard-code $wgConf settings
// here, but instead we set the wgConf values in a hook that runs later.
$wgConf = new SiteConfiguration;
# Read wiki lists
$wgLocalDatabases = array( 'en_wiki', 'fr_wiki' ); //all wiki databases, as an array. Important to change.
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array(
'wiki'
); //We have the same suffix of wiki
//all databases have suffix wiki
$wgConf->suffixes = $wgLocalDatabases;
$wgConf->localVHosts = array( 'localhost' ); //your database server. could be example.com or IP address. no http://
$wgConf->siteParamsCallback = 'efGetSiteParams';
$wgConf->extractAllGlobals( $wgDBname );
$wgConf->settings = array(
'wgServer' => array(
'default' => '//en.wiki.com', //default means applied to all wikis. We want our location to be http://localhost/(wiki). If your wikis are hosted on different domains, then you would override this, but let's keep it simple
),
'wgCanonicalServer' => array(
'default' => 'http://en.wiki.com',
),
'wgScriptPath' => array(
'en_wiki' => '', //script path, where index.php is located for meta''
'fr_wiki' => '', //test''
),
'wgArticlePath' => array(
'en_wiki' => '/$1', //for short urls
'fr_wiki' => '/$1',
),
//IF IT'S NOT WORKING
//keep articlepath the same as scriptpath, with /$1 at the end. So for test_wiki it would be /testwiki and /testwiki/$1
'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name!
'default' => '$lang',
),
'wgLocalInterwiki' => array(
'default' => '$lang',
),
);
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return array(
'suffix' => $site,
'lang' => $lang,
'params' => array(
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
),
'tags' => array(),
);
}
session_save_path("$IP\tmp");
I have configured the centralAuth Extension for both wikis as mentioned in the following link https://www.mediawiki.org/wiki/Extension:CentralAuth/Walkthrough
I was able to create SSO on both wikis (en.wiki.com, fr.wiki.com), but i am facing an unknown issue like if i login from en.wiki.com and check user session on fr.wiki.com , it is created there also by CentralAuth session, then if i logout from en.wiki.com, the session also expires from fr.wiki.com, till here everything goes fine. but if now i try to login on en.wiki.com the session get created for user on en.wiki.com, but if i go on fr.wiki.com and check whether user is logged in, the session goes expired as soon as i refresh the page to check user is logged in , and if i visit en.wiki.com there also session got expired, the same problem persists if i continuously try to login from en.wiki.com.
but one more strange situation also comes to play, if now i try to login from fr.wiki.com the session is created on fr.wiki.com as well as on en.wiki.com, when i refresh the page on en.wiki.com it will show me the user is logged in there also.
so the situation is like if i login from subdomain_1 session gets created on subdomain_2 also, but if i logout from any subdomain, suppose i logout from subdomain_1, session expired from both subdomains, then if i try to login from subdomian_2 the SSO feature is not working, but if i try to login again from the subdomain from where i logged out last time say subdomain_1, the SSO feature is working.
this problem you can see when you have opened fr.wiki.com and en.wiki.com on seperate browsers window tabs.
I don't understand the exact problem and what is happening wrong in the extension setup. please someone if have ever faced any situation and able to sort it out, then please reply here with your solutions. OTS795 (talk) 06:49, 6 January 2017 (UTC)
Where are stored the template parameters in code?
I would like to create an extension to display the parameters of a currently parsing template using a new Magic word. Creating the Magic word is easy, but I can't figure where are stored the parameters into the parsing code. I tried to dump many structures, but without any success. I don't know if it's the right place to ask question about Mediawiki coding. If not, please tell me where I can ask. Aoineko (talk) 23:11, 6 January 2017 (UTC)
- Try the mediawiki-l mailing list https://lists.wikimedia.org/mailman/listinfo/mediawiki-l or MediaWiki on IRC. ☠MarkAHershberger☢(talk)☣ 17:58, 7 January 2017 (UTC)
Recent changes stopped working after installation of 1.28.0
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Hi,
- For some reason the Special:RecentChanges stopped working after installing 1.28.0. It gets updated after running from the command line 'rebuildall.php' but than it stops updating again till you run again this command. The variable $wgMiserMode isn't set in LocalSettings.php (so is default (false). Setting it to false doesn't affect the problem.
- Running 1.28.0 with PHP 5.6.29 (fpm-fcgi) and MySQL 5.6.23-log. Thanks, --Albert Ke (talk)
- Update: Users contributions do get updated, just the recent changes that doesn't. Any hint? --Albert Ke (talk) Albert Ke (talk) 00:00, 7 January 2017 (UTC)
- This may be a problem with your job queue. Are you changing how it is run? See Manual:Job queue for more info. ☠MarkAHershberger☢(talk)☣ 17:52, 7 January 2017 (UTC)
- Thank you MarkAHershberger,
- I'm normally running the ./runJobs.php once in a while till it is done when e.g. updating MSW tables. So nothing set in the LocalSettings.php. It seems like the Job queue doesn't finish anymore though (can run it for hours) and it has id numbers that are way larger than every before (1157954). Albert Ke (talk) 21:22, 7 January 2017 (UTC)
- Can you set it to run automatically? Instead of relying on you to manually purge it? ☠MarkAHershberger☢(talk)☣ 22:02, 7 January 2017 (UTC)
- I just set it up as a cron for after midnight. I'll post in a day or so if it worked. --Albert Ke (talk) Albert Ke (talk) 22:42, 7 January 2017 (UTC)
- Hi, on top of having set up a cron for runJobs.php, also ran it to empty queue. Got from 30,000 to ~1,400 but can't seem to empty the queue further. I get a few errors once in a while:
- 1)
- PHP Catchable fatal error: Argument 1 passed to RefreshLinksJob::runForTitle() must be an instance of Title, null given, called in .../includes/jobqueue/jobs/RefreshLinksJob.php on line 117 and defined in .../includes/jobqueue/jobs/RefreshLinksJob.php on line 131
- 2)
- [6e1f392a9e9adc8491f78a47] [no req] JobQueueError from line 813 of .../includes/jobqueue/JobQueueDB.php: DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: UPDATE `mw_job` SET job_token = ,job_token_timestamp = '20170108230740' WHERE job_id IN ('1857267','1880624','1947415','1961303','1950761')
- Function: JobQueueDB::recycleAndDeleteStaleJobs
- Error: 1205 Lock wait timeout exceeded; try restarting transaction (localhost)
- Backtrace:
- 0 .../includes/jobqueue/JobQueueDB.php(706): JobQueueDB->throwDBException(DBQueryError)
- 1 .../includes/jobqueue/JobQueueDB.php(301): JobQueueDB->recycleAndDeleteStaleJobs()
- 2 .../includes/jobqueue/JobQueue.php(372): JobQueueDB->doPop()
- 3 .../includes/jobqueue/JobQueueGroup.php(240): JobQueue->pop()
- 4 .../includes/jobqueue/JobRunner.php(159): JobQueueGroup->pop(integer, integer, array)
- 5 .../maintenance/runJobs.php(87): JobRunner->run(array)
- 6 .../maintenance/doMaintenance.php(111): RunJobs->execute()
- 7 .../maintenance/runJobs.php(119): require_once(string)
- 8 {main}
- 0 .../includes/jobqueue/JobQueueDB.php(706): JobQueueDB->throwDBException(DBQueryError)
- 3) (other functionality that stopped)
- Special:Version page stopped working now as well. Gives the following error when loading: csdms.colorado.edu is currently unable to handle this request.
- 4)
- Mediawiki administrative page, under "Data repair and upgrade" doesn't update any further than 80%.
- Additionally I turned off the Widgets for now as it gave the following warning when running the runJobs.php: PHP Warning: touch(): Utime failed: Permission denied in .../extensions/Widgets/smarty/libs/sysplugins/smarty_template_compiled.php on line 195
- Also removed SemanticMediawiki Result Formats as I think it caused the following PHP Fatal error: Allowed memory size of 188743680 bytes exhausted (tried to allocate 1176309 bytes) in .../extensions/SemanticMediaWiki/includes/SMW_Outputs.php on line 163
- Is there another way to empty the Jobs queue, and would that solve the problem? Thanks, --Albert Ke (talk) Albert Ke (talk) 23:50, 8 January 2017 (UTC)
- It looks like you haven't run update.php. Could you run that and then try again? ☠MarkAHershberger☢(talk)☣ 18:23, 9 January 2017 (UTC)
- I did ran it multiple times but that error message keeps coming up. The script runs fine in 0.1 s.
- Turned off SMW for now, ran the update.php and after that the runJobs.php. It looks like the runJobs.php sometimes errors out on old namespaces that are removed but ran all the way till it doesn't do anymore on the command ./runJobs.php. Did get these errors:
- 2017-01-09 18:33:56 refreshLinks Template:Attribute_movie1 pages={"3094":[200,"TidalBoreAK"]} rootJobSignature=627bbcccccdfc74b05a5efa71ecec4bde4b08404 rootJobTimestamp=20170109160845 triggeredRecursive=1 requestId=6962d188e12b48fe8933016b (id=2308894,timestamp=20170109163310) STARTING
- PHP Catchable fatal error: Argument 1 passed to RefreshLinksJob::runForTitle() must be an instance of Title, null given, called in .../includes/jobqueue/jobs/RefreshLinksJob.php on line 117 and defined in .../includes/jobqueue/jobs/RefreshLinksJob.php on line 131
- Data of the old namespaces was copied to another namespace and removed afterwards. Looks like some template still hold a link to these old namespaces that are removed ... 2-3years ago.
- Although php ./runJobs.php doesn't return anything when run anymore (so queue empty?), there are still jobs in the queue: http://csdms.colorado.edu/mediawiki/api.php?action=query&meta=siteinfo&siprop=statistics
- And the RecentChanges page doesn't update either: http://csdms.colorado.edu/wiki/Special:RecentChanges and http://csdms.colorado.edu/wiki/Special:Contributions/WikiSysop to show that more changes are made to the wiki then the RecentChanges indicates. And http://csdms.colorado.edu/wiki/Special:Version won't show anymore.
- I did ran php namespaceDupes.php --fix (3 fixes) and refreshLinks.php but that didn't do the trick.
- Thanks for helping out!!
- --Albert Ke (talk) Albert Ke (talk) 19:02, 9 January 2017 (UTC)
- RecentChanges display changes except the most recent ones from your account (and maybe others). Looks like running runJobs.php makes it to update. Setting Manual:$wgRunJobsAsync to false should fix this issue.
- You can take a look at the job table and maybe delete them if they're really old (look at the job_timestamp field) Ciencia Al Poder (talk) 21:19, 9 January 2017 (UTC)
- Hi Ciencia,
- RecentChanges does only get updated when I run ./rebuildrecentchanges.php. That is why you see some changes made today and from a few days back. RecentChanges stopped monitoring changes automatically though when I installed 1.28.0 some days ago. I did set the $wgRunJobsAsync to false now. Did an update.php and runJobs.php, no changes. I can start edit the job table, haven't done so. Would you happen to know a link on how best to manually truncate jobs in mediawiki?
- Thanks, --Albert Ke (talk) 22:29, 9 January 2017 (UTC).
- Ok., I think I figured it out how to truncate the job table in MW but doesn't look like that is helping me. This is what I did after login in to the MW mysql table:
- truncate table job;
- Query OK, 0 rows affected (0.13 sec)
- truncate table job;
- When looking at the job table through: php ./showJobs.php --group it gave me however:
- refreshLinks: 0 queued; 720 claimed (0 active, 720 abandoned); 0 delayed
- htmlCacheUpdate: 0 queued; 2 claimed (0 active, 2 abandoned); 0 delayed
- refreshLinksPrioritized: 0 queued; 1 claimed (0 active, 1 abandoned); 0 delayed
- refreshLinksDynamic: 0 queued; 11 claimed (11 active, 0 abandoned); 0 delayed
- cirrusSearchLinksUpdate: 0 queued; 44 claimed (0 active, 44 abandoned); 0 delayed
- cirrusSearchLinksUpdatePrioritized: 0 queued; 7 claimed (6 active, 1 abandoned); 0 delayed
- So still abandoned jobs in the queue.... Anyway to remove those (if that is affecting the Special:RecentChanges (not updating) and the Special:Version (not showing) at all.
- Thanks!,
- --Albert Ke (talk) 22:50, 9 January 2017 (UTC)
- Are you sure you truncated the job table of the right database? No jobs should appear if you really truncated it. Ciencia Al Poder (talk) 10:39, 10 January 2017 (UTC)
- Hi Ciencia,
- Would you be able to point out what commands to use otherwise? I have indicated what I used above and pretty sure I used the mw database. Thank you!, --Albert Ke (talk) 15:40, 10 January 2017 (UTC)
- truncate table job; ← this should leave the table empty.
- select * from job; ← should give 0 rows.
- http://csdms.colorado.edu/mediawiki/api.php?action=query&meta=siteinfo&siprop=statistics ← should give 0 jobs.
- If #3 doesn't show 0 jobs (unless someone has edited while executing it), you're obviously running the commands on the wrong database. Ciencia Al Poder (talk) 22:38, 10 January 2017 (UTC)
- Thank you Ciencia,
- I followed your suggestion. Used the user, password and database name defined in the LocalSettings.php to use the right database. Executed the commands you indicated:
- mysql> show tables;
- +--------------------------------+
- | Tables_in_csdms_wiki |
- +--------------------------------+
- | archive |
- | category |
- ....
- | job |
- ....
- 184 rows in set (0.00 sec)
- mysql> truncate table job;
- Query OK, 0 rows affected (0.04 sec)
- mysql> select * from job;
- Empty set (0.00 sec)
- mysql> show tables;
- Went to the api; 4 jobs in queue. So not completely empty. So for some reason those 4 jobs did not get removed. This is the database for the wiki though.....
- mysql> show columns from csdms_wiki.job;
- +---------------------+------------------+------+-----+---------+----------------+
- | Field | Type | Null | Key | Default | Extra |
- +---------------------+------------------+------+-----+---------+----------------+
- | job_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
- | job_cmd | varbinary(60) | NO | MUL | | |
- | job_namespace | int(11) | NO | | NULL | |
- | job_title | varbinary(255) | NO | | NULL | |
- | job_timestamp | varbinary(14) | YES | MUL | NULL | |
- | job_params | blob | NO | | NULL | |
- | job_random | int(10) unsigned | NO | | 0 | |
- | job_attempts | int(10) unsigned | NO | | 0 | |
- | job_token | varbinary(32) | NO | | | |
- | job_token_timestamp | varbinary(14) | YES | | NULL | |
- | job_sha1 | varbinary(32) | NO | MUL | | |
- +---------------------+------------------+------+-----+---------+----------------+
- mysql> show columns from csdms_wiki.job;
- Exit database. In maintenance ran:
- php ./showJobs.php
- 0 (so no jobs in the queue). Back to Special:RecentChanges, the latest changes are not included. Back to the http://csdms.colorado.edu/wiki/Special:Version; page won't load. According to some documentation this could be a memory issue but have in my LocalSettings.php already increased this: ini_set( 'memory_limit', '100M' ); .
- 0 (so no jobs in the queue). Back to Special:RecentChanges, the latest changes are not included. Back to the http://csdms.colorado.edu/wiki/Special:Version; page won't load. According to some documentation this could be a memory issue but have in my LocalSettings.php already increased this: ini_set( 'memory_limit', '100M' ); .
- php ./showJobs.php
- Included the following at the end of LocalSettings.php to capture error messages in the browser:
- error_reporting( E_ALL );
- ini_set( 'display_errors', 1 );
- No messages show up though. Any other thoughts of what might go wrong? Help is much appreciated! --Albert Ke (talk) 03:40, 11 January 2017 (UTC)
- The "4" in jobs may be that someone edited after you truncated the table and before looking at the api. You can check again with
select count(*) from job; - It's very strange that Special:Version doesn't give any error even with those sentences. Maybe Apache is catching the error and not displaying it at all... Can you try looking to the error log? http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files Ciencia Al Poder (talk) 10:34, 11 January 2017 (UTC)
- I haven't figured out why the 4 jobs show up in the api. This is what I get when counting the jobs:
- mysql> select count(*) from job;
- +----------+
- | count(*) |
- +----------+
- | 0 |
- +----------+
- 1 row in set (0.00 sec)
- mysql> select count(*) from job;
- But your last idea is great!, checked the Apache log files while looking Special:Version and found a CirrusSearch error. Checked their website and looks like ElasticSearch is not installed properly. So will work on that. That will affect the runJobs as well. Will let you know here what the outcome is. Albert Ke (talk) 14:08, 11 January 2017 (UTC)
- Ok, I've inspected how the api calculates the job queue size and it's not a plain count(*) of the job queue, but a very complex logic, that can probably give false results like this...
- Maybe the problem with CirrusSearch+ElasticSearch is what causes RecentChanges to not update, since after an edit the search index must be updated, and maybe it tries to update the index before updating Recent Changes. An error when updating the index can cause the Recent Changes update to not be executed at all... Ciencia Al Poder (talk) 21:59, 11 January 2017 (UTC)
- I thought about the same lines regarding CirrusSearch - ElasticSearch as you did. However after solving the problem with CirrusSearch - ElasticSearch (my fold, didn't read the instructions well), RecentChanges still wasn't updating. What actually stalled the RecentChanges was the 'CheckUser' extension. Indicated in the discussion page what I did to get this extension working for 1.28.0 (https://www.mediawiki.org/wiki/Extension_talk:CheckUser).
- So problem solved. Thank you Ciencia!! and MarkAHershberger for all your help in this (still having a problem with SMW Property namespace that disappeared but hope to solve that soon as well ), --Albert Ke (talk) 03:53, 12 January 2017 (UTC)
- I got the same problem in version 1.26 already! Wschroedter (talk) 01:01, 7 January 2017 (UTC)
- Those problems in MediaWiki 1.26 may indicate you forgot to run the update.php script after doing an upgrade. Ciencia Al Poder (talk) 11:35, 8 January 2017 (UTC)
Warning and Fatal Error after uploading version 1.28
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've upgraded recently to 1.26 without problems.
Now I felt forced to upgrade again to 1.28.
When I start my wiki I get this message:
Warning: require(/kunden/vexilli.net/webseiten/Hombruch/wiki/includes/services/ServiceContainer.php): failed to open stream: No such file or directory in /kunden/vexilli.net/webseiten/Hombruch/wiki/includes/AutoLoader.php on line 81 Fatal error: require(): Failed opening required '/kunden/vexilli.net/webseiten/Hombruch/wiki/includes/services/ServiceContainer.php' (include_path='/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/pear_exception:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/console_getopt:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/pear-core-minimal/src:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/mail_mime:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/mail_mime-decode:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/net_socket:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/net_smtp:/kunden/vexilli.net/webseiten/Hombruch/wiki/vendor/pear/mail:.:/usr/local/lib/php') in /kunden/vexilli.net/webseiten/Hombruch/wiki/includes/AutoLoader.php on line 81
What should I do now? Wschroedter (talk) 01:20, 7 January 2017 (UTC)
- Please make sure that you have updated all files of the installation. Also it is important that you extract the new files into a new folder. Any remaining files of the old MediaWiki version may cause errors. More details are at upgrading! 83.135.239.229 (talk) 02:15, 7 January 2017 (UTC)
- I did it all again and now I see: I'm getting an error message while depackaging mediawiki-1.28.0.tar. It comes while depackaging the file mediawiki-1.28.0\wiki.phtml which says "Can not create symbolic link : Access denied : C:\...my local path...\mediawiki-1.28.0\vendor\pear\net_smtp\README.rst"
- And pear is the place where the start-up-time error message refers to.
- So what to do about this depackaging? Wschroedter (talk) 10:11, 7 January 2017 (UTC)
- I don't think this should be a problem.
- From what I understand, the MediaWiki package includes a symbolic link "file" which are for Linux operating systems and as such are unsupported on Windows systems. These are like shortcuts and shouldn't be causing any breaking of the software. AhmadF.Cheema (talk) 13:04, 7 January 2017 (UTC)
- "Can not create symbolic link" is what you'll see unless you run the extraction (depackaging) as an adminstrator. It won't cause problems because symlinking a README isn't going to affect the functionality.
- Are you still getting the "Failed opening required..." error message? ☠MarkAHershberger☢(talk)☣ 17:50, 7 January 2017 (UTC)
- Yes, unfortunately.
- I tried to go back to 1.26 but I damaged the backup.
- Then I tried to go back to 1.23 but there were too many differences.
- So I'm still most interested in getting 1.28 working. Wschroedter (talk) 18:35, 8 January 2017 (UTC)
- Would it be possible to try using a different software package to extract the TAR file? The actual unzipping (really un-tarring) seems to be where the problem is. This, that and the other (talk) 06:58, 9 January 2017 (UTC)
- Thank you all!
- All problems are solved now!
- -Winfried Wschroedter (talk) 12:46, 9 January 2017 (UTC)
- Could you tell us what worked for you so others will know if they run into a similar problem? ☠MarkAHershberger☢(talk)☣ 18:20, 9 January 2017 (UTC)
- I have the same problem and I have used the mediawiki-1.28.0.tar.gz which I unpacked in windows first and then placed on my server. Which file to you Wschroedter get to have it to work? 212.10.26.108 (talk) 23:18, 26 January 2017 (UTC)
- regards HenrikKoch 212.10.26.108 (talk) 23:18, 26 January 2017 (UTC)
- I think this stupid symlink should be reported as a bug! See bugreport for how you can do that! It is a useless link and is only causing trouble! 83.135.236.185 (talk) 14:12, 27 January 2017 (UTC)
- I filed phab:T156491. Please comment there saying which TAR extraction software you used when you encountered this problem. This, that and the other (talk) 15:18, 27 January 2017 (UTC)
- Does anyone have a solution for this? My MediaWiki is still down and I don't know how to solve this after upgrading to 1.28
- Warning: require(/volume1/web/MediaWiki/includes/services/ServiceContainer.php): failed to open stream: No such file or directory in /volume1/web/MediaWiki/includes/AutoLoader.php on line 81 Fatal error: require(): Failed opening required '/volume1/web/MediaWiki/includes/services/ServiceContainer.php' (include_path='/volume1/web/MediaWiki/vendor/pear/pear_exception:/volume1/web/MediaWiki/vendor/pear/console_getopt:/volume1/web/MediaWiki/vendor/pear/pear-core-minimal/src:/volume1/web/MediaWiki/vendor/pear/mail_mime:/volume1/web/MediaWiki/vendor/pear/mail_mime-decode:/volume1/web/MediaWiki/vendor/pear/net_socket:/volume1/web/MediaWiki/vendor/pear/net_smtp:/volume1/web/MediaWiki/vendor/pear/mail:.') in /volume1/web/MediaWiki/includes/AutoLoader.php on line 81 HKOCH (talk) 23:21, 21 February 2017 (UTC)
- Found the problem
- Somebody had renamed /includes/services to /includes/Services (note the upper case S ) changing this to lower case made the trick!
- How and why does this happen in a release´?
- /Henrik HKOCH (talk) 23:38, 21 February 2017 (UTC)
- This issue is a serious problem. This breaks mediawiki on any system that is case-sensitive. 185.38.14.119 (talk) 20:20, 9 April 2017 (UTC)
- > This issue is a serious problem.
- Do you mean the renaming of /includes/services to /includes/Services that HKOCH mentioned? Could you explain exactly what you did that caused this folder to be renamed? As far as I can see this folder has always been lowercase. This, that and the other (talk) 01:29, 10 April 2017 (UTC)
Exactly the same thing happened to me after relocating files from Windows to a *nix server. Other files had been named, too, such as SpecialUserLogin > SpecialUserlogin (see also: http://stackoverflow.com/questions/38135184/mediawiki-1-27-warning-requiring-specialuserlogin-php). The problem did seem to occur in the process of either zipping/tarring or extracting the files. Not sure if there's a connection with symlinks or PEAR dependencies. Cavila 09:05, 26 April 2017 (UTC)Re: Somebody had renamed /includes/services to /includes/Services (note the upper case S ) changing this to lower case made the trick!
- This is probably caused by Windows being case insensitive and people not following the instructions on Manual:Upgrading stating that you shouldn't unpack new files over the old ones!
- On Windows, files SpecialUserLogin.php and SpecialUserlogin are the same. If you unzip a new version over the old one, it sees the file already exists and updates the contents without using the new name. It continues to work on windows, until you move those files on a case-sensitive filesystem. Ciencia Al Poder (talk) 09:32, 26 April 2017 (UTC)
- Thanks. Mmm, after unsuccessful attempts to upgrade MW in the manner prescribed (I remember it was something specific to MW 1.28.0), I resorted to a third-party installer to upgrade MW, which somehow worked (locally), but that's precisely where things must have gone wrong. A veritable mess, but everything should be in order now. Cavila 21:30, 27 April 2017 (UTC)
Search Autocomplete Not Working
Hi there, greetings from Brazil!
I'm new to all this, and trying to do my best here... I've managed to install MediaWiki 1.28 on Centos 7 server along with VisualEditor and Parsoid, everything was fine, but today after some changes the Search box Autocomplete is not working anymore :.(
I tried to disable the changes I've made on LocalSettings.php and MediaWiki:Common.css, but the problem persists... Its interesting that also the VisualEditor searchbox to insert a Template is also not working... but the one to add hyperlink is working... The changes I've made today that may have cause the issue are:
- Create some new namespaces using: https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
- Installed the extension: https://www.mediawiki.org/wiki/Extension:PDFEmbed
- Installed the extension: Extension:Widgets
- Some options to hide tabs on: https://www.mediawiki.org/wiki/User:Subfader/Hide_page_tabs
| Produto | Versão |
|---|---|
| MediaWiki | 1.28.0 |
| PHP | 7.0.14 (apache2handler) |
| MariaDB | 5.5.52-MariaDB |
| ICU | 50.1.2 |
Any help or directions will be really appreciated! Thanks in advance!
in time: also tried the options on Manual:Enabling autocomplete in search box Osodarck (talk) 20:54, 7 January 2017 (UTC)
- Could you link to your wiki so that we can see the problem? ☠MarkAHershberger☢(talk)☣ 22:15, 7 January 2017 (UTC)
- Sorry, I would like to link it but my wiki is a private one (KB inside the company I work network)... behind a private address and such :( Is there another way to collect information for you to help me? Osodarck (talk) 22:48, 7 January 2017 (UTC)
- Use the browser's developer tools to see what the response is from the webserver whenever you type a character in the search bar. Let me know if you need more information. For example, here is how to do it in Firefox: https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor ☠MarkAHershberger☢(talk)☣ 23:10, 7 January 2017 (UTC)
- Thanks! Here is what I got:
- Request Header:
- Host: 192.168.100.50
- User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
- Accept: application/json, text/javascript, */*; q=0.01
- Accept-Language: en-US,en;q=0.5
- Accept-Encoding: gzip, deflate
- X-Requested-With: XMLHttpRequest
- Referer: http://192.168.100.50/index.php/Bem_Vindo_a_Wiki_Vianet!
- Cookie: mediawikiUserName=Ksilva; VEE=visualeditor; mediawiki_session=m47aa78u9uf3cubvdh91hk88cv74h7as
- Connection: keep-alive
- Response Header:
- Cache-Control: private, must-revalidate, max-age=1200
- Connection: Keep-Alive
- Content-Length: 25
- Content-Type: application/json; charset=utf-8
- Date: Sat, 07 Jan 2017 21:36:20 GMT
- Keep-Alive: timeout=5, max=100
- Server: Apache/2.4.6 (CentOS) PHP/7.0.14
- Vary: Accept-Encoding,Treat-as-Untrusted,Cookie
- X-Frame-Options: DENY
- X-Powered-By: PHP/7.0.14
- x-content-type-options: nosniff
- Cookies:
- Request cookies:undefined
- VEE:"visualeditor"
- mediawikiUserName:"Ksilva"
- mediawiki_session:"m47aa78u9uf3cubvdh91hk88cv74h7as"
- Params
- action:"opensearch"
- format:"json"
- formatversion:"2"
- search:"Fornecedores"
- namespace:"0"
- limit:"10"
- suggest:"true"
- Response: (There are pages and namespaces on my wiki with the word "Fornecedores")
- JSON:undefined
- 0:"Fornecedores"
- 1:Array
- 2:Array
- 3:Array Osodarck (talk) 23:49, 7 January 2017 (UTC)
- If you have moved pages to the Fornecedores: namespace (or whatever name you've given them), they'll not show in suggestions by default, because it searches for main namespace by default (controlled by $wgNamespacesToBeSearchedDefault). You can see it in the namespace:"0" parameter of the request. Ciencia Al Poder (talk) 11:31, 8 January 2017 (UTC)
- I've tried to add the following code to the end of my LocalSettings.php:
- $wgNamespacesToBeSearchedDefault = [
- NS_Fornecedores => true,
- NS_Tutorial => true,
- NS_Ferramentas => true,
- ];
- But is still not working... Now that you told me about this I've tried to search for a "Welcome" page that was the first one I've made, this one is appearing in the search box normally, but there are other two pages on Main namespace (created after) that are not appearing... Is there any other variable I should take a look? Maybe something to control pages index...
- Thanks for your help. Osodarck (talk) 13:52, 8 January 2017 (UTC)
- Note that in your new definition of $wgNamespacesToBeSearchedDefault you aren't including NS_MAIN anymore. Check if that's correct. I guess the Welcome page is not on the main namespace because otherwise I would imagine this setting is being ignored...
- Search index is regenerated with the Job queue, maybe you need to wait for a while or even force pending jobs to run with runJobs.php. You may need to set $wgRunJobsAsync to false since it's known to cause issues on some setups. Ciencia Al Poder (talk) 14:30, 8 January 2017 (UTC)
- I didn't include NS_MAIN because I was thinking it is default to search there... anyway I will include it there and wait some time, if doesn't work I will take a look on the other options you gave and let you know. Osodarck (talk) 15:26, 8 January 2017 (UTC)
- Nothing happened, but I confirmed I have the "Welcome" page in the main namespace (using special:allpages) also there are other 4 pages in that namespace, but just the welcome page appears in the search autocomplete, I also have confirmed that the "Welcome" page (actually named "Bem Vindo a Wiki Vianet!") is the only page showing up in the search autocomplete.
- I've tried to use runJobs.php and got error, then tried to specify --server and got the same error. I also tried showJobs.php and received the same error with a "0" in the last line:
- [root@mediawiki maintenance]# php runJobs.php
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- [root@mediawiki maintenance]# php runJobs.php --server http://192.168.100.50
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- [root@mediawiki maintenance]# php showJobs.php
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- 0
- [root@mediawiki maintenance]# php showJobs.php --server http://192.168.100.50
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- PHP Notice: Undefined index: SERVER_NAME in /var/www/html/includes/GlobalFunctions.php on line 1473
- 0
- If I'm not able to run the php script Does that means the system is also facing the same issue? Osodarck (talk) 18:31, 8 January 2017 (UTC)
- Looking at line 1473 of GlobalFunctions.php I see it fails to get SERVER_NAME from $_SERVER, but it shouldn't happen because $_SERVER is only for web requests. Is the wiki installed on windows or linux? Apparently it's failing to retrieve the current hostname from other sources. Setting Manual:$wgOverrideHostname would prevent it from failing.
- Still, those errors are "notices" and won't prevent jobs from run, apparently.
- You can also try regenerating the search index, but in theory it shouldn't matter for title autocompletion. Manual:updateSearchIndex.php Ciencia Al Poder (talk) 22:54, 8 January 2017 (UTC)
- Hello!
- Finally had the time to test what you asked, setting $wgOverrideHostname seems to solve the "Undefined index: SERVER_NAME" error, now I got no errors, but it seems there are no jobs to be executed:
- [root@mediawiki maintenance]# php showJobs.php
- 0
- [root@mediawiki maintenance]# php runJobs.php
- You can see below the outcome for updateSearchIndex.php it seems ok, but i get the "*** Couldn't write to the searchUpdate.mediawiki.pos!" in the end.
- [root@mediawiki maintenance]# php updateSearchIndex.php -s 20081020224040
- Updating searchindex between 20081020224040 and 20170115073747
- --- Waiting for lock ---
- Bem_Vindo_a_Wiki_Vianet!...
- Fornecedores:Lista_de_Fornecedores_e_Parceiros...
- MediaWiki:Mainpage...
- Planos...
- Relatório_Identificação_de_Falha...
- MediaWiki:Sidebar...
- Widget:PDF...
- MediaWiki:Common.css...
- COMANDOS_SSH-ELASTIX...
- Fornecedores:Internexa...
- Fornecedores:Americanet...
- Predefinição:Fornecedores...
- Fornecedores:Ascent...
- Ferramentas:Keepass...
- Fornecedores:China_Telecom...
- Fornecedores:SAMM...
- MediaWiki:Vector.css...
- MediaWiki:Tweeki-navbar-left...
- MediaWiki:Tweeki-navbar-right...
- MediaWiki:Tweeki-subnav...
- MediaWiki:Tweeki-sidebar-left...
- MediaWiki:SidebarTree...
- MediaWiki:Common.js...
- Fornecedores:Varphonex...
- Fornecedores:Khomp...
- Fornecedores:PTT...
- Fornecedores:Fox...
- Fornecedores:GTGI_(GT_Group)...
- Tutorial:Instalando_Elastix...
- Tutorial:Configuração_-_Regra_de_discagem...
- Tutorial:Processo_para_instalação_do_ELASTIX_2.5...
- Fornecedores:Tip_Brasil...
- Tutorial:Processo_após_Instalação_do_Elastix_2.5...
- Tutorial:Criar_Redirecionamento_de_Porta_-_IP...
- Tutorial:RESET_KHOMP_-_UMG100...
- Tutorial:ADICIONAR_CLIENTE_-_VIAPHONE...
- Fornecedores:Vonex...
- Fornecedores:Vivo...
- --- Unlocking --
- Done
- *** Couldn't write to the searchUpdate.mediawiki.pos!
- Autocomplete still only working for pages in the Main namespace. I have made a new "test" page on Main namespace, and it instantly appeared in the serch box. I also have noticed that this test page appeared on special:orphanedpages with the other Main namespace pages... nothing for other namespaces...
- My LocalSettings.php still has the following entry:
- $wgNamespacesToBeSearchedDefault = [
- NS_MAIN => true,
- NS_Fornecedores => true,
- NS_Tutorial => true,
- NS_Ferramentas => true,
- ];
- I also tried too use the rebuildtextindex.php:
- [root@mediawiki maintenance]# php rebuildtextindex.php
- Dropping index...
- Clearing searchindex table...Done
- Rebuilding index fields for 52 pages...
- Rebuild the index...
- Done.
- I have the feeling the entry $wgNamespacesToBeSearchedDefault is doing nothing! Does the line where it is placed on LocalSettings.php matter? Osodarck (talk) 10:39, 15 January 2017 (UTC)
- I've tested it on a local 1.28 instance and $wgNamespacesToBeSearchedDefault doesn't change the namespace=0 of the search suggestion URL, which I've found it's hardcoded (T26214).
- However, if you type the complete namespace it should work. For example, typing
Fornecedores:Ashould give you Fornecedores:Ascent as a suggestion. That's how it works for me. Typing Ascent won't give you the Fornecedores:Ascent suggestion. Ciencia Al Poder (talk) 17:08, 15 January 2017 (UTC)
right justified tables list side by side not one on top of the other on right
I want two tables to show one on top of the other. If I just right-justify both they end up side by side. How would I change the wiki markup to right-jsutify each? For example,
<code>
{| class="wikitable" border="1" align="right" width="30%"
|| title 1
|-
| | line | 1
|}
{| class="wikitable" border="1" align="right" width="30%"
|| title 2
|-
| | line | 2
|}
</code>
will show like https://ccmdb.kuality.ca/index.php?title=User:Ttenbergen#table_side_by_side_vs_right_justified Tenbergen (talk) 00:49, 8 January 2017 (UTC)
- Simply add "clear:right" to the tables. 121.214.101.194 (talk) 08:09, 8 January 2017 (UTC)
- Where in the table would I add that? Tenbergen (talk) 16:05, 11 January 2017 (UTC)
- I have added a
- <div style="clear:right;">
- ...my table definition...
- </div>
- and that seems to format it the way I need. Thanks for the pointer 121.214.101.194 Tenbergen (talk) 16:26, 11 January 2017 (UTC)
- You just add it to the table with the rest of your styling (and remove the obsolete styling attributes while you're at it).
{| class="wikitable" style="float:right;clear:right;width:30%"110.149.145.153 (talk) 09:56, 12 January 2017 (UTC)
How to do a single login with multiple language wiki's
I have a multiple language wiki, eg en.wiki.org, fr.wiki.org.
If a users logs into one of them, how do you make them logged into all at once as in wikipedia.org?
I've checked Manual:Wiki_family but there doesn't seem to be an answer. 52.9.166.178 (talk) 03:32, 8 January 2017 (UTC)
- What cookie is associated with the log in? Is it associated with en.wiki.org or wiki.org?
- In other words, if you look at your cookie jar in FF or Chrome or whatever, do you see that the cookies are associated with top level domains? ☠MarkAHershberger☢(talk)☣ 04:34, 8 January 2017 (UTC)
- wiki.org has the associated cookie. 52.9.166.178 (talk) 05:46, 8 January 2017 (UTC)
- Thx for the hint though 52.9.166.178 (talk) 08:55, 8 January 2017 (UTC)
- I think you need to set up Extension:CentralAuth for that. Session storage is not handled by PHP now, but by SessionManager, which stores sessions in database by default, which is specific per wiki, so the same session cookie for one wiki is not valid on another wiki. I'm not sure if setting $wgSessionCacheType to CACHE_MEMCACHED would solve this. It probably won't if sessions are stored with a per-wiki prefix, which I don't know. Ciencia Al Poder (talk) 11:15, 8 January 2017 (UTC)
Fatal exception of type MWException after new install of 1.28.0
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I got this Error after I uploaded the new LocalSettings.php
After I put $wgShowExceptionDetails in it I get:
[WHI@LcCoLCwAACQdQdkAAAMH] /index.php MWException from line 118 of /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.
Backtrace:
0 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(1030): LCStoreCDB->finishWrite()
1 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(464): LocalisationCache->recache(string)
2 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(338): LocalisationCache->initLanguage(string)
3 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(275): LocalisationCache->loadItem(string, string)
4 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(4384): LocalisationCache->getItem(string, string)
5 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(228): Language::getFallbacksFor(string)
6 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(191): Language::newFromCode(string)
7 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/Setup.php(714): Language::factory(string)
8 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/WebStart.php(137): require_once(string)
9 /mnt/web115/a2/12/57862812/htdocs/mediawiki/index.php(40): require(string)
10 {main} 2A02:908:E852:9D60:3152:5D34:4682:BC72 (talk) 13:33, 8 January 2017 (UTC)
- By default, MediaWiki 1.28 tries to create files called "l10_cache-XXX.cdb" (where XXX is a language code) in the cache/ directory inside the MediaWiki installation. You can either:
- try to make sure your web server can write to this directory; or
- set
$wgLocalisationCacheConf['store'] = 'db';in your LocalSettings.php file, to use the database to store localisation cache data instead of the cache/ folder in the filesystem.
- Hopefully that helps! This, that and the other (talk) 07:04, 9 January 2017 (UTC)
152.26.211.39 (talk) 19:11, 23 May 2017 (UTC):O this worked perfectly; thank you very much.
Embed an audio file on a Page
Hello,
I have a WordPress website ( http://pericarion.com/ ).
The idea I would like to accomplish is to create a MediaWiki page with the aim of make a collaborative effort for learning music.
I have installed MediaWiki through the cpanel service. The actual link for the MediaWiki is the following: ( http://pericarion.com/wiki_learning/ ).
I am editing a Page, and I would like to embed an audio along with the text, and make something similar as, for instance, the following image: http://imgur.com/a/VwWt2
The editor does not have the possibility of embedding an audio file, as shown here: http://imgur.com/a/VwWt2
How could I make this possible?
Thank you very much
David DavidCarrasco (talk) 14:32, 8 January 2017 (UTC)
Activating HTTPS?
What is required to make MW use https-only URLs?
I only set these so far and it's all good:
- $wgServer
- $wgUploadPath
Except that maintenance/generateSitemap.php uses http URLs.
MW 1.25. Subfader (talk) 16:57, 8 January 2017 (UTC)
- You might need to set
$wgCanonicalServertoo? This, that and the other (talk) 00:27, 10 January 2017 (UTC) - Thanks, didn't know that! Subfader (talk) 19:16, 11 January 2017 (UTC)
"Forgot your password?" link missing from log in page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
One of the users on my wiki forgot their password and can't change it due to the missing "Forgot your password?" link from the Special:UserLogin page. Innosflew (talk) 06:39, 9 January 2017 (UTC)
Need help asap
Hi there, Its me again and now I need more help then ever. I got my mediawiki server running with XAMPP and everything seems to run just fine, exept one thing. The one thing that isn’t working as it should be working is my databasee I geuss, because all my text on my wiki is gone. I had a lot of text standing on a few pages but it is gone. The thing is when I want to edit a page I see the text again but when I try to save it I still can’t see it.
I have been searching for a couple of hours right now but I still didn’t find help. I read something about updating my wikipedia but the tutorial on the main mediawiki page is so unclear I get headache. I need to fix this asap because it is importent for school.
My server us running on windows 10 with XAMMP Xampp version 1.27.1
Thanks, Windowsmasterrace (talk) 10:28, 9 January 2017 (UTC)
- See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 83.135.233.110 (talk) 23:02, 9 January 2017 (UTC)
Spurious duplication of translated text
I started to translate a piece ("Farm") from English (American) to Afrikaans ("Plaas"), using the translate option and editing the automatically translated text afterwards. But after a while there was some duplicated text outside the "boxes". This text cannot be deleted or altered. I would like to start over again but cannot find a way to delete or change the already created document. Please help! Nic Coetzee (talk) 10:30, 9 January 2017 (UTC)
NO Images in Google index ! Why?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I have been running two MediaWiki Sites for a long time without problems. In the summer I made a redesign with small changes in the MediaWiki code.
Problem: No single pictures are more in the Google-Images search available. (Checked via www.google.com/search?tbm=isch&q=site:mysite.com)
More specifically, every Image via [[File:filename.extension|options|caption]] are not available in the search results. I testet it: other Images included via html code <img src="image.jpg"> are crawled and are show in image search, but every "[[File:filename..." not.
I also checked my robots.txt and .htaccess file, everything looks good and nothing is locked. (Webmaster Tools)
I remember that in the summer I only add meta robots to the File-Site (/wiki/File:Example.jpg): <meta name="robots" content="noindex,follow" /> via $wgNamespaceRobotPolicies = array ( NS_FILE => 'noindex,follow', );
But now, I removed it and it is still not crawled by Google but 'with bing.com it works. Really strange.
What can it be that no Image included via MediaWiki Syntax is searchable, on both MediaWikis? The Article Page is crawled fine, but the images in de article are not visible in the search engine.
thanks Marta
MediaWiki: 1.15.0 PHP: 5.6.29 MySQL: 5.5.53 2A02:AA16:9200:1800:1C8A:8249:48BC:102B (talk) 11:09, 9 January 2017 (UTC)
- Correct formatting: "More specifically, every Image via File:filename.extension|options|caption are not available in the search results. " 2A02:AA16:9200:1800:1C8A:8249:48BC:102B (talk) 11:13, 9 January 2017 (UTC)
- Mhh, the last days I tested it also without MediaWiki Image Syntax and in different ways, example: I included the test-image directly with only //example.com/myimage.png but without success or with html code in another different image directory.
- The new test-site is the index, but without images :/
- Can anyone explain me this that?
- Marta 2A02:AA16:9200:1800:BC06:5961:AD41:D7D7 (talk) 17:26, 11 January 2017 (UTC)
- Hi, its me again. Has nobody an idea?
- Marta 2A02:AA16:9200:1800:BC9C:695F:1E63:D932 (talk) 13:58, 19 January 2017 (UTC)
- Can you provide a link to your site? This, that and the other (talk) 08:20, 20 January 2017 (UTC)
- Note that search engines may take time (days or weeks) to update their indices. Ciencia Al Poder (talk) 10:27, 20 January 2017 (UTC)
- @This, that and the other
- @Ciencia Al Poder
- I'd rather not say it public, because it's a private family page.
- So, I tested it these days with different settings and with these settings it works and the images appears in the google image search index:
- √ = works, X = don't work
- √ an Image on the root folder or another own folder like "myimages"
- √ using a 301 redirect image html code: src="http://www.xy. /mytestreditectimagefolder/w/images/3/32/image.png to the original file in http://xy. /w/wiki/images/3/32/image.png
- X standard wiki image syntax
- X in robots.txt allow User-Agent: Googlebot-Image
- X not a single url like http://xy. /w/File:myimage.png is in the normal index (has no meta robots)
- X created a manual image <image:loc> sitemap (5 Submitted, 2 Indexed)
- I tested various urls and submitted it also via google webmastertoos fetch, submit via Search Console and via mobile-friendly-test.
- My current robots.txt looks like:
- ---
- User-agent: *
- Allow: /w/File:
- Allow: /w/wiki/images/
- User-agent: *
- Disallow: /w/MediaWiki
- Disallow: /w/Extension
- ---
- Conclusion:
- I have the feeling that ALL the pictures with the MediaWiki-Syntax suddenly disappeared form Google since last summer
- Images in Bing.com are in the index
- Images on the Subdomain (blog= another hosting provider) are also in de index.
- Never had an error (Fetch and render or blocked files in Webmastertools)
- Same Problem with two differents MediaWikis (1.15.1 & 1.15.0) on 2 differents domains
- Never had an Image Problem, 6 months ago every things worked fine
- So to this day, Not a single picture via:
- File:example.jpg|frame|caption
- is in the Index.
- Best regards
- Marta 2A02:AA16:9200:1800:5082:A72D:BCA8:287 (talk) 12:50, 26 January 2017 (UTC)
- *So, I have waited a few days and the problem is still there.
- <u>P.S.</u><br>
- Can a deactivation of the PHP Version 5.4 & 5.5 last year be responsible for the problem, that none images from the directory '''"w/images" via Mediawiki Syntax in appears the Google Image Index'''?
- <u>P.P.S.</u><br>
- but '''duckduckgo.com''', '''Yahoo.com''' and ''AOL.com''' they show the images. 2A02:AA16:9200:1800:F153:C35B:E14D:8B4B (talk) 02:15, 1 February 2017 (UTC)
- You said in the first post made a redesign with small changes in the MediaWiki code. Maybe that's the reason it doesn't work anymore? Ciencia Al Poder (talk) 10:48, 1 February 2017 (UTC)
- @ Ciencia Al Poder
- I do not think because at the first redesign (larger Mediawiki) the images were indexed (September/October) despite changes. The other Mediawki (smaller one) had no change in the Skin-Template and still no pictures in the index.
- The Second Mediawiki has also an other "Mediawiki-Files" directory ss the first with many more photos.
- Marta 2A02:AA16:9200:1800:C79:6098:3D06:749F (talk) 12:39, 2 February 2017 (UTC)
- If no changes were made, you may try contacting google since that's probably their issue. MediaWiki 1.15 is not supported so you may want to upgrade. Ciencia Al Poder (talk) 20:13, 2 February 2017 (UTC)
- Hello again,
- Now I'm testing it in different ways for two months without solving the problem.
- Problem
- All images in the directory /wiki/images/ with MediaWiki-image-syntax are not are not visible in Google Images (via site:xy.com)
- 🚫 [[File:filename.extension]]
- 🚫 Site /File:XY.png are not in the index, only URLS with Filetype: PDF are showing
- 🚫 also with html code <img src="xy.gif" alt="Smiley face"> doesen't work
- ✅ Images in other (test) directories can be seen in the search
- ✅ Images included directly like upload.wikimedia.org/wikipedia/commons/0/01/MediaWiki-smaller-logo.png works & are visible by Google
- ✅ NO errors in Google Webmaster-Tools (robots.txt, sitemap.xml...)
- ✅ <meta name="robots" content="index, follow">
- ✅ images are displayed on Bing search
- ✅ SAME problem with the Google engine with a second Mediawiki (1.15.1 & 1.15.0), both websites have a good ranking
- So Why google does not show my pictures? (Can I have a "Google Penalty" i ONLY the MediaWiki image directory wiki/images)?
- Best regards
- Marta 31.10.146.183 (talk) 13:46, 4 April 2017 (UTC)
- It's unlikely that anyone here can help you unless you link to the site in question. If you choose not to do that, I think it is fairly unreasonable to expect others to guess at what the matter is with your site. This, that and the other (talk) 01:12, 5 April 2017 (UTC)
- @This, that and the other
@Ciencia Al Poder - I guess you are right to a certain degree, but technically, the issue is plain:
all pictures in MediaWiki upload directory (/wiki/images/a/b/cd.gif|png|jpeg) are not indexed on Google Images (http://images.google.com)- that's all.
- As a compromise: I found a few old MediaWikis with similar Google index problems:
- NO Image: any file formats in Google's index but .pdf, .txt, .doc...
- Demo Site 1 http://tinyurl.com/mgym3wf
- Demo Site 2 http://tinyurl.com/loqn5zq
- NO File description page in the index (File:):
- Demo Site 3 http://tinyurl.com/llvhmt2 (http://tinyurl.com/m4gmw69)
- Demo Site 4 http://tinyurl.com/m8tn6f8 (http://tinyurl.com/ktdblnq)
- NO Image: any file formats in Google's index but .pdf, .txt, .doc...
- Hopefully someone can solve this error
- Marta 2A02:AA16:9200:E80:582B:A0A0:85F6:F7B6 (talk) 18:36, 10 April 2017 (UTC)
- Other MediaWiki sites may choose in the google webmasters tools to not index those pages.
- Demo Site 2 display a lot of images in image search. Demo site 1 doesn't, but file description pages contains extra lines before the first line of HTML, so I guess google has some issues indexing that site properly, or it finds the site irrelevant...
- No idea about 3 and 4. Did you got a reply from google forums? Ciencia Al Poder (talk) 20:21, 10 April 2017 (UTC)
- @Ciencia Al Poder, mhh, yes very confusing :/
- The odd thing about it, suddenly the images (and File description page) are on both sides no longer in the index (only by the MediaWiki image directory)
- Ps. No, I have the problem not yet published in the google forum
- Can I over-list google?
- Like change the /wiki/images/ URLs to /common/images/, because the htaccess 301 redirection with test pictures works, 2A02:AA16:9200:E80:447E:3001:14A9:FFF4 (talk) 12:58, 13 April 2017 (UTC)
- You may have more luck asking in a google-related forum, because there's no problem displaying images in MediaWiki and nobody has yet raised where in MediaWiki is the problem. We do not know how google decides if a page or image is worth indexing or not so it would be most reasonable to ask them first, and come here when you got an actionable response (something that needs to be changed in MediaWiki) Ciencia Al Poder (talk) 13:26, 13 April 2017 (UTC)
- @Ciencia Al Poder, OK I will create the topic in a Google-related forum.
- I would additionally make a last test:
- What is the best way to move the image directory? (step by step)
- I would like to see what happens, when the files are saved in a new /upload/thumb/0/0b/XY.png/500px-XY.png instead of /images/thumb/0/0b/XY.png/500px-XY.png directory, because as I see it, Google has only a problem with a direct link to the directory /wiki/images/.
- Remember, a redirect image-file from a new url like /image-test/xy.jpg to the original Mediawiki upload directory /wiki/images/0/0a/xy.jpg works. 2A02:AA16:9200:E80:E15A:E832:4CF5:AFA8 (talk) 18:43, 20 April 2017 (UTC)
- Change Manual:$wgUploadDirectory and Manual:$wgUploadPath Ciencia Al Poder (talk) 20:58, 20 April 2017 (UTC)
- Hi, it works!
- I don't know why, but Google has indexed since the summer every image – just like that.
- I haven't made any changes. The images are all in the Google-Image index :)
- Marta 2A02:AA16:9200:E80:89B:85E8:7F6B:B05D (talk) 16:17, 24 July 2017 (UTC)
Activating sandbox link in user links
Hello, I notice that some wikis don't have a link to the sandbox in the links in the top right for logged in users (for example the links on the simple English wiki go: 'user name', two links to notifications, talk page, settings, beta, watchlist, contributions, and log out). That's the case for gd.wikipedia.org.
What would be the technical process for getting the link added (aside from gaining consensus)? Richard Nevell (WMUK) (talk) 14:15, 9 January 2017 (UTC)
- Well, there is Extension:SandboxLink, which according to its page is used on several Wikimedia wikis. So mainly it would be a case of requesting that with the Stewards if I'm correct. Otherwise, I know Wikidata has a gadget named mySandbox: Wikidata:Mediawiki:Gadget-mySandbox.js. You can find the instructions for adding a gadget on its extension page Extension:Gadgets. —Mainframe98 talk 14:20, 9 January 2017 (UTC)
- Thanks Mainframe98, I'll ask with the Stewards once I've established whether there's consensus for the extension. Richard Nevell (WMUK) (talk) 14:30, 9 January 2017 (UTC)
Problems with update 1.28
Hey,
we used MediaWiki 1.27 for a while and everything was working well, until we recently updated to 1.28. Unluckily at the same time our PHP was updated to 5.6.28-0036. Our Database Version is MariaDB 5.5.53-0070.
When the update happened, actually MedaWiki didn't work at all anymore. So we made a backup, installed 1.26.2-0110 and recovered the database which is working pretty good. The only problem now, is that the formatting seems to have an issue. The sidebar, header, footer, basically all the formatting. It's not only the formatting of the page we did, it seems the whole MediaWiki formatting doesn't work. Template problem?
So does anyone have any idea what to do? Either with the 1.28 or 1.26 problem?
Thank you in advance! Churlord (talk) 07:06, 10 January 2017 (UTC)
- Manual:Errors and symptoms#The wiki appears without styles applied and images are missing Ciencia Al Poder (talk) 10:46, 10 January 2017 (UTC)
- Re: the problems with your upgrade to 1.28 -- what problems did you see?
- Can you upgrade your 1.26 version in a staging area that doesn't affect your main site? ☠MarkAHershberger☢(talk)☣ 23:29, 10 January 2017 (UTC)
Need help with updating my Mediawiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi its me again,
My mediawiki is having blank pages but when I edit the page I see my text again. I heard that the only way of fixxing this is updating my mediawiki.
But I dont understand it / I find it unclear.
I'm running my 1.27.1 mediawiki with xampp on a Windows 10 pc. Do I have to replace all files or do I need to do someting with .tar Every help will be appreciated Windowsmasterrace (talk) 09:22, 10 January 2017 (UTC)
- I have no direct solution, but try these things:
- Generally, the more error messages you can obtain the easier it is to solve, so try to activate more error log in your php.ini configuration file, or add
ini_set( 'error_reporting', E_ALL ); ini_set( 'display_errors', 1 );in your LocalSettings.php. - Be sure you made a clean upgrade: uncompress the .tar.gz from Download in a directory and uncompress the extensions in the 'extensions' subdirectory (and skins in the 'skins' subdirectory); you should not overwrite the previous MediaWiki installation with the new one, better is to create another directory and copy the few data directories and files (LocalSettings.php, 'images' subdirectory).
- Check your XAMPP version and compare with the requirements written in the file RELEASE-NOTES-1.27. If XAMPP is too old, upgrade it. ~ Seb35 [^_^] 17:28, 10 January 2017 (UTC)
- Generally, the more error messages you can obtain the easier it is to solve, so try to activate more error log in your php.ini configuration file, or add
- Thanks for the reply,
- I think I fixxed it thanks, Windowsmasterrace (talk) 09:24, 11 January 2017 (UTC)
Images won't appear after upgrading
Hi, i've upgraded mediawiki from version 1.22.15 to 1.28.0 and now the images won't appear in the pages, the logo works but not the images from the articles
Can you help me? thanks 190.123.122.74 (talk) 15:59, 10 January 2017 (UTC)
- First, can you link to your wiki?
- Second, if you right-click on the image and go directly to the image url, what do you see? ☠MarkAHershberger☢(talk)☣ 23:32, 10 January 2017 (UTC)
- It's an enterprise wiki, so it's in the intranet, the error it's in spanish (i'm from Argentina), but it says "error creating the miniature: the miniature can't be saved", and i can't go to the url, if i right-click it's like the image isn't there 190.123.122.74 (talk) 12:29, 11 January 2017 (UTC)
- It sounds like the permissions on your images directory has changed. Does your web user still have rights that directory and the thumbnail directory?
- What OS are you running on? ☠MarkAHershberger☢(talk)☣ 21:58, 13 January 2017 (UTC)
Archiving Meeting Minutes
I am trying to create a meeting minutes template that has the functionality to archive the minutes under a single location that I can manipulate. I noticed that the minutes pages end up under a category (currently called "Meeting Minutes"), is it possible to create a page that archives the meeting minutes in an easy to access location (i.e. front page)? Flash12356789 (talk) 20:48, 10 January 2017 (UTC)
- Are you talking about this extension: https://github.com/enterprisemediawiki/SemanticMeetingMinutes ?? ☠MarkAHershberger☢(talk)☣ 23:37, 10 January 2017 (UTC)
Old versions extensions
Hi. Is there a way to find files of old versions extensions? For example, the current MW version is 1.28 and I'd like to find the CheckUser extension but in an older version. Is it possible?
Thanks 201.218.73.61 (talk) 22:22, 10 January 2017 (UTC)
- If you click the extension snapshot download link, you'll be given a choice of what version you want. Here: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/CheckUser ☠MarkAHershberger☢(talk)☣ 23:39, 10 January 2017 (UTC)
not able to run mediawiki on ubuntu
When I open http://localhost/mediawiki , it says , I get 403 forbidden error : "Forbidden
You don't have permission to access /mediawiki on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80 " Can anyone help me run it. Pkgodara (talk) 13:28, 11 January 2017 (UTC)
Trying to share the invite
Hi When I try to share the invite it is sometimes coming up with the original date of February which I had changed. Can you please review this if I share it on FB it is wrong. 100.16.204.229 (talk) 13:52, 11 January 2017 (UTC)
How to purge backlinks cache?
The red/blue status of links with "arrows" produced by my NamespacePopups extension is not updated after I create a new page to which the arrow link points (and so it should change from red to blue).
Example of my page with arrows: https://withoutvowels.org/wiki/Tanakh:Genesis_1:7
I think this is because of the backlinks cache.
I have 23253 pages in the namespace Tanakh:. Every of them should be updated.
Please help me to update all these pages. The thing I really need is to re-process every of these pages with ParserAfterTidy hook. (My hook adds the arrow keys to backlinks cache.)
My current workaround is to run maintenance/update.php periodically. This updates the red links to blue as appropriate, but this does not help to make blue links after future edits.
Note that I run maintenance/runJobs.php every minute. The software works correctly with these pages which I recently edited, but not with constant non-editable pages in Tanakh: namespace. VictorPorton (talk) 13:53, 11 January 2017 (UTC)
xhr.status is 0 but API URL exists when entered in the browser URL field
I am working on a Wikipedia viewer using the API. The status is 0 but the JSON data exists when I enter the url into the browser url field. CalvinChen99 (talk) 03:30, 12 January 2017 (UTC)
Es ist ein Datenbankabfragefehler aufgetreten. Dies könnte auf einen Fehler in der Software hindeuten.
restart did not help - what else can be done?
wiki is functioning - but nothing can be edited ...
http://abehwiki.azurewebsites.net/
wiki is operated within microsoft azure 94.134.194.78 (talk) 09:37, 12 January 2017 (UTC)
- It requires login to see other pages. Can you describe what's the problem? You can't login? Once you've log in, you can't edit but why (no edit link, says you have no permissions, you get an error...)? Ciencia Al Poder (talk) 10:56, 13 January 2017 (UTC)
- The error message translates to "A database query error has occurred. This may indicate a bug in the software."
- At the end of your LocalSettings.php file add
$wgShowSQLErrors = 1;- and produce the error again. What error message do you get? 83.135.238.204 (talk) 23:09, 13 January 2017 (UTC)
End-user skins/config
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Not sure if this is the appropriate place to ask this, but I am wondering if there is a way on Windows to have a local copy of LocalSettings.php and skins folders for use on Wikipedia and other wikis as opposed to using custom CSS or JS. Some skins I'd like to use don't seem to support CSS. Pariah24 (talk) 16:29, 12 January 2017 (UTC)
- No, you can't modify server behavior that way :)
- Some browsers have extensions like Stylish for Firefox or Chrome where you can write your own CSS that will be displayed on all pages of specific sites, without need to create an account on the wiki to edit custom CSS for your account. Ciencia Al Poder (talk) 10:54, 13 January 2017 (UTC)
- Thanks for the info. Unfortunately most of the CSS skins people have made and posted for Wikimedia sites are outdated and partially broken because of layout changes, etc. I guess skin development isn't as active as it used to be. I'm trying to learn more about CSS but it is challenging figuring out how to properly color elements like hover toolbars. Ideally I'd just like a simple dark skin with black backgrounds and white text with a few color accents, but it isnt that simple to do. Pariah24 (talk) 14:06, 15 January 2017 (UTC)
- Actually it looks like the Stylish addon for Firefox will work for what I need. The site userstyles.org has dark Wikipedia themes. Thanks once again Pariah24 (talk) 16:21, 15 January 2017 (UTC)
text string '../../' causes 403 Forbidden Error
I'm creating a process document that includes a copy command that includes a relative path and uses '../../' in the text string. I have narrowed down the error specifically to this string, and had to replace the periods with commas as a work around. I'm guessing this is some kind of protection against code injection implemented by either MediaWiki or Apache. Has anyone else encountered this? Does anyone out there know for sure what's going on here and whether or not there is a better work around than using commas?
The offending line is
- $cp -rv ../../mediawiki-old/images . Drdlund (talk) 18:41, 12 January 2017 (UTC)
- Probably caused by ModSecurity Ciencia Al Poder (talk) 10:38, 13 January 2017 (UTC)
can't save my bio
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hello im trying to save my page but doesn't allow me what i can do? Ken summers (talk) 04:23, 13 January 2017 (UTC)
- Do you receive any error message? What does happen exactly? Ciencia Al Poder (talk) 10:40, 13 January 2017 (UTC)
- THIS IS WAHTA IT SAYS "Esta acción ha sido automáticamente identificada como errónea o dañina, y por tanto ha sido deshabilitada. Si crees que tu edición es legítima, por favor, ponte en contacto con un bibliotecario, e infórmale de lo que intentabas hacer. Una breve explicación acerca de por qué se ha deshabilitado la acción es: VANDALISMO frecuente" Ken summers (talk) 15:53, 13 January 2017 (UTC)
- it says it cant be save, because the option have been disable, because vandalism... Ken summers (talk) 15:55, 13 January 2017 (UTC)
- Can you tell on which site exactly are you trying to save this page? AhmadF.Cheema (talk) 16:09, 13 January 2017 (UTC)
- here
- https://es.wikipedia.org/w/index.php?title=Ken_summers&action=edit&redlink=1 Ken summers (talk) 16:14, 13 January 2017 (UTC)
- buy i mean i work on the page upload images info and i can't save it Ken summers (talk) 16:15, 13 January 2017 (UTC)
- There are several automatic filters on Wikipedia that prevent creation of pages that follow common patterns of vandalism or promotional content. The creation of a page that follows your same username is probably something flagged as such. Please read rules about notability before adding a page about you or your company. Ciencia Al Poder (talk) 18:21, 13 January 2017 (UTC)
How can i do if i create the official page of a brand and the name has been used by another user and the page has been deleted before?
i have big problem, because i report the page with our history and the information is not complete, and now we create a page with all the information about our brand and has been deleted with no reason. Can we help us with this theme¿? Wearezouple (talk) 17:01, 13 January 2017 (UTC)
- Are you sure it was deleted without a reason? You can usually see when you try to edit a page that has been deleted, the deletion reason and who deleted the page. Ciencia Al Poder (talk) 18:25, 13 January 2017 (UTC)
- I know, but the reason of the other page has been deleted was because other person create the page first, without no user and we see the G3 and we don´t need to do publicity about our brand, we only want to do is a contribution about our history, and now we want to public a bio and we can´t. Can you help us? we appreciate all can you do. Thanks Wearezouple (talk) 19:26, 13 January 2017 (UTC)
- This support desk is for MediaWiki software, not Wikipedia content. You should go to the particular wiki you want. For example, on English Wikipedia, start at Wikipedia:Village_pump ☠MarkAHershberger☢(talk)☣ 21:40, 13 January 2017 (UTC)
Users cannot login after switch to https (cookies)
I switched to https a few days ago and now I have users complaining that they cannot login.
On different browsers (FF, Safari) and with activated cookies they get the error:
Login error MyWiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I cannot reproduce it, but since a few reported it already...
My settings (changed on switch):
$wgServer = "//www.mywiki.com"; $wgCanonicalServer = "https://www.mywiki.com";
My settings (unchanged since switch):
$wgCookieDomain = "www.mywiki.com"; $wgCookieExpiration = 31104000; // 1 year
What could I try? Subfader (talk) 17:51, 13 January 2017 (UTC)
- Tell them to try to login using private browsing. If that works, then they should clear their cookies. Ciencia Al Poder (talk) 18:23, 13 January 2017 (UTC)
- I told them directly to clear their cookies. No feedback yet. Subfader (talk) 15:39, 14 January 2017 (UTC)
- A chrome user has reported details now:
- Windows 10
- Chrome 55.0.2883.87 m (64-bit)
- all extensions disabled
- also in incognito mode
- Please let me know what the problem could be, I cannot reproduce it :( Subfader (talk) 18:17, 17 January 2017 (UTC)
user passwords
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hello, so i used Xampp and placed a wiki on a windows 7 machine for work. i cant get the email to work for lost passwords and i was wondering of there is an easy way i can change the user password from PHPmyadmin? 24.155.147.84 (talk) 19:33, 13 January 2017 (UTC)
- really just any way to change a user password manually would be crazy helpful 24.155.147.84 (talk) 20:05, 13 January 2017 (UTC)
- From the command line you can use changePassword.php. ☠MarkAHershberger☢(talk)☣ 21:26, 13 January 2017 (UTC)
- awesome thanks Mark
- i have tried this and received a message that a user must be set to change the password.
- can you tell me how to set and user?
- like a created an account in my wiki named test2 and thats the user whos password i would like to change.
- does this make sense im hella new to this. Tim.turner (talk) 21:35, 13 January 2017 (UTC)
- From the usage examples:
php changePassword.php --user=target_username --password=new_password- or with your test2 user:
php changePassword.php --user=test2 --password=new_password☠MarkAHershberger☢(talk)☣ 21:43, 13 January 2017 (UTC)- sorry to waist your time but i just discovered the command i coped and pasted said user- instead of user=
- thank you so much for your time and help today! Tim.turner (talk) 21:43, 13 January 2017 (UTC)
- your the best Tim.turner (talk) 21:43, 13 January 2017 (UTC)
Cant install mediawiki on Synology "Error with username or password"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I try to install mediawiki on my synology ds414j I receive an error message that there is something wrong with the username or password set on the previous install steps.
I didn't let anything empty or used special characters. 81.62.166.247 (talk) 09:03, 14 January 2017 (UTC)
- I am having the same issue on my new Synology 216j. But how do I install phpmyadmin, when I am in the middle of installing MediaWiki? Bobsc (talk) 00:26, 17 April 2017 (UTC)
- phpmyadmin is not needed, but you need to have username and password of a user with enough privileges to create a new database and new users (usually the user root), that you should specify during installation (there's an option where you can choose a different user for installing and for the normal database access) Ciencia Al Poder (talk) 09:06, 17 April 2017 (UTC)
About MediaHandler
I am a beginning extension developer, and have spent hours trying to figure out the architecture of MediaWiki only to find myself overwhelmed by an ocean of PHP code. The central problem I have encountered is the MediaHandler class, which I have inferred by the code of some of the extensions to be key to my aim. But so far I have failed to figure out what on earth it is doing (I've found almost no document describing it). It is perhaps my own stupidity to blame, instead of the document or the code comments. In short, I hope somebody help answer these:
1. Can MediaHandler determine what a page in the File namespace looks like? If so, by what means then?
2. What is brief procedure of producing and displaying a thumbnail?
3. Can I generate something more for each uploaded file besides a thumbnail?
Thank you! 2402:F000:5:8401:9499:D7EF:6F22:94A9 (talk) 14:49, 14 January 2017 (UTC)
- If you haven't looked at it yet, check out Extension:MP3MediaHandler. It modifies the file page and thumbnail presentation so that you will get an mp3 player instead of a thumbnail image. (You may also want the patch provided here.)
- I think you'll also find this phabricator task to be of some help: Document current MediaWiki thumbnail URL format & processing logic. ☠MarkAHershberger☢(talk)☣ 18:21, 14 January 2017 (UTC)
WikiEditor issue
Hi everybody,
I am trying to add a new toolbar section to wikieditor, following the rules described here.
Since I want all users to use this toolbar, I am working on Mediawiki:Common.js (is this correct? I have also set '$wgUseSiteJs = true' in LocalSettings.php) . I validated the code and it is correct, but some of my edits are not loaded in the toolbar. E.g. the toolbar section is visible, but seems to be empty, since no groups or buttons are shown.
My wiki is at http://mediawikiarchivio.unigre.it/mediawiki/index.php/Main_page
Does anyone have any idea of the reasons?
Thanks for the help!
Lorenzo Loman87 (talk) 10:57, 15 January 2017 (UTC)
- You seem to have fixed it, or maybe you were facing caching problems, because I can see a section called "Annotation" next to "Help" with a bunch of buttons Ciencia Al Poder (talk) 22:49, 15 January 2017 (UTC)
- Hi,
- thanks for the answer. Yes, in some way the problem is fixed but not totally. Now I can see the new toolbar ('Annotation') in several namespaces but not in all ones. E.g. it is ok in the Page namespace but not in the Main namespace. In Main I can see the new toolbar just after a cache refresh and then it is missed.
- Any suggestions?
- Thanks again,
- Lorenzo Loman87 (talk) 10:18, 16 January 2017 (UTC)
- Editing the main page (even if it's read-only because I'm not logged-in), reloading the page several times, etc, displays the toolbar just fine for me. What browser are you using? can you try a different one? Ciencia Al Poder (talk) 10:48, 16 January 2017 (UTC)
- You are right, the problem appears only when I am logged in (everything works fine without log in). Which could be the cause?
- Thanks,
- Lorenzo Loman87 (talk) 11:02, 16 January 2017 (UTC)
- An update: I added $wgAllowUserJs = true; to LocalSettings.php and then I put my code into User:myusername/common.js after deleting the same code from Mediawiki:common.js.
- In this way I continue to see the new toolbar just in some namespaces (Mediawiki, Page) but not in the Main namespace (without log in obviously I don't see anything anywhere).
- If I maintain the code in both User:myusername/common.js and Mediawiki:common.js, the result is catastrophic as you can see here. But at list I see this mess in every namespace!
- I can't understand this issue and I am going crazy :(
- Maybe is it a conflict between the user preferences and the wiki settings?
- Please help! Loman87 (talk) 16:37, 16 January 2017 (UTC)
- Does this happen to other users on your wiki? You can create an account for me and send me the user and password so I can test it being logged in. Ciencia Al Poder (talk) 20:39, 16 January 2017 (UTC)
- After some testing with the logged-in account, sorry I have no more time, I think it's a timing issue of loading of scripts.
- One thing you can try:
- Change the line (near the end of MediaWiki:Common.js):
mw.loader.using( 'ext.wikiEditor.toolbar' ), $.ready- To:
mw.loader.using( [ 'ext.wikiEditor.toolbar', 'jquery.wikiEditor.toolbar' ] ), $.ready- Wait like 10 minutes and reload. If it doesn't work, revert the change and use this instead:
- Change the line:
).then( customizeToolbar );- To:
).then( function(){ window.setTimeout(customizeToolbar, 1000); } );Ciencia Al Poder (talk) 11:23, 17 January 2017 (UTC)- Tried both...and the second one works!!
- Many many thanks,
- Lorenzo Loman87 (talk) 13:37, 17 January 2017 (UTC)
- Good. Pinging @He7d3r: in case he has a suggestion, since he wrote the original way to add them in Special:Diff/1081622 Ciencia Al Poder (talk) 10:23, 18 January 2017 (UTC)
- I don't know. I remember seeing some changes to the MediaWiki code related to this since 2014, and I don't know what is the recommended way to customize this toolbar nowadays (some of my scripts also change the toolbar and I've seen this issue).
- You could try asking some other users who developed scripts for customization of the toolbar: Extension:WikiEditor/Toolbar customization#See also. Helder 19:04, 24 January 2017 (UTC)
Pages flee
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a problem on the site vojnaenciklopedija.com
I doubt the CSS, or do not vary greatly in relation to the Serbian Wikipedia where there is no such problem. This happens both when on each side. It is not the always the same. How can I solve this problem?
Here is picture: Kizule (talk) 15:04, 15 January 2017 (UTC)
- I see it correctly. Does it happen randomly? i.e.: the same page sometimes looks good, sometimes strange? Ciencia Al Poder (talk) 22:42, 15 January 2017 (UTC)
- @Ciencia Al Poder This always happens at different pages. Sometimes it happens, sometimes not. Kizule (talk) 22:44, 15 January 2017 (UTC)
- I'm unable to reproduce it. Try with a different browser. Maybe there's a conflicting extension on your browser, or a virus on your computer trying to inject ads or similar on the pages you are viewing, messing with the HTML of your wiki Ciencia Al Poder (talk) 20:32, 16 January 2017 (UTC)
- Interesting. I don't see it in the default search, but when I add "limit=500" as you have in your image, it shows up. ☠MarkAHershberger☢(talk)☣ 21:07, 16 January 2017 (UTC)
- I've narrowed the problem down to a single hit in the search results. This page is the culprit. If you have a search that contains only that page (example), you'll see the problem. Showing all the results up to that page or after that page will be normal. ☠MarkAHershberger☢(talk)☣ 21:27, 16 January 2017 (UTC)
- Yeah, for some reason the wikicode content of this page is leaking on the search results. This is a bug that should be reported Ciencia Al Poder (talk) 21:40, 16 January 2017 (UTC)
- HI! I have not any virus. And thanks @Ciencia Al Poder and @MarkAHershberger for help. I will reported in phabricator. Kizule (talk) 21:59, 16 January 2017 (UTC)
- Could you point to the issue when you have posted it? I'd like to follow along. ☠MarkAHershberger☢(talk)☣ 22:11, 16 January 2017 (UTC)
- Hi.
- We are aware of this issue. It will be fixed in the next release of MediaWiki - MediaWiki 1.28.1. In the mean time you can workaround this issue by setting $wgAdvancedSearchHighlighting = false; at the bottom of LocalSettings.php Bawolff (talk) 22:44, 16 January 2017 (UTC)
- Work it. Thank you! Kizule (talk) 23:27, 16 January 2017 (UTC)
selectField with OR group in WHERE condition?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I add an OR group condition to the selectField function?
The sql would look like this
'SELECT `cl_to` FROM `categorylinks` WHERE `cl_from` = '.$catId.' AND ( `cl_to` = "Foo" OR `cl_to` = "Bar" OR `cl_to` = "Baz" )'
But how to get it into the selectField function?
$res = $dbr->selectField(
'categorylinks',
'cl_to',
array(
'cl_from' => $catId,
// ????
), __METHOD__
); Subfader (talk) 18:33, 15 January 2017 (UTC)
- (`cl_to` = "Foo" OR `cl_to` = "Bar" OR `cl_to` = "Baz" )
- is equivalent to
`cl_to` IN ("Foo", "Bar", "Baz" )- So it should be:
$res = $dbr->selectField('categorylinks','cl_to',array('cl_from' => array( $catId, $catId2, $catId3 )), __METHOD__);Ciencia Al Poder (talk) 22:37, 15 January 2017 (UTC)- Thanks! I figured out I can also just add string as text instead of an array association. Subfader (talk) 12:36, 21 January 2017 (UTC)
Spurious duplication of text
I started to translate a piece ("Farm") from English (American) to Afrikaans ("Plaas"), using the translate option and editing the automatically translated text afterwards. But after a while there was some duplicated text outside the "frames". This text cannot be deleted or altered. I would like to start over again but cannot find a way to delete or change the already created document. Please help! Nic Coetzee (talk) 08:47, 16 January 2017 (UTC)
- You appear to be talking about something on another wiki. Have you asked for help there? ☠MarkAHershberger☢(talk)☣ 22:07, 16 January 2017 (UTC)
Do not work recent page
Hello , I have a wiki site . recently in my site, recent page does not work .When any make an edit , recent page have not show this edit . please help me . my site is textileedu.org . Thanks-শাহাদাত সায়েম (talk) 12:51, 16 January 2017 (UTC)
- Your RC page shows edits up to the 12th. Is there a page with more recent edits that isn't showing up? (I poked around at random and didn't find any recent edits.) ☠MarkAHershberger☢(talk)☣ 20:49, 16 January 2017 (UTC)
- Yes , I have make more edit after 12th , but do not show in recent page . I don't know, how can I solve this problem . If you can , please help me-শাহাদাত সায়েম (talk) 07:44, 17 January 2017 (UTC)
- Could you point to a recent edit? ☠MarkAHershberger☢(talk)☣ 14:38, 17 January 2017 (UTC)
- yes, I have given you some link below , which do not show in recent page:
- 1. http://textileedu.org/index.php?title=টেমপ্লেট:Robox/C2&diff=prev&oldid=2311
- 2. http://textileedu.org/index.php?title=টেমপ্লেট:Root_subject&diff=prev&oldid=2316
- 3. http://textileedu.org/index.php?title=বিষয়শ্রেণী:বাংলাদেশে_টেক্সটাইল_শিক্ষা_প্রতিষ্ঠান&diff=prev&oldid=2263
- 4. http://textileedu.org/index.php?title=টেমপ্লেট:প্রধান_পাতা_শীর্ষ&diff=prev&oldid=2252
- 5. http://textileedu.org/index.php?title=টেমপ্লেট:প্রধান_পাতা_অনুক্রমণিকা&diff=prev&oldid=2255
- Tkanks-শাহাদাত সায়েম (talk) 07:07, 18 January 2017 (UTC)
- You have CheckUser extension installed, probably caused by it. See Extension talk:CheckUser/Archive 2/Flow export#h-I_fonud_error_with_mw_1.28.0-2016-12-01T16:02:00.000Z Ciencia Al Poder (talk) 10:30, 18 January 2017 (UTC)
Live Translate on intranet
Hi, we have a mediawiki installation at our Companys intranet, we are now expanding with foreign users in our wiki who not understand our language (Swedish)and are not allowed to access internet. I really like the Idea of "Live Translate" and to adjust our Swedish language at our wiki to work good enough with live translation to English instead of keeping two different wiki's updated with the same information.
My question is if there is possible/ is any examples of keeping the Google or MS translation completely inside a closed network
Regards, Jonas 136.163.203.9 (talk) 13:48, 16 January 2017 (UTC)
- There are translation options, but I don't know what the answer is. However, @Nikerabbit or @Raymond might be able to help. ☠MarkAHershberger☢(talk)☣ 20:53, 16 January 2017 (UTC)
- Sorry, no idea :-( Raymond (talk) 16:37, 17 January 2017 (UTC)
noob wants to change title of wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hello everyone
i am attempting to change the text of the tile for my wiki but im very new and dont really understand how this works. i know for basic pages i can just look for <head><title> blalbabla </title></head> but idk how to do this to my wiki
any help is greatly appreciated Tim.turner (talk) 17:01, 16 January 2017 (UTC)
- oh im using Xampp and PHPmyadmin, really dont know how to use phpmyadmin either :]
- any good tutorials ? Tim.turner (talk) 17:03, 16 January 2017 (UTC)
- The title of a wiki is set in the LocalSettings.php file, which can not be accessed from the web, but only from the server file system.
- In that file, search for the variable named $wgSitename and change its value to what you want it to be.
- See Manual:$wgSitename for more details! 83.135.225.79 (talk) 18:12, 16 January 2017 (UTC)
- Thank you so much!! Tim.turner (talk) 19:43, 16 January 2017 (UTC)
How to remove "Use secure connection" link in login page?
Hi, my site is in FULL ssl mode, and all visits to my site are in https mode. The site topology is: [user] -- [server provider's Loadbalancer(https)] -- [http to our varnish--nginx-php]
I can't control the Loadbalancer, so I tried to set req.http.X-Forwarded-Proto = "https"; in vanrish and set proxy_set_header X-Forwarded-Proto https; in nginx.
However, none of them remove the "Use secure connection" link in login page. How can I get rid of that link? Its not present in Wikipedia's login page. How? Deletedaccount4567435 (talk) 23:22, 16 January 2017 (UTC)
- BTW, I'm using mw 1.27.1 Deletedaccount4567435 (talk) 23:29, 16 January 2017 (UTC)
- Maybe check into Manual:$wgSecureLogin but I doubt that. Instead I think you'll need to use the CanIPUseHTTPS hook. Something like this:
- ☠MarkAHershberger☢(talk)☣ 02:50, 17 January 2017 (UTC)
$wgHooks['CanIPUseHTTPS'][] = function ($ip, &$canDo) {$canDo=false;};
syntax highlighter doesn't work properly
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Hello i have a issue with the syntax highlighter, take a look to my board
- http://forumberserk.com/index.php?title=Algoritmos_Gen%C3%A9ticos_en_C%2B%2B
- I don't know where is the problem, the extension is enable.
- I am using this code
- <syntaxhighlight lang="cpp" line='line'>
#ifndef AG_H #define AG_H class AG { public: //Función constructora AG(bool f_maximizar_o_minimiza, double long f_limite_superior, double long f_limite_inferior, long long int f_presicion, double long f_probabilidad_de_cruce, double long f_probabilidad_de_mutacion,unsigned long long int f_tamanio_de_poblacion, unsigned long long int f_numero_de_generaciones); private: //Variables externas del programa, las toma en el constructor bool maximizar_o_minimizar; unsigned long long int presicion; double long limite_superior; double long limite_inferior; double long probabilidad_de_cruce; double long probabilidad_de_mutacion; unsigned long long int tamanio_de_poblacion; unsigned long long int numero_de_generaciones; //Final }; #endif // AG_H </syntaxhighlight>
- But doesn't work Aurquiel (talk) 04:15, 17 January 2017 (UTC)
- How did you install the syntaxhighlight extension? From a tarball or from git? if you set up a debug log file, does the log file show you anything? ☠MarkAHershberger☢(talk)☣ 05:28, 17 January 2017 (UTC)
- I just downloaded the mediawiki 1.28 from the official page, inside the script was the extension and it was enable during the installation. I tried to get work the debug file but always is empty.
- I enable other debug, there are the outputs
- LocalSettings.php:
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- $wgShowSQLErrors = true;
- $wgDebugDumpSql = true;
- $wgDebugToolbar =TRUE;
- $wgShowExceptionDetails=true;
- $wgDevelopmentWarnings=TRUE;
- $wgShowDebug =true;
- index.php:
- error_reporting( -1 );
- ini_set( 'display_startup_errors', 1 );
- ini_set( 'display_errors', 1 );
- I GOT THIS
- Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Aurquiel (talk) 23:34, 17 January 2017 (UTC)
- "I just downloaded the mediawiki 1.28 from the official page"
- In 1.28.0 and 1.28.1 have bug. Him fixed in 1.28.2:
- - Due to a mistake in packaging, the releases 1.27.2 and 1.28.1 did not contain the fix for SyntaxHighlight_GeSHi. This new release does contain that fix. Aka sektor (talk) 01:01, 29 July 2017 (UTC)
- Strange that file has the necessary permissions 750 Aurquiel (talk) 23:54, 17 January 2017 (UTC)
- /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize has permissions 750? What happens if you give it the permissions 755? ☠MarkAHershberger☢(talk)☣ 00:44, 18 January 2017 (UTC)
- I change to 750 and tried 777, but same
- Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 Notice: Failed to invoke Pygments: sh: 1: /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied [Called from SyntaxHighlight_GeSHi::highlight in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php at line 296] in /hermes/bosnaweb04b/b1925/ipg.camelloshakicom/14/includes/debug/MWDebug.php on line 311 201.208.246.96 (talk) 00:57, 18 January 2017 (UTC)
- I also tried reinstall, but i have the same issue Aurquiel (talk) 01:02, 18 January 2017 (UTC)
- It may be that your hoster doesn't allow you to execute processes. You should talk to them. ☠MarkAHershberger☢(talk)☣ 01:34, 18 January 2017 (UTC)
- What are the names of the processes that should be executed? Aurquiel (talk) 13:30, 18 January 2017 (UTC)
- If your server uses SeLinux, please look at SELinux and permissions to pygmentize.--~ Nbrouard (talk) 13:39, 13 July 2017 (UTC)
Administrator login after Auth_remoteuser enabled
I'm newbie about MediaWiki but I implemented an 1.26.4 wiki for my workgroup and enabled Auth_remoteuser but now I cant to login with my old Administrator account in order to modify or edit wiki settings. What can I do? Thanks a lot! simone 192.107.52.30 (talk) 09:11, 17 January 2017 (UTC)
- If you have access to the command line you can use changePassword.php to change the password with your admin account. ☠MarkAHershberger☢(talk)☣ 14:50, 17 January 2017 (UTC)
Help. Would like to add to this page, but don't know how
https://en.wikipedia.org/wiki/Category:Karimjee_Secondary_School_alumni TheHM (talk) 15:25, 17 January 2017 (UTC)
- Do you want to add another page to this category, or just edit this particular page? AhmadF.Cheema (talk) 16:18, 17 January 2017 (UTC)
Invalid characters
Hello! I have troubles with Mediawiki 1.28.0. I am trying to load the main page but getting an error message. It says that the name of this page is invalid because it contains invalid characters: "%D0". But I can't see any invalid characters! After this text, there is a link to the main page. I click on it and everything is OK - it takes me to the real main page. What am I doing wrong? ShiningSoldier (talk) 15:32, 17 January 2017 (UTC)
- Is your wiki public? Could you link to it so we can see the problem? ☠MarkAHershberger☢(talk)☣ 18:12, 17 January 2017 (UTC)
- Otherwise, a screenshot would help. ☠MarkAHershberger☢(talk)☣ 18:12, 17 January 2017 (UTC)
- There is a link:
- https://evs.falanster.info
- It's Belorussian localisation. ShiningSoldier (talk) 04:21, 18 January 2017 (UTC)
- Ah, I have already fixed problem! Thanks. ShiningSoldier (talk) 12:17, 18 January 2017 (UTC)
- Could you post how you fixed the problem? ☠MarkAHershberger☢(talk)☣ 23:26, 18 January 2017 (UTC)
Draw graph of wiki sites and hyperlinks
Hi, I want to analyze the graph structure of my wikiMedia powered wiki. This means that wiki pages are nodes and if page A has a hyperlink to page B that this is a directed edge "A---->B". I am looking for a software or a wikiMedia extension that i able to visualize such a graph.
Can anybody name me one ? WikimapCreatore (talk) 16:29, 17 January 2017 (UTC)
- Extension:Graphical Category Browser or Extension:Semantic MediaWiki Graph or Extension:Collaboration Diagram may get you part way. There was a project at Case Western for this, but it looks like it isn't around any more. ☠MarkAHershberger☢(talk)☣ 18:11, 17 January 2017 (UTC)
repository key for parsoid install broken(?)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The instructions to install parsoid are not currently working. Importing the repository gpg key fails
$ sudo apt-key advanced --keyserver pgp.mit.edu --recv-keys 90E9F83F22250DD7 Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.b9vmmIeB7V --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver pgp.mit.edu --recv-keys 90E9F83F22250DD7 gpg: requesting key 22250DD7 from hkp server pgp.mit.edu gpgkeys: key 90E9F83F22250DD7 can't be retrieved gpg: no valid OpenPGP data found. gpg: Total number processed: 063.249.65.78 (talk) 16:50, 17 January 2017 (UTC)
- Worked for me. Do you need to use a proxy? What happens if you try again?
- ☠MarkAHershberger☢(talk)☣ 17:41, 17 January 2017 (UTC)
mah@flynn:~$ sudo apt-key advanced --keyserver pgp.mit.edu --recv-key 90E9F83F22250DD7 Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Tn0In9MQ3T --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ansible-ansible.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/mjblenner_ubuntu_ppa-hal.gpg --keyring /etc/apt/trusted.gpg.d/saltstack-salt.gpg --keyring /etc/apt/trusted.gpg.d/shredder-nightly-archive-automatic-2013.gpg --keyserver pgp.mit.edu --recv-key 90E9F83F22250DD7 gpg: requesting key 22250DD7 from hkp server pgp.mit.edu gpg: key 22250DD7: public key "MediaWiki releases repository <wikitech-l@lists.wikimedia.org>" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) mah@flynn:~$
- Works for me now as well. Not sure what the issue was as I haven't changed anything.
- Thanks for checking. 63.249.65.78 (talk) 20:48, 17 January 2017 (UTC)
noob hyperlink to another server in network???
hello
i am attempting to put a hyperlink in a page to another server in my network and cant figure it out.
i can put in [//server_name/folder/folder/thing.pdf] but this will give me "This site can't be reached" what i need is for \\server_name/folder/folder/thing.pdf to work.
windows xampp phpmyadmin Tim.turner (talk) 19:18, 17 January 2017 (UTC)
- I haven't done this, but try "file://server_namee/folder/thing.pdf".... ☠MarkAHershberger☢(talk)☣ 20:19, 17 January 2017 (UTC)
- didnt work :[
- just installed some ParserFunctions don't know what it is but somewhere i read that it would help so i installed and put his text at the bottom of my localsetting.php
wfLoadExtension( 'ParserFunctions' ); array_push($wgUrlProtocols, "file://"); $wgPFEnableStringFunctions = true;
- now i just get sent to an about:blank Tim.turner (talk) 20:29, 17 January 2017 (UTC)
- I'd guess that UNC links is the page that you're getting your information from, right?
- Did you create the template and try to use it? Which browser are you using? ☠MarkAHershberger☢(talk)☣ 21:33, 17 January 2017 (UTC)
- that's the one, i did create the template but i left the #replace in both places alone. wasnt sure what to do with it, the text said to just paste it in. {{unc | \\servername\SharedFolder}} just gave me another about:blank
- im using chrome but i enabled locallinks in chrome Tim.turner (talk) 21:48, 17 January 2017 (UTC)
- hello
- today i discoved the UNC links work in a Microsoft Edge browser, is there a way to make this work in chrome?
- sry to keep posting but i just found out UNC links only work in Chrome if you "middle click" (click with the scroll wheel)
- thank you for all the time you spent helping me! Tim.turner (talk) 20:00, 18 January 2017 (UTC)
- See UNC links#Browser compatibility. MediaWiki (and any other website) can do nothing to fix this, you must change that setting on each browser. Ciencia Al Poder (talk) 20:39, 18 January 2017 (UTC)
Import via API permissions issue?
I am migrating our old wiki to MediaWiki 1.28.0. To that end, I have exported all of the old wiki pages and am now trying to import them to MediaWiki via the API. But when I try, I get the following response back from the server (in JSON):
{'error': {'code': 'cantimport-upload', '*': 'See http://localhost/api.php for API usage', 'info': "You don't have permission to import uploaded pages"}}
I am trying to do this in Python, but will happily accept solutions or examples using curl.
From an account in the Administrator group, I created a bot password. Here's is what I have so far:
import json
import os
import requests
bot_endpoint = 'http://localhost/api.php'
bot_username = 'Admin@Migration'
bot_password = '<censored>'
session = requests.Session()
with open('/temp/test.xml') as f:
xml_out = f.read()
# get a login token
login_token_params = {'format':'json', 'action':'query', 'meta':'tokens',
'type':'login'}
resp = session.get(bot['endpoint'], params=login_token_params)
login_token = json.loads(resp.text)['query']['tokens']['logintoken']
# login to api
login_params = {'format':'json', 'action':'login', 'lgname':bot['username'],
'lgpassword':bot['password'], 'lgtoken':login_token}
resp = session.post(bot['endpoint'], data=login_params)
# get a csrf token
csrf_token_params = {'format':'json', 'action':'query', 'meta':'tokens',
'type':'csrf'}
resp = session.get(bot['endpoint'], params=csrf_token_params)
csrf_token = json.loads(resp.text)['query']['tokens']['csrftoken']
# try to upload a file
import_params = {'format':'json', 'action':'import', 'token':csrf_token }
resp = session.post(bot['endpoint'], data=import_params,
files={'file': ('dummy.xml', xml_out)})
print(json.loads(resp.text))
When I run this, I get the error above. It's possible that I'm not uploading/importing the XML correctly, but good examples of this in python are hard to come by.
I have verified that the user is in the Administrator group (which contains the "importupload" permission). However, when I check the bot in Special:BotPasswords, I don't see any particular grants for importing files. Furthermore, following the link to Special:ListGrants, neither "import" or "importupload" appear there either.
I am certain I am barking up some kind of tree here, just don't know which is the wrong one. 2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talk) 21:00, 17 January 2017 (UTC)
- ugh, the formating of the code got messed up :( 2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talk) 21:02, 17 January 2017 (UTC)
- Are you sure you're not getting any errors from the login calls? ☠MarkAHershberger☢(talk)☣ 21:28, 17 January 2017 (UTC)
- Yes, fetching the tokens and logging in work just fine, no errors. 2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talk) 21:31, 17 January 2017 (UTC)
- Also I see some other typos in my script... I copied and pasted a few things wrong, but the original script is working correctly. (Substitute bot['endpoint'] for bot_endpoint, etc.) 2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talk) 21:34, 17 January 2017 (UTC)
Resolved [EXTENSION] Visual Editor | Page / Old id error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi everyone, i have locally installed latest version of mediawiki with visual editor (parsoid installed and linked to mediawiki). Mediawiki is running perfectly but a minor bug of Visual Editor is annoying me. When i save a page i have an error "The parameters "page" and "oldid" can not be used together."
What can I do?
Thanks, have a good day
MUSEION MUSEION (talk) 23:38, 17 January 2017 (UTC)
- Have a look at phab:T152547. It looks like it is addressed there. ☠MarkAHershberger☢(talk)☣ 00:48, 18 January 2017 (UTC)
- Hi! I am confused, i did not find this page searching on google but it seems like I do not have to edit ApiParse.php, the "fix" is already in the file.
- MUSEION (talk) 09:09, 18 January 2017 (UTC)
// No easy way to say that text & title are allowed together while the // rest aren't, so just do it in two calls. $this->requireMaxOneParameter( $params, 'page', 'pageid', 'oldid', 'text' ); $this->requireMaxOneParameter( $params, 'page', 'pageid', 'oldid', 'title' );
- Well, not familiar with all of this, i had to edit /mediawiki/extensions/VisualEditor/ApiVisualEditorEdit.php
- And now it works, thanks to you, thank you very much! Have a nice day! MUSEION (talk) 09:31, 18 January 2017 (UTC)
- I installed Mediawiki 1.30 and I got the same problem. I checked phab:T152547 but It's not clear what to do to solve the problem. The file /includes/api/ApiParse.php is not present and referring to MUSEION, which had edited /mediawiki/extensions/VisualEditor/ApiVisualEditorEdit.php ... what is the modification to be done ?? BluAlien (talk) 21:22, 27 January 2018 (UTC)
- I downloded the right ApiVisualEditorEdit.php at https://phabricator.wikimedia.org/diffusion/EVED/browse/HEAD/ApiVisualEditorEdit.php;refs/changes/41/325641/1 but due to the fact that I got the error in MW 1.30 I suspect a code regression. BluAlien (talk) 21:46, 27 January 2018 (UTC)
Extension:Math
I'm having trouble installing this extension on my project, I followed all the rules described on the page and the message gave me was this. How to proceed?
[93aa6bfd49be8f750f16490d] /mw/mediawiki-1.27.1/index.php/P%C3%A1gina_principal MWException from line 176 of /var/www/html/mw/mediawiki-1.27.1/includes/Hooks.php: Invalid callback MathHooks::onParserAfterTidy in hooks for ParserAfterTidy
Backtrace:
#0 /var/www/html/mw/mediawiki-1.27.1/includes/parser/Parser.php(1377): Hooks::run(string, array)
#1 /var/www/html/mw/mediawiki-1.27.1/includes/parser/Parser.php(449): Parser->internalParseHalfParsed(string, boolean, boolean)
#2 /var/www/html/mw/mediawiki-1.27.1/includes/cache/MessageCache.php(1103): Parser->parse(string, Title, ParserOptions, boolean)
#3 /var/www/html/mw/mediawiki-1.27.1/includes/Message.php(1141): MessageCache->parse(string, Title, boolean, boolean, Language)
#4 /var/www/html/mw/mediawiki-1.27.1/includes/Message.php(824): Message->parseText(string)
#5 /var/www/html/mw/mediawiki-1.27.1/includes/Message.php(880): Message->toString()
#6 /var/www/html/mw/mediawiki-1.27.1/includes/page/Article.php(982): Message->parse()
#7 /var/www/html/mw/mediawiki-1.27.1/includes/page/Article.php(573): Article->showRedirectedFromHeader()
#8 /var/www/html/mw/mediawiki-1.27.1/includes/actions/ViewAction.php(44): Article->view()
#9 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(503): ViewAction->show()
#10 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
#11 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(745): MediaWiki->performRequest()
#12 /var/www/html/mw/mediawiki-1.27.1/includes/MediaWiki.php(519): MediaWiki->main()
#13 /var/www/html/mw/mediawiki-1.27.1/index.php(43): MediaWiki->run()
#14 {main}
WikiUser22222 (talk) 00:33, 18 January 2017 (UTC)
- The only think I can think of right now is that there isn't a file that is supposed to be there. Is there a file at /var/www/html/mw/mediawiki-1.27.1/extensions/Math/Math.hooks.php that contains a line like
public static function onParserAfterTidy( &$parser, &$text ) {
- ?? ☠MarkAHershberger☢(talk)☣ 01:16, 18 January 2017 (UTC)
- Ok, I put in the script, the message he gave me was 'there was an error in the query to the database. This may indicate a bug in the software.' what do then? WikiUser22222 (talk) 16:10, 18 January 2017 (UTC)
- Since there was at least one file missing, can you please download the extension again and ensure there's no file missing? Ciencia Al Poder (talk) 20:41, 18 January 2017 (UTC)
- Also, if you haven't run Update.php, that may help. ☠MarkAHershberger☢(talk)☣ 23:30, 18 January 2017 (UTC)
Sporadic error (docserver-http: 404) on start of visual editor
I installed mediawiki 1.27.1 with Visual Editor 1.27 following the instructions on https://www.mediawiki.org/wiki/VisualEditor/Setup . I followed the troubleshooting instructions as well, but everything seems to work. Sometimes I get the error, if I try to edit an article, but not always. I wasn't able to reproduce the error reliably.
Do you have any ideas on my problem?
Your help is very appreciated!
The Parsoid service is installed on a different server. The configuration is as follows:
IP of Parsoid server: 1.1.1.1
Domain of wiki: www.wiki.com
URL of wiki:
Configuration of parsoid server: /etc/mediawiki/parsoid/config.yaml: mwApis:
- uri: 'http://www.wiki.com/testWiki/api.php'
Configuration wiki: localSettings.php wfLoadExtension( 'VisualEditor' ); $wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array( # URL to the Parsoid instance // Use port 8142 if you use the Debian package 'url' => 'http://1.1.1.1:8142', ); Arganoide (talk) 11:49, 18 January 2017 (UTC)
Unable to send emails with MediaWiki
Hi there,
I'm trying to get MediaWiki (v1.26.2) to send emails but it doesn't seem to work. Whenever it tries to send an email, I get the following error: "Mailer returned: authentication failure [SMTP: SMTP server does not support authentication (code: 250, response: server.name.here Hello [ip.addr.here] SIZE 36700160 PIPELINING DSN ENHANCEDSTATUSCODES 8BITMIME BINARYMIME CHUNKING)]"
I have the configuration in LocalSettings.php thus:
$wgSMTP = array( "host" => 'mail.server.here', // could also be an IP address. Where the SMTP server is located "IDHost" => 'domain.co.uk', // Generally this will be the domain name of your website (aka mywiki.org) "port" => 25, // Port to use when connecting to the SMTP server "username" => '', // Username to use for SMTP authentication (if being used)'' "password" => '', // Password to use for SMTP authentication (if being used)'' "auth" => false // Should we use SMTP authentication (true or false) );
Unfortunately the server doesn't support authentication, though as you can see the auth setting is set to fale. However, MW doesn't seem to be honouring this and so I get the error above. I have Pear and Pear SMTP installed:
Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.4.2 stable Auth_SASL 1.0.6 stable Console_Getopt 1.4.1 stable Mail 1.2.0 stable Mail_Mime 1.10.0 stable Net_SMTP 1.6.1 stable Net_Socket 1.0.14 stable PEAR 1.10.1 stable Structures_Graph 1.1.1 stable XML_Util 1.3.0 stable
I've tried various settings both with username, password, different ports, auth turned on and off but the results are still the same. I'm at a loss. MW is running on Ubuntu and running PHP 5.3. Faintaxis (talk) 13:19, 18 January 2017 (UTC)
- That's very strange, because MediaWiki sends $wgSMTP directly to Pear Mail:
$mail_object =& Mail::factory( 'smtp', $wgSMTP );- The error comes from Net_SMTP (source). But that auth() method is only called if the 'auth' value of $wgSMTP is not false (source).
- I can only say, you should double-check that the LocalSettings.php file you're editing is the one being used by MediaWiki and that you aren't overwriting $wgSMTP somewhere else below that. Ciencia Al Poder (talk) 21:00, 18 January 2017 (UTC)
- This is exactly what I was thinking, but I even modified the DefaultSettings.php file to see if that could override it but no luck. I can't seem to find another LocalSettings.php file that it would be reading from - it's very confusing! Faintaxis (talk) 13:24, 19 January 2017 (UTC)
How to migrate a wordpress site to mediawiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a wordpress site with more than 40000 posts and I want to export them to a fresh new mediawiki site.So is it possible to achieve that? Winnieji (talk) 16:03, 18 January 2017 (UTC)
- Google has lots of listings for people that need to do this in the past, have you googled it to look at what's already been tried? Seems you first need to get your data out of wordpress, I'd start there.
- Then you can look at:
- Manual:Importing external content TiltedCerebellum (talk) 22:04, 4 August 2020 (UTC)
Categories Don't Work!!!
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello!
I have a big problem. The categories of my WIKI do not work. I tried to recover the database and it works, but I return the original database and the categories do not work.
The problem is that I create a category but the register don't insert in database, then isn't visible in the especial:Categories. And when I reffer to a category from a any page, don't appear in the list of pages to this category.
I don't know why happen this. I think that is a problem of databases because when changing the databases for a backup, It works correctly but the information is outdate.
Please your help.
Thanks a lot beforehand.
Sergio Andrés Ssotocano (talk) 03:07, 19 January 2017 (UTC)
- See Project:Support desk/Flow/2016/07#h-Upgrading_from_1.26_to_1.27_breaks_putting_pages_in_a_category-2016-07-27T19:13:00.000Z. AhmadF.Cheema (talk) 08:15, 19 January 2017 (UTC)
- Whoa, MW turned into shit. It was great once :( Subfader (talk) 12:35, 21 January 2017 (UTC)
- You are free to use a different system. Or fix the "shit", if you really care about it. 83.135.224.49 (talk) 09:24, 22 January 2017 (UTC)
- Thanks very much to all. The solution was explain in this Project:Support desk/Flow/2017/02#h-In_our_wiki,_are_emerging_errors_that_are_solved_at_time_alone_which_generates_m-2017-02-21T15:18:00.000Z , and the script whit I could solve this was Manual:UpdateSpecialPages.php
- Greetings! Ssotocano (talk) 16:45, 23 February 2017 (UTC)
Broken MediaWiki
Hi, so my mediawiki page won't load. When I type in the URL, I get this error "Can't contact the database server: php_network_getaddresses: getaddrinfo failed: Name or service not known (db1)". I went through my webhost and looked into the files. It looks like I'm near my data limit because of something do with how the wiki is object caching? Can you give me any suggestions? Thanks! 2001:DF0:0:200C:89DD:4553:1CE7:D0A5 (talk) 03:30, 19 January 2017 (UTC)
- You probably have $wgDBserver = "db1" in LocalSettings.php. Check if the name of the database server is correct (which apparently isn't) and fix it.
- About the size of the objectcache table, you can delete the contents of the table periodically, but it will cause slower loads, and users being logged out. See Manual:$wgMainCacheType and other similar caching variables to tune where to enable or disable different cache types. Ciencia Al Poder (talk) 10:30, 19 January 2017 (UTC)
Can't log in to wikispooks
It says I have cookies disabled, I do not, even the 5 temp passwords sent will not work! help! 181.192.62.162 (talk) 05:28, 19 January 2017 (UTC)
- You should contact administrators of that wiki. Can you log in on other wiki? What your browser settings says about cookies? wargo (talk) 15:45, 19 January 2017 (UTC)
Extension:AllBooks
When I use all books extantion , then I found a error . In my site show this error like this -"Parse error: syntax error, unexpected 'book_count' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /home/textilee/public_html/extensions/AllBooks/NumberOfBooks.php on line 29" and my site name is textileedu.org . Now I remove this extantion from my site till solve this error. please help-শাহাদাত সায়েম (talk) 12:23, 19 January 2017 (UTC)
- Did you copy all files properly? What version of PHP? wargo (talk) 15:43, 19 January 2017 (UTC)
- PHP Version - 4.0.10.14 . And I completely copy of this extantion by this link https://www.mediawiki.org/wiki/Extension:AllBooks . Thanks-শাহাদাত সায়েম (talk) 17:25, 19 January 2017 (UTC)
- MediaWiki requires PHP 8.2.0+ wargo (talk) 19:09, 19 January 2017 (UTC)
Extension ImageMap
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have been using ImageMap extension for quite a while now and found a script imageMapHighlighter that was working greate until I upgraded to mediawiki 1.28.0.
I'm now getting an error and no links or highlighting.
Exception in load-callback in module jquery.makeCollapsible:
ReferenceError: appendCSS is not defined ReferenceError: appendCSS is not defined
Thank you for your help. Legaulph (talk) 12:42, 19 January 2017 (UTC)
- Well after posting this I found the solution
- mw.util.addCSS instead of appendCSS Legaulph (talk) 12:58, 19 January 2017 (UTC)
VisualEditor extension asks for "accepting the action" when activated
Hi, I've installed VisualEditor and Parsoid on 1.29.0 WikiMedia. When I click on "edit" button I see starting VisualEditor extension but I can't use it because of pop-up window with message: "accept the action" "http" "ok" .. "decline"
if I click "ok" - it the message appears again and again( if I click "decline" - VisualEditor doesn't start( 213.79.126.58 (talk) 14:57, 19 January 2017 (UTC)
- Do you have any browser extensions installed ? —TheDJ (Not WMF) (talk • contribs) 19:31, 19 January 2017 (UTC)
Not getting the updated content after clicking SAVE
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Not getting the updated content of an edited web page after clicking SAVE. Although the page gets created/saved. I can't create web pages the normal way. 212.24.153.58 (talk) 21:37, 19 January 2017 (UTC)
- versions:
- MediaWiki 1.26.3
- PHP 5.6.28 (apache2handler)
- MySQL 5.7.13-log
- ICU 57.1
- OS Windows Server 2012 R2 Standard
- Installation using XAMPP
- Issue confirmed using Chrome and IE. 1Roso (talk) 21:44, 19 January 2017 (UTC)
- 1.26.3 is an ancient, unsupported, insecure software version. Please update to a supported secure software version. 31.55.5.11 (talk) 17:19, 22 January 2017 (UTC)
- Is there any error given when you hit "Save"?
- See Manual:How to debug, to get more detailed information about any errors occurring in the background. AhmadF.Cheema (talk) 02:08, 20 January 2017 (UTC)
- Nope, no indication at all. The same happens after clicking on LOGIN (in that case I just have to click on any link available and then the status of logged user gets changed correctly).
- It is a fresh installation :(
- Does MediaWiki provide any logs I can check? 1Roso (talk) 07:41, 20 January 2017 (UTC)
- For logs see Manual:How to debug. AhmadF.Cheema (talk) 09:23, 20 January 2017 (UTC)
- I can see one thing at the end of debug log:
- [gitinfo] Computed cacheFile= for <path>
- [gitinfo] Cache incomplete for <path>
- Is there anything I should look for specifically?
- Console, Queries, PHP includes logging seems to be without any errors. 1Roso (talk) 09:38, 20 January 2017 (UTC)
- Looks like your browser is caching the pages more than they should. Try hitting CTRL+SHIFT+R when you see a stale page, it should force the browser to get the updated version of the page Ciencia Al Poder (talk) 10:39, 20 January 2017 (UTC)
- I tried it now also from my mobile and it behaves the same way :(
- I have tried the CTRL+SHIFT+R hint, but it still behaves the same way. 1Roso (talk) 11:02, 20 January 2017 (UTC)
- Also, my settings in LocalSettings.ini for cache is NONE
- ## Shared memory settings
- $wgMainCacheType = CACHE_NONE;
- $wgMemCachedServers = array();
- Also, I have done "php rebuildall.php" command as well... Did not help :( Any thoughts? 1Roso (talk) 14:17, 20 January 2017 (UTC)
- So, to be sure I understand, you have a page with text like "AAAAAA", you edit it so it says "ABBBB" and after saving it still displays "AAAAAA", even after clearing the cache or using another browser, but editing the page displays "ABBBB"? Ciencia Al Poder (talk) 18:25, 20 January 2017 (UTC)
- Good point. I haven't said what happens with the saved page. Yes, the changes are actually being saved, but the redirect after SAVE does not happen.
- I can see this URL in the browser for instance while being on the login screen (is that the correct one?):
- <server>/MWiki/index.php?title=Special:UserLogin&returnto=Main+Page
- This address appears after clicking on SAVE while not entering requested change summary (I have it configured so). If I enter some text and hit SAVE again, I see that for 1 second the page is doing something (like loading stuff) but then loading finishes and nothing changes. No redirection to the actual page. It stays in the editing phase.
- <server>//index.php?title=Main_Page&action=submit 1Roso (talk) 21:33, 20 January 2017 (UTC)
- I'm more confused now. So you say that after saving the page you're redirected to login? If your wiki requires login to edit and you are logged off in the middle of an edit, you aren't redirected to the login page. Usually you're presented with a read-only edit screen. And neither if your wiki requires login to view pages (you simply get an error saying you must login to view pages).
- Can you also give details about the "clicking on SAVE while not entering requested change summary (I have it configured so)" part? Is this an extension or some configuration?
- If after hitting save the page starts loading and then stops, but the page isn't reloaded at all (i.e.: you still have the focus on the button and scroll of the page is maintained) then the webserver has probably segfault and the connection terminated. This is usually caused by a bug in PHP, any of its extensions (xcache or similar) or the webserver itself. The webserver's error log might tell you more about this Ciencia Al Poder (talk) 11:10, 21 January 2017 (UTC)
- The issue happens on many occasions. First is in the login screen (hitting login button makes the login successful in the background, but the page is not being redirected to the main page). Then while editing any web page, doing changes and then hitting SAVE button (the SAVE action happens in the background, but the page is not being reloaded to see the edited page).
- I have tried to get every logs I could as suggested in replies above, but no error, no issue seems to be found... I'm just a beginner and I'm lost a little bit. I'm thinking about doing a full reinstall, including new database and start from scratch...
- Will try to upgrade PHP. Upgrade of MediaWiki to 1.28 did not resolve the issue. 1Roso (talk) 20:50, 21 January 2017 (UTC)
- Open the developer console of the browser (hit F12) and on the network tab see what happens when you submit the form. It displays the response of the server. Maybe you get a connection reset or something, or it never loads. In that case it's a server fault, not a configuration / programmatic error in MediaWiki. Ciencia Al Poder (talk) 14:59, 22 January 2017 (UTC)
- I have uninstalled XAMPP, got newest one with PHP 7.0.13, retaining MySQL database used b4, all works now. But what was causing it is unknown. 1Roso (talk) 10:05, 23 January 2017 (UTC)
- Have compared the two LocalSettings.php files (old and new) and saw a difference in typo in address for $wgServer variable... that could be it. 1Roso (talk) 10:18, 23 January 2017 (UTC)
how do I change my user name
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I change my user name? Letterlocking (talk) 23:30, 19 January 2017 (UTC)
- On Wikimedia projects, use Special:GlobalRenameRequest Tropicalkitty (talk) 23:53, 19 January 2017 (UTC)
- Thank you! Letterlocking (talk) 00:13, 20 January 2017 (UTC)
WikiText editor removing line breaks when editing
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a wiki page that is generated from the following:
{{Table3ColumnHeader|A|B|C}}
{{Table3ColumnRow|1|2|3}}
{{Table3ColumnRow|78|32|53}}
{{Table3ColumnRow|T1|G2|3J}}
and this loads my table fine using the templates, but when I then edit my page, wikitext changes it to the following and if saved without reverting back to the above format, the table does not display correctly:
{{Table3ColumnHeader|A|B|C}} {{Table3ColumnRow|1|2|3}} {{Table3ColumnRow|78|32|53}} {{Table3ColumnRow|T1|G2|3J}}
Why does wikitext editor keep reformatting it and how can I stop it from doing this or fix it?
Please note my wiki version is currently: 1.16.0 Quinnj09 (talk) 12:42, 20 January 2017 (UTC)
- Have you tried WYSIWYG CKEditor extension? 1Roso (talk) 14:47, 20 January 2017 (UTC)
- I am unable to install extensions onto our wiki unfortunately Quinnj09 (talk) 15:24, 20 January 2017 (UTC)
- I'm just in a middle of upgrade from 1.26.3 to 1.28, will try afterwards your table issue. 1Roso (talk) 15:37, 20 January 2017 (UTC)
- Hmmm, now running 1.28 MWiki, but in your code a loop is being detected:
- Template loop detected: Template:Table3ColumnHeader Template:Table3ColumnRow Template:Table3ColumnRow Template:Table3ColumnRow Template:Table3ColumnRow Template:Table3ColumnRow Template:Table3ColumnRow
- But I'm not familiar with templates yet, can't help you here much....
- Here they say you need to have "|" signs between the table commands... e.g.: 1Roso (talk) 16:10, 20 January 2017 (UTC)
- Template:Table3ColumnHeader is:
{| style="border-left: 2px solid black; border-bottom: 2px solid black; border-right: 2px solid black; border-top: 2px solid black; text-align: center; border-spacing: 0px; margin: 1em auto" |- ! style="border: 1px solid black; background: lightblue; padding: 5px;" | {{{1}}} ! style="border: 1px solid black; background: lightblue; padding: 5px;" | {{{2}}} ! style="border: 1px solid black; background: lightblue; padding: 5px;" | {{{3}}}- and Template:Table3ColumnRow is:
|- | style="border: 1px solid black;" | {{{1}}} | style="border: 1px solid black;" | {{{2}}} | style="border: 1px solid black;" | {{{3}}}- If thats of any help to you? Quinnj09 (talk) 16:20, 20 January 2017 (UTC)
- I have fixed it by adding
<includeonly>
- at the start of each template page and:
</includeonly>
- at the end of each template page Quinnj09 (talk) 16:50, 20 January 2017 (UTC)
Wrong nn message
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I don't know nynorsk (nn) or where to report this (I don't have a translatewiki account) but I noticed MediaWiki:Stub-threshold/nn displays "Grense (i byte) for at frø/spirer skal formaterast <a href="#" class="stub">slik</a>:" as raw text at https://www.mediawiki.org/wiki/Special:Preferences?uselang=nn#mw-prefsection-rendering. Based on MediaWiki:Stub-threshold the nn message isn't supposed to contain a link. PrimeHunter (talk) 22:48, 20 January 2017 (UTC)
- I found an nn translator at translatewiki.net. It has been fixed there.[https://translatewiki.net/w/i.php?title=MediaWiki:Stub-threshold/nn&diff=7239438&oldid=211868] It should be fixed in other wikis at the next import from translatewiki. PrimeHunter (talk) 18:11, 3 February 2017 (UTC)
Internal Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So I recently got a few errors that were so bad I could not use the wiki at all. Here is what it came out with.
[4e5b15cbc1732785e346b3f1] /wikimaintenance/ DBQueryError from line 1054 of C:\xampp\htdocs\wikimaintenance\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `user` WHERE user_id = '3' LIMIT 1
Function: User::loadFromDatabase
Error: 1932 Table 'wiki.user' doesn't exist in engine (localhost)
Backtrace:
#0 C:\xampp\htdocs\wikimaintenance\includes\libs\rdbms\database\Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 C:\xampp\htdocs\wikimaintenance\includes\libs\rdbms\database\Database.php(1254): Database->query(string, string)
#2 C:\xampp\htdocs\wikimaintenance\includes\libs\rdbms\database\Database.php(1322): Database->select(string, array, array, string, array, array)
#3 C:\xampp\htdocs\wikimaintenance\includes\user\User.php(1237): Database->selectRow(string, array, array, string, array)
#4 C:\xampp\htdocs\wikimaintenance\includes\user\User.php(481): User->loadFromDatabase(integer)
#5 C:\xampp\htdocs\wikimaintenance\includes\libs\objectcache\WANObjectCache.php(884): User->{closure}(boolean, integer, array, NULL)
#6 C:\xampp\htdocs\wikimaintenance\includes\libs\objectcache\WANObjectCache.php(1004): WANObjectCache->{closure}(boolean, integer, array, NULL)
#7 C:\xampp\htdocs\wikimaintenance\includes\libs\objectcache\WANObjectCache.php(887): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array, NULL)
#8 C:\xampp\htdocs\wikimaintenance\includes\user\User.php(495): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#9 C:\xampp\htdocs\wikimaintenance\includes\user\User.php(437): User->loadFromCache()
#10 C:\xampp\htdocs\wikimaintenance\includes\user\User.php(401): User->loadFromId(integer)
#11 C:\xampp\htdocs\wikimaintenance\includes\session\UserInfo.php(88): User->load()
#12 C:\xampp\htdocs\wikimaintenance\includes\session\CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string)
#13 C:\xampp\htdocs\wikimaintenance\includes\session\SessionManager.php(486): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
#14 C:\xampp\htdocs\wikimaintenance\includes\session\SessionManager.php(189): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#15 C:\xampp\htdocs\wikimaintenance\includes\WebRequest.php(735): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#16 C:\xampp\htdocs\wikimaintenance\includes\session\SessionManager.php(128): WebRequest->getSession()
#17 C:\xampp\htdocs\wikimaintenance\includes\Setup.php(759): MediaWiki\Session\SessionManager::getGlobalSession()
#18 C:\xampp\htdocs\wikimaintenance\includes\WebStart.php(137): require_once(string)
#19 C:\xampp\htdocs\wikimaintenance\index.php(40): require(string)
#20 {main}
If anyone can help then that would be great. Rbarker108 (talk) 23:07, 20 January 2017 (UTC)
- The relevant part is the message
- Error: 1932 Table 'wiki.user' doesn't exist in engine (localhost)
- Have you changed anything with the database? Like have you moved it to a new server? Have you maybe changed things with the InnoDB files in the file system (e.g. with the files ibdata1, ib_logfile0 and ib_logfile1)? Is the table still showing up, when you view the database with PHPMyAdmin?
- Anyway, the detailed answer to this question might help you:
- http://superuser.com/questions/675445/mysql-innodb-lost-tables-but-files-exist 83.135.231.61 (talk) 07:18, 21 January 2017 (UTC)
- Erm. I cannot get into phpmyadmin. I will try to check. Rbarker108 (talk) 20:24, 23 January 2017 (UTC)
- Still is getting the database error. The reason for the database error is that my xampp wont let mysql start. Rbarker108 (talk) 23:28, 23 January 2017 (UTC)
- xampp is just a controlling mechanism and bundle installation program. If MySQL is not able to start, you have to look for the issue causing MySQL not starting. Can you see logs for MySQL from XAMPP? You need to look into them and see why the database is not up. Service for MySQL is DISABLED? Which version of XAMPP/MySQL you are running? Are you able to start MySQL workbench? 1Roso (talk) 09:09, 24 January 2017 (UTC)
- I switched over to ampps and the phpmyadmin is giving me an access denied. Rbarker108 (talk) 14:14, 24 January 2017 (UTC)
- Got it. I will just reinstall the wiki and start over. I was not very far anyway. Rbarker108 (talk) 14:16, 24 January 2017 (UTC)
- Yep, this helped me recently as well. Got all backed up and then uninstalled everything. XAMPP latest release (with PHP7.0.13) installed, configured, all OK now. 1Roso (talk) 08:15, 25 January 2017 (UTC)
Wiki Org/Structure Q: Namespaces or Sub-Pages?
Hi everyone.
I am planning the information organization of my wiki-to-be, and wanted to ask experts out there to give me feedback on the two options I'm contemplating for my particular scenario.
- What problems will I encounter if I make one choice over the other?
- Is there a definitive best choice?
- My main concern will be whether it will help me with the style/skinning down the road, so I'm wondering if either option exposes the name for CSS use, for example?
I have MediaWiki 1.28.0, PHP 7.0.9, MariaDB 10.1.19, ICU 4.8.1.1 staged on a CentOS 6.7 VM. She's only 3 days old. :)
What my primary objective is (Skinning).
I'm going to have a Topic, and it will be described in 6 Pages (each having a different color): Purple, Blue, Green, Yellow, Orange, and Red. When the Red Page is displayed, I'm going to customize the skin (don't know how yet) so it is styled in Red, etc.
The Organizational Choice I Want Feedback On
I'm considering two possibilities (and have created an experimental topic with 6 pages trying both approaches).
- Namespaces I've already successfully configured my custom NS + talk pages in LocalSettings.php and that they are content NS and should be searched, so no problems there. This gives me Purple:Topic, Blue:Topic, etc. I am concerned this may group Topics by color on Category pages, rather than by Topic name?
- Sub-Pages This seems simpler, but gives me a main Page Topic which I don't really need (can I have Sub-Pages w/o a parent?), under which are the Sub-Pages Topic/Purple, Topic/Blue, etc.
Right now this is all English, but down the road it could be localized. In that case, the "color" names may change (may even include extended chars like umlauts, gruen and what have you). Will this be a problem? I imagine this part would be easier with Sub-Pages rather than Namespaces, although I don't foresee that many languages that I couldn't add those as custom NS, too.
There is a secondary concern of mine (Ordering).
Right now when I list these Pages on a Category page, they appear in alphabetical order: Blue, Green, Orange, Purple, etc. I would like them to appear in chromatic order: Purple, Blue, Green, Yellow, Orange, Red; for any given Topic (where the Topics are still in alphabetical order, that's fine).
For this secondary concern, what I think I can do is perhaps hack something (don't know what yet) to get them (either the Namespaces or the Sub-Pages) to get sorted by ascending Creation-Date. I can then just follow a workflow in which they will always be created in chromatic order; or if not I can touch the occasional Creation-Date in the database to make it work. I'd be interested in whether either a Namespace or Sub-Page approach might offer an easier way?
Thank you for your any advice you can share,
Derek Derek Harmon (talk) 17:30, 21 January 2017 (UTC)
- One additional point I left out, that I found attractive about Namespaces. I'd like to have each color appear as a Tab in the navigation (don't know how exactly, yet), which is something the Namespace option seems capable of achieving.
- So when they are looking at any of the Topics in a Color, the other Colors of that Topic are available for them to navigate to through Tabs. Derek Harmon (talk) 17:36, 21 January 2017 (UTC)
- Using the sub-pages approach, the "main Page Topic" can be a list of the 6 chromatic pages. This approach is definitely straightforward and uncomplicated.
- However, while I'm sure your requirements for skinning can be achieved using the namespaces approach, I don't know if it can be done for subpages or not.
- Relevant extension: Extension:Tabs AhmadF.Cheema (talk) 22:23, 21 January 2017 (UTC)
I lost my password to get in, how can i get it?
help me find my pass word 104.3.170.140 (talk) 17:36, 21 January 2017 (UTC)
- Hi.
- I noticed the database password for your Wiki User (DB account) is in the LocalSettings.php file. look for $wgDBpassword, if that's the password you're looking for. If you are looking for your MediaWiki logon, then perhaps you can look in the database for it, or reset it (it's probably hashed, but you could hash a new password for yourself and update the field with that).
- Derek Derek Harmon (talk) 17:44, 21 January 2017 (UTC)
- You can use the login page to reset the password of your MediaWiki account, if that is configured in your wiki. Apart from that the changePassword.php maintenance script allows you to set a new password for the account. 83.135.224.49 (talk) 09:23, 22 January 2017 (UTC)
Anyone encounter session lost problem during editing after a long idle?
Basically, if you enter editing interface and them work for more than half an hour, once you submit the editing Mediawiki will show "session lost, please check weather you are login or not. try re-submit balabala..." However, user can login without any problem.
This problem exist in our wiki for quite a long time, and switching between php7/hhvm does not solve it. We also tried to store session in redis and in database. None of them work.
It seems the $wgCookieExpiration default value is 180 * 86400 for MW 1.27. Is there any other ways to fix this error? Deletedaccount4567435 (talk) 21:18, 21 January 2017 (UTC)
Create own WIKI bio page.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Are we allowed to create our own bio page? In reality, it's like a resume, right? Eagles2017 (talk) 21:28, 21 January 2017 (UTC)
- You are allowed to write such a page, if the topic meets the criteria named on en:WP:Notability. If it does not meet these criteria you can write an article nonetheless, but it will most likely be deleted again.
- Our introduction page en:WP:Your first article has more information on how a good article should look like! 83.135.224.49 (talk) 09:20, 22 January 2017 (UTC)
changing colors in mediawiki:common.css
Hello, I have 2 questions;
I made my wiki on http://www.dharma-lotus.nl/wiki and change the background color in mediawiki:common.css in body {color: #ffA500; background: #E9E0A5 } That changed the color in the left and lower side of the page, not the center and the upper part. How do I change the color there?
And, how do I place a message in the header so it is seen on every page?
Many thanks, Ivar Dharma-lotus-wiki (talk) 10:37, 22 January 2017 (UTC)
- Supress the background-gradient at the top:
#mw-page-base { background: transparent; }- Message on the header: See Manual:Interface/Sitenotice Ciencia Al Poder (talk) 12:50, 22 January 2017 (UTC)
- Many thanks,
- this works for the top, so now I have the top, bottum en left-bar. But how do I change the color for the center part, there were the article is placed?
- http://www.dharma-lotus.nl/wiki Dharma-lotus-wiki (talk) 07:31, 23 January 2017 (UTC)
Links with german/special characters dont't work after upgrade 1.23 to1.27
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
PHP Vesion: 5.6.28 MySQL Version:5.5.52
Original Homepage, (version 1.23.4) Url: http://vtadwiki.vtad.de everything ist ok!
after cloning and upgrading to 1.27.1 Url: http://vtadwiki127.vtad.de some links with ü, %, etc, don't work - for example http://vtadwiki127.vtad.de/index.php/William%27s_%25R Vtadler (talk) 18:00, 22 January 2017 (UTC)
- THe URL as MediaWiki links to is http://vtadwiki127.vtad.de/index.php/William%27s_%25R. This corresponds to an apostrophe and a % sign in the URL.
- What you are getting then is a redirect loop.The webserver responds with status code 301 and provides a redirect location. However, this location is identical to the current URL. This looks like a misconfiguration in the webserver I guess. 83.135.224.49 (talk) 22:09, 22 January 2017 (UTC)
- Its not a webserver misconfiguration: On the same server It works with
- http://vtadwiki.vtad.de/index.php/William%27s_%25R Vtadler (talk) 08:27, 23 January 2017 (UTC)
- This is probably caused by T106793. It's waiting for the release of 1.27.2 (which nobody know when it will happen). You can download REL1_27 branch from git, or try 1.28 which seems to include the fix. Ciencia Al Poder (talk) 10:38, 23 January 2017 (UTC)
- @Ciencia thx, upgrading to 1.28.0 solved the problem Vtadler (talk) 18:02, 23 January 2017 (UTC)
How to create home page similar to wikipedia.org with globe ect?
I want to sort of re-create homepage of wikipedia.org (with globe and links to language versions of wikipedia) for my project but would like to insert image of my choice instead of globe and with titles of links appropriate for my project. Is there some template for that or tutorial? Axelwww27 (talk) 18:58, 22 January 2017 (UTC)
- That page is not part of mediawiki. You can create it yourself like you would any other web page. 110.149.127.190 (talk) 05:19, 23 January 2017 (UTC)
- FYI, the code of the portals of wikimedia are managed in: https://github.com/wikimedia/portals —TheDJ (Not WMF) (talk • contribs) 12:21, 23 January 2017 (UTC)
Need assistance.
My editing experience is limited. I just edited a topic, committed an error, and don't know how to correct it, https://en.wikipedia.org/wiki/Pacific_Time_Zone. SteroidMoe (talk) 23:18, 22 January 2017 (UTC)
- Please ask for this specific help in the talk page of the article (wikipedia:Talk:Pacific Time Zone) or the wikipedia:Wikipedia:Village pump Ciencia Al Poder (talk) 10:42, 23 January 2017 (UTC)
LDAP Groups not showing up in MediaWiki
Hi all,
I've installed the LDAP Authentication extension as below with the following configuration in LocalSettings.php
https://www.mediawiki.org/wiki/Extension:LDAP_Authentication
The problem: Each user in LDAP is a member of a group. They all can login using their LDAP credentials to MediaWiki. They are all members of the Autoconfirmed users and Users groups. However, some users will be members of the hr group in LDAP (for example). No LDAP group, such as hr, is not showing up in Mediawiki anywhere, despite using $wgLDAPGroupsPrevail.
Anyone have any ideas as to where I'm going wrong? Probably something obvious!
Thanks in advance
(Currently using the most recent version of Ldap Auth extension with current Mediawiki).
# LDAP
require_once ("extensions/LdapAuthentication/LdapAuthentication.php");
require_once ("includes/AuthPlugin.php");
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
"ldap_domain_com",
);
$wgLDAPServerNames = array(
"compsoc_nuigalway_ie" => "ldap.domain.com",
);
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array(
"ldap_domain_com" => "tls",
);
$wgLDAPPort = array(
"ldap_domain_com" => 389,
);
$wgLDAPProxyAgent = array(
"ldap_domain_com" => "cn=admin,dc=ldap,dc=company,dc=com",
);
$wgLDAPProxyAgentPassword = array(
"ldap_domain_com" => "password",
);
$wgLDAPSearchAttributes = array(
"ldap_domain_com" => "uid",
);
$wgLDAPBaseDNs = array(
"ldap_domain_com" => "dc=ldap,dc=company,dc=com",
);
$wgLDAPGroupBaseDNs = array(
"ldap_domain_com" => "ou=group,dc=ldap,dc=company,dc=com"
);
$wgLDAPPreferences = array(
"ldap_domain_com" => array( "email" => "mail")
);
$wgLDAPLowerCaseUsername = array(
"ldap_domain_com" => true
);
$wgLDAPUseLDAPGroups = array(
"ldap_domain_com" => true
);
$wgLDAPGroupsPrevail = array(
"ldap_domain_com" => true
);
$wgLDAPGroupNameAttribute = array( "ldap_domain_com"=>"cn" );
# Using this as we store our group info under ou=group. Each group is a cn on it's own and lists all it's members. Is this the correct way to do it? Having this as true and as false makes no difference.
$wgLDAPGroupSearchNestedGroups = array(
'ldap_domain_com' => true,
); GetRandomNumber (talk) 00:07, 23 January 2017 (UTC)
- Any ideas? GetRandomNumber (talk) 20:13, 4 February 2017 (UTC)
Help me for configure LocalSetting.php
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
how to use https://www.mediawiki.org/wiki/$wgTmpDirectory in localsetting.php because I've bug for https://phabricator.wikimedia.org/T127127 Murbaut (talk) 05:04, 23 January 2017 (UTC)
- How to set in LocalSeting.php? Murbaut (talk) 05:05, 23 January 2017 (UTC)
- You can try something like this: (put this line after setting $wgDBname not before!)
- $wgTmpDirectory = "/tmp/wikitmp-$wgDBname"; Ciencia Al Poder (talk) 10:41, 23 January 2017 (UTC)
- @Ciencia Al Poder: Thanks verry much it work well :) Murbaut (talk) 14:59, 24 January 2017 (UTC)
Extension:ZeroPortal
Hey, Can I use Extension:ZeroPortal for free content service for my wiki site? -শাহাদাত সায়েম (talk) 07:59, 23 January 2017 (UTC)
- Are you a mobile provider? :) Malyacko (talk) 22:33, 24 January 2017 (UTC)
- no ShahadatHossain (talk) 04:21, 25 January 2017 (UTC)
- Then how do you expect this to work? :) Malyacko (talk) 13:59, 27 January 2017 (UTC)
- I do not know full details about this extantion . so , I knock hare . ShahadatHossain (talk) 15:47, 27 January 2017 (UTC)
Hi I need to set authentication from my active directory while normal user browsing media wiki page of local media wiki server.
Hi I need to set authentication from my active directory while normal user browsing media wiki page of local media wiki server. Vijay.bomble (talk) 10:52, 23 January 2017 (UTC)
i need help
i need help Wikilover420 (talk) 16:11, 23 January 2017 (UTC)
- What do you need help with? 83.135.226.244 (talk) 20:37, 23 January 2017 (UTC)
Undefined index: hash in /var/www/w/123/includes/libs/composer/ComposerLock.php on line 19
PHP Notice: Undefined index: hash in /var/www/w/123/includes/libs/composer/ComposerLock.php on line 19 mediawiki/semantic-media-wiki: 2.4.5 installed, ~2.1 required. mediawiki/chameleon-skin: 1.5.0 installed, 1.* required. Error: your composer.lock file is not up to date, run "composer update" to install newer dependencies
Composer.json
"mediawiki/semantic-media-wiki": "~2.1",
"mediawiki/chameleon-skin": "1.*"
composer validate does not show errors, composer update does not update ... now what? Temptuousinsolence (talk) 16:37, 23 January 2017 (UTC)
- this ... apparently:
- https://phabricator.wikimedia.org/T154345#2908240 Temptuousinsolence (talk) 18:17, 23 January 2017 (UTC)
Primary keys on all tables?
Hi all,
We'd like to run MediaWiki in a Galera cluster, and the problem is that DELETE operations are not supported on any table that lacks a primary key.
"All tables should have a primary key (multi-column primary keys are supported). DELETE operations are unsupported on tables without a primary key. Also, rows in tables without a primary key may appear in a different order on different nodes." (https://mariadb.com/kb/en/mariadb/mariadb-galera-cluster-known-limitations/)
1. Are there any plans to get primary keys added to the tables which still lack them (https://www.mediawiki.org/wiki/Category:MediaWiki_database_tables_that_lack_a_primary_key) ?
2. If not, or in the interim, if we picked our own primary keys and added them to the tables, is it likely to cause problems when we upgrade to a new version of MediaWiki which might make schema changes? Shawnomancy (talk) 19:29, 23 January 2017 (UTC)
- I personally need primary keys as well. I added an issue for that a few years ago and things have improved. There however still are tables without a primary key. But the plan most likely is to add missing PKs. But there is no definitive timeframe for that.
- The database upgrade during MediaWiki upgrades usually always is constructed in a way that it adds or removes those things, which the developers manually wrote down for change. With other words: The updater does not check the status of your database, finds that you have columns/keys, which should not be there and removes them. If things continue to be the way they have been in the last at least 5 years, then this won't happen. Instead, the updater will only add or remove those new columns, which have newly been changed in MediaWiki itself. Other columns/keys, which you have added yourself, should stay untouched and unchanged. 83.135.226.244 (talk) 20:35, 23 January 2017 (UTC)
- There's T17441 tracking that. Note that the updater will fail if it tries to define a Primary Key for a table that already has one. Ciencia Al Poder (talk) 10:44, 24 January 2017 (UTC)
- If I follow you, and just to be explicit since this is for my job: :)
- If we add a PK to a table which doesn't have one, and we do an update, and the updater doesn't try to add a new key to that table, there should be no problem.
- But there will be a problem if the updater tries to add a PK to a table that we've already added our own to.
- Have I understood you correctly? Shawnomancy (talk) 15:04, 24 January 2017 (UTC)
- Correct. Ciencia Al Poder (talk) 10:37, 25 January 2017 (UTC)
- Thanks much for the help. Shawnomancy (talk) 16:47, 25 January 2017 (UTC)
Permission to use Code of Conduct
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I am a teacher creating a makerspace at school, and I would love to have permission to use some of your Code of Conduct in my classroom. If I attribute credit, may I use parts of it? Thanks! 96.4.216.7 (talk) 21:26, 23 January 2017 (UTC)
- The content is provided under the terms of the CC-BY-SA 3.0 and GFDL licenses, so I guess that yes, you can, if you give the proper attribution required from those licenses. Pinging @Qgil-WMF: just in case. Ciencia Al Poder (talk) 10:38, 24 January 2017 (UTC)
- Of course! I am very happy to see that you find it useful. You might be also interested in Expected behavior. Qgil-WMF (talk) 10:42, 24 January 2017 (UTC)
- Wonderful! Thank you so much! Just found it to be very well said and clear. I'll be sure to give credit, and I'll check out the Expected behavior section as well. Thanks for being excellent pioneers and examples. I'm finding the wiki very helpful. 96.4.216.7 (talk) 15:09, 24 January 2017 (UTC)
Acknowledge/Signed Button
Is there a way to have a button on a page that says "Acknowledge" or "Signed", and when a user clicks it, at the bottom of the page, it says "Signed By User John Smith" or "Acknowledged by John Smith". Basically I'm trying to use mediwiki for our local intranet, and we have policies that have to be reviewed each year, and I would like to put these on our mediwiki, then employees can go to our mediawiki and click "Acknowledge" and sign off saying they reviewed them. Spencera2009 (talk) 22:45, 23 January 2017 (UTC)
- You could create your own Extension:FlaggedRevisions configuration, to do something like that. —TheDJ (Not WMF) (talk • contribs) 12:32, 24 January 2017 (UTC)
Resetting passwords
How can I active reset password in my wiki site . This option Does not work in my site .-শাহাদাত সায়েম (talk) 05:05, 24 January 2017 (UTC)
Bare bones versions of skins
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I was just wondering, is it possible to get a bare bones version of the Modern, Monobook and Vector skins at all? NeedAGoodUsername (talk) 16:40, 24 January 2017 (UTC)
- What does "bare bones" mean? Malyacko (talk) 22:01, 24 January 2017 (UTC)
- There is the example skin. Does that suit your needs ? —TheDJ (Not WMF) (talk • contribs) 23:09, 24 January 2017 (UTC)
- I mean something like the Wikimedia Dumps page - it's just a HTML page. Do the other skins have anything similar with all the MediaWiki/PHP elements removed? NeedAGoodUsername (talk) 01:13, 25 January 2017 (UTC)
- No, that page was handcrafted to look like the old monobook skin, but we don't bundle that anywhere, nor do it for other skins. —TheDJ (Not WMF) (talk • contribs) 09:26, 25 January 2017 (UTC)
- But then where is the code/CSS to make the skins to look the way they do? NeedAGoodUsername (talk) 14:59, 5 February 2017 (UTC)
- All code for any skin can be found https://github.com/wikimedia/mediawiki-skins
- Note however that MediaWiki has an internal post processor, that does things like less compilation, directionality flipping and many more things. If you want the 'composed' version of skins, just use a web inspector and inspect the requests an installation makes. —TheDJ (Not WMF) (talk • contribs) 17:24, 7 February 2017 (UTC)
MediaWiki doesn´t work after a phpbb Update?!
Hello,
i have a Phpbb3 Forum and a MediaWiki. I have updated the phpbb3 forum from 3.1.9 to 3.2. Now my Wiki doesnt work
I think the reason it the phpbb/mediawiki Bridge?
Extension:Phpbb Single Sign-On
can someone help me? 31.16.250.60 (talk) 18:25, 24 January 2017 (UTC)
- No one? 31.16.250.60 (talk) 05:57, 27 January 2017 (UTC)
- The error message is:
- General Error: SQL ERROR [ mysql4 ]: Table 'DB2389421.users' doesn't exist [1146]
- Obviously the table users in database DB2389421 is missing. The error page is printed out by phpBB and MediaWiki does not have a table named users - the missing users table must be the one of phpBB.
- If this error is happening after a phpBB update, then obviously user management in phpBB has been changed in a way that breaks the extension...
- Something useful to know might e.g. be: Has this table been there before the update? 83.135.236.185 (talk) 14:09, 27 January 2017 (UTC)
- Thanks for your Replay.
- I do not know if she was there before. So, i need to undoo the Bridge and the Mediawiki will run again?! 31.16.250.60 (talk) 13:06, 29 January 2017 (UTC)
- When you undo the upgrade, things should be working again, yes.
- I do not know how it is for phpBB, but for MediaWiki a downgrade is not supported. Meaning: Once you upgraded a MediaWiki database to a new version, there is no way to undo these changes. The only thing you can do is to replace the database with a backup from before the upgrade. I don't know, if it is the same for phpBB, but this might be a pitfall to take care of. 83.135.226.167 (talk) 19:14, 29 January 2017 (UTC)
- Thanks for your help.
- I've only reversed the bridge. Now the Wiki working again.
- I dont no why the Bridge is not working. Something was probably changed at the login... 31.16.250.60 (talk) 17:40, 30 January 2017 (UTC)
- That might be something you might want to ask in the phpBB community. They should know what changed with the login of phpBB between 3.1.9 and 3.2. 87.123.248.114 (talk) 21:31, 30 January 2017 (UTC)
- Thats right. I will try. Thank you! 31.16.250.60 (talk) 15:36, 31 January 2017 (UTC)
How to install MediaWiki on subfolder in Centos 7
I am currently trying to install MediaWiki to the subdirectory, /var/www/html/w/ in Centos 7 alongside Wordpress (in the root), but am receiving a 500 error when trying to access any pages in /var/www/html/w/. Prior to installing MediaWiki to the directory I was able to access a test index.php file with no trouble. My error log does not show anything, other subdirectories work correctly, and I have an .htaccess file with the following...
RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
I've also set ownership of the /var/www/html/w/ directories recursively to apache:apache, and the permissions to 755.
Do you know why I can't install, and get the 500 error? Thank you. Mattlcass (talk) 18:42, 24 January 2017 (UTC)
- It was existing installation and the moved to subdirectory? Set proper path in localsettings.php wargo (talk) 22:53, 27 January 2017 (UTC)
Imbedded flash objects not displaying
Hello,
I am unable to view the embedded flash objects on the machinations wiki. Instead of displaying the game diagrams, it shows a mirror of the wiki page. I have tried different web browsers and making sure flash and java are up to date. An example of the issue can be found on this page: http://www.jorisdormans.nl/machinations/wiki/index.php?title=Pac-Man
Thanks, Matt Indo583 (talk) 20:23, 24 January 2017 (UTC)
- That's provided by Extension:SimpleEmbed. I only see it generates an iframe on the page, but without the provided URL. Maybe it needs some modifications for it to work on more recent versions of MediaWiki... Ciencia Al Poder (talk) 10:41, 25 January 2017 (UTC)
Premature end of script when upgrading from mediawiki-1.26.2 to mediawiki-1.28.0
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I'm trying to upgrade my media wiki from 1.26.2 to 1.28.0 and when upgrading the tables in the database I get an internal server error. I checked the log and it's saying there's been a premature end of script:
[error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: http://website.com/w/mw-config/?page=Upgrade [Tue Jan 24 12:33:22 2017]
Any idea how I can solve this?
I'm going through the standard wiki upgrade process. Clean directory with LocalSettings.php only.
Server is Dreamhost VPS running MySQL 5.6 and PHP 5.6.29.
Thanks. TheGreatPiata (talk) 21:02, 24 January 2017 (UTC)
Vision impaired and lds.org
Our Ward recently assigned a blind member as a Visiting Teaching Coordinator. She is having trouble navigating lds.org to report visits. She previously was called to the same position several years ago before we went to electronic reporting. Is there a app or different site that can help her fulfill her calling? Mcelwain1 (talk) 21:03, 24 January 2017 (UTC)
- Welcome on the support desk for the MediaWiki software. lds.org does not run MediaWiki and is an unaffiliated third-party website, hence your question is off topic for this support desk. Malyacko (talk) 21:54, 24 January 2017 (UTC)
Change Special:ListFiles list default view to 500
Hi,
I would like to change the Special:ListFiles default list viewing size from 50 to 500. Is that possible and can someone point me to the right file to edit? I'm having a hard time finding it.
Thanks! Ohmyiv (talk) 21:36, 24 January 2017 (UTC)
- Method 1: Always include the limit when linking to the page (e.g. https://mediawiki.org/wiki/Special:ListFiles?limit=500
- I think it matches the limit for recentchanges, which is specifiable in Special:Preferences. You could maybe try setting
$wgDefaultUserOptions['rclimit'] = 500;at the bottom of LocalSettings.php (I haven't tested this). Bawolff (talk) 21:51, 2 October 2018 (UTC)
Help instaling Extension:CentralAuth
I have bug " Warning: Missing argument 1 for SiteConfiguration::siteFromDB(), called in /home/u847594659/public_html/wiki/LocalSettings.php on line 159 and defined in/home/u847594659/public_html/wiki/includes/SiteConfiguration.phpon line483Fatal error: Uncaught TypeError: Argument 3 passed to SiteConfiguration::mergeParams() must be of the type array, null given,called in /home/u847594659/public_html/wiki/includes/SiteConfiguration.php on line 402 and defined in /home/u847594659/public_html/wiki/includes/SiteConfiguration.php:455 Stack trace: #0 /home/u847594659/public_html/wiki/includes/SiteConfiguration.php(402): SiteConfiguration->mergeParams(NULL, NULL, NULL, NULL) #1 /home/u847594659/public_html/wiki/LocalSettings.php(160): SiteConfiguration->extractAllGlobals(NULL, NULL, NULL, NULL) #2 /home/u847594659/public_html/wiki/includes/WebStart.php(124): require_once('/home/u84759465...')#3 /home/u847594659/public_html/wiki/index.php(40): require('/home/u84759465...') #4 {main} thrown in/home/u847594659/public_html/wiki/includes/SiteConfiguration.phpon line455 " How to fix? Murbaut (talk) 03:43, 25 January 2017 (UTC)
Changing background colors in MediaWiki:Common.css
Hello,
I have a wiki ([[random page: http://www.dharma-lotus.nl/wiki/index.php?title=Zuivering_door_kennis_en_inzicht) and I changed the some background as you can see. But; how do I change:
- the background color in the article area
- the background color in the index part
- the background color in the buttons (pagina, overleg, lezen, bewerken, geschiedenis weergeven)
Many thanks if you can help me out, Ivar Dharma-lotus-wiki (talk) 06:31, 25 January 2017 (UTC)
- See: https://www.hostknox.com/knowledgebase/681/How-to-change-background-colors-in-MediaWiki.html
- Additionally, links on the following link have been moved somewhere else. Therefore when you click a link on this page you will have to remove "clients/" from the URL to be redirected to the correct page:
- https://www.hostknox.com/knowledgebase/700/How-to-change-the-font-style-and-background-color-of-the-site-notice-in-MediaWiki.html AhmadF.Cheema (talk) 07:22, 25 January 2017 (UTC)
- Hi, where the answer??, please somebody ... Krauss (talk) 17:41, 22 July 2019 (UTC)
- Doesn't How to change background colors in MediaWiki help? AhmadF.Cheema (talk) 04:37, 23 July 2019 (UTC)
- NO ! 2A02:810B:4B3F:FDB0:F06D:18DB:5A80:FE35 (talk) 14:39, 12 June 2023 (UTC)
MediaWiki:Unresolved-property-category
MediaWiki:Unresolved-property-category
Which parser functions/conditions do pages to include this system tracking category? Search by "Unresolved property" keywords useless. --Avatar6 (talk) 07:43, 25 January 2017 (UTC)
- Description is in MediaWiki:Unresolved-property-category-desc. wargo (talk) 22:50, 27 January 2017 (UTC)
- That text on Special:TrackingCategories does not says more than category name itself.
- What extension/mw-update/part of mw/function does populate category? Thanks Avatar6 (talk) 17:49, 28 January 2017 (UTC)
- Impossible! I can see description! It comes from Wikibase (for Wikidata). wargo (talk) 18:38, 28 January 2017 (UTC)
- whethere — are your stupidy me or you d
- 'not understand foregowing text — I want conversate w users understands meaning & way of "inforecomiming" of message "This category lists pages that reference Wikidata properties that cannot be found neither by their property ID nor label", and they understands & can explain which function/method of mediawiki does use of "MediaWiki:Unresolved-property-category" text — & if they can't give me more info/links on topic - pls, do not reply me ws stupidy me creating self-cycling/links on itself. Its better to learn more itself in such cases.--Avatar6 (talk) 21:07, 28 January 2017 (UTC)
- Calling someone stupid here is not acceptable. If you are not able to remain civil here, you don't deserve any assistance. Just download the code and grep for the message. Ciencia Al Poder (talk) 10:38, 29 January 2017 (UTC)
Certain Javascript codes aren't working anymore
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For some reason a certain Javascript codes, like the ones I use to iframe embed items from rss feeds aren't working anymore. This is the code I use to embed the latest music from a SoundCloud playlist:
$(function() {
url = 'http://feeds.soundcloud.com/playlists/soundcloud:playlists:203633254/sounds.rss';
$.ajax({
type: "GET",
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=' + encodeURIComponent(url),
dataType: 'json',
error: function() {
alert('Unable to load feed, Incorrect path or invalid feed');
},
success: function(xml) {
values = xml.responseData.feed.entries;
$('#soundcloud-main-page').append('<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=' + values[0].link + '&color=7b3b0a&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe>');
}
});
});
And this is the error message I get in the browser console on the page where my code is supposed to be executed:
Uncaught TypeError: Cannot read property 'feed' of null
at Object.success (eval at <anonymous> (/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1mk3s6g:4), <anonymous>:2:375)
at fire (/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1mk3s6g:45)
at Object.fireWith [as resolveWith] (/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1mk3s6g:46)
at done (/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1mk3s6g:135)
at HTMLScriptElement.script.onload.script.onreadystatechange (/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1mk3s6g:142)
Innosflew (talk) 13:41, 25 January 2017 (UTC)
Is there any option to change password in a wikimedia framework?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I don't know how a user can change its password from the panel of the wikimedia. Or just how the administrator may enable it. Is it compulsory an extension? Pvicentemovicoders (talk) 16:05, 25 January 2017 (UTC)
- There's a link in Special:Preferences pointing to Special:ChangePassword Ciencia Al Poder (talk) 10:14, 26 January 2017 (UTC)
- I changed in LocalSettings.php this two lines: $wgGroupPermissions['*']['editmyprivateinfo'] = true; $wgGroupPermissions['*']['editmyoptions'] = true;
- And I enabled from Preferences - User profile how to change the password, enable how to change the language and enable how to change the signature. They are what I wanted to do.
- It works. Thank you very much!!!! Pvicentemovicoders (talk) 11:20, 26 January 2017 (UTC)
Forgotten my password
Sir,Actually I have forgotten my login password. And I'm not getting any recovery option. Can you please tell me what should I do for recovery 2405:204:C609:D2EF:C5:E48D:72EB:7004 (talk) 17:08, 25 January 2017 (UTC)
- Does Special:PasswordReset not work? AhmadF.Cheema (talk) 17:53, 25 January 2017 (UTC)
Problems encountered installing commit-msg hook
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After upgrading from Ubuntu 14.04. to 16.04. my gerrit setup is completely broken. All working setting were voided by the updater so I had to redo everything. Now following the instructions I now get:
kgh@20080819-1:~/git/core$ ssh -p 29418 kghbln@gerrit.wikimedia.org Enter passphrase for key '/home/kgh/.ssh/id_rsa': **** Welcome to Gerrit Code Review **** Hi Kghbln, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use: git clone ssh://kghbln@gerrit.wikimedia.org:29418/REPOSITORY_NAME.git Connection to gerrit.wikimedia.org closed.
I believe this is good. Now trying to do sudo git review -s and bang
Problem running 'git remote update gerrit' Fordere an von gerrit Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. error: Konnte nicht von gerrit anfordern Problems encountered installing commit-msg hook
What I do not understand is why I have to be root to mess around with gerrit and not the user actually trying to connect somehow.
Needless to say that I have done this. I can verify that I am using the correct key.
I am currently banging my head against the wall ... [[kgh]] (talk) 19:19, 25 January 2017 (UTC)
- These are my git settings:
- [[kgh]] (talk) 19:25, 25 January 2017 (UTC)
user.email=mediawiki@kghoffmeyer.de user.name=kghbln gitreview.username=kghbln gitreview.remote=origin remote.gerrit.url=ssh://kghbln@gerrit.wikimedia.org:29418/mediawiki/core.git remote.gerrit.fetch=+refs/heads/*:refs/remotes/gerrit/* core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=https://gerrit.wikimedia.org/r/p/mediawiki/core.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.master.remote=origin branch.master.merge=refs/heads/master
- It seems that git review in Ubuntu 16.04 is not ready for WMF so ...
apt-get remove git-review apt-get purge git-review apt-get autoremove git-review pip install --upgrade pip pip install git-review pip install -U git-review // Do not ask me why cat /home/<me>/.ssh/id_rsa.pub ssh-add ~/.ssh/id_rsa
- I do not know what
git review -sis supposed to do. Anyway I did not issue this but was in the end able to move a patchset to gerrit. - This is really freaky. Happy collaboration. It is soooooooo easy. :( [[kgh]] (talk) 20:25, 25 January 2017 (UTC)
Hidden category abuses: Trump
Some categories related to Donald Trump and protests are not available to use when assigning categories to media during the upload and edits. They are marked red and cannot be applied. Hidden categories are used for project maintenance only. The workaround Category:name in the description can be used, although obviously not commonly known. SaraDe (talk) 01:44, 26 January 2017 (UTC)
- The workaround will not show. It is two open brackets then category:name and two closed brackets.
- Category:name SaraDe (talk) 01:49, 26 January 2017 (UTC)
- Where? wargo (talk) 22:47, 27 January 2017 (UTC)
- A vandal seems to be turning off and on the categories. The below categories were turned off January 25 and were turned back off not long after my initial complaint above, on January 26.
- Categories:Donald Trump
- Demonstrations and protests against the presidency of Donald Trump
- Demonstrations and protests against the presidency of Donald Trump in Wisconsin
- Banners and signs opposing Donald Trump at demonstrations and protests
- Demonstrations and protests against presidents of the united states: Donald Trump
- Donald Trump and Wikimedia
- https://commons.wikimedia.org/wiki/File:Hidden_trump_categories.jpg SaraDe (talk) 02:15, 29 January 2017 (UTC)
How to download task in the phab?
Per Extension:CheckUser I want to download Cu log.sql and cu_changes.sql . Can someone help me? Murbaut (talk) 04:44, 26 January 2017 (UTC)
- Click the "view raw file" and then just save it Ciencia Al Poder (talk) 10:19, 26 January 2017 (UTC)
- I have a bug the message I see "Fatal error: Call to undefined method SpecialCheckUserLog::getLinkRenderer() in/home/u875434364/public_html/wp/extensions/CheckUser/specials/SpecialCheckUserLog.phpon line21" What I should do? or how to fix? Murbaut (talk) 14:14, 26 January 2017 (UTC)
- be sure you downloaded correctly the entire extension from Extension Distributor (on the extension's page), that matches your MediaWiki version. Ciencia Al Poder (talk) 21:07, 26 January 2017 (UTC)
How to install and run HHVM on my wiki?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I install HHVM and then make my Mediawiki use it? Innosflew (talk) 05:44, 26 January 2017 (UTC)
- Does HHVM/Vagrant help? AKlapper (WMF) (talk) 17:04, 27 January 2017 (UTC)
- No. User asked for without Vagrant Kizule (talk) 15:47, 17 November 2017 (UTC)
- I too have this question.. But without Vagrant. Kizule (talk) 15:48, 17 November 2017 (UTC)
- You install hhvm in the normal way, setup web server to use fastCGI pointed to hhvm. The hhvm site should have some instructions for this but it will vary significantly by os and webserver. In many OS's youprobably have to compile hhvm yourself. I think there are PPA archives you can use for debian/ubuntu.
- If your not strong on the sysadmin side, i would suggest just using php7 - performance should be roughly on par, its much easier to install, and mediawiki is planning to drop support for hhvm in about a year anyway Bawolff (talk) 03:30, 19 November 2017 (UTC)
- I installed zend per reply on IRC and ok is. Kizule (talk) 13:37, 19 November 2017 (UTC)
How can I switch from mysql to sqlite?
I want to switch from mysql to sqlite. How can I install sqlite on ubuntu then convert or migrate my mysql database to sqlite. I want everything to be moved over to sqlite, not just the pages and images, but also user accounts, flow boards and any database changes that my extensions or my wiki might have made. Tribly (talk) 06:26, 26 January 2017 (UTC)
Permissions of administrator
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Does the administrator have permissions for changing Language or Signature. They are at Preferences - User profile - Internationalisation and Preferences - User profile - Signature. How could I enable them? Pvicentemovicoders (talk) 10:00, 26 January 2017 (UTC)
- By default any user can change that. But it can also be disabled or changing the default value from all users by editing LocalSettings.php, something that requires changing files on the server and is not granted by on-wiki permissions. Ciencia Al Poder (talk) 10:17, 26 January 2017 (UTC)
- It works, thank you very much!!!! Pvicentemovicoders (talk) 11:16, 26 January 2017 (UTC)
Forgot password and i am locked out how do i get back in
HOw do i get my password i am locked out 192.236.17.43 (talk) 14:48, 26 January 2017 (UTC)
- See Manual:Resetting passwords or specifically Special:PasswordReset. AhmadF.Cheema (talk) 15:06, 26 January 2017 (UTC)
Jobs won't go down to 0
Hi. A month ago, I posted here about issues related to redirects and I was told to bring our jobs to 0. I almost did that, but it won't go below 8 as you can see here. When trying to run php runJobs.php in putty it won't do anything just take me back to where I was. How could I run the remaining 8 jobs? │Star-Warden│ 15:04, 26 January 2017 (UTC)
- Sometimes I get this error, as well: http://prnt.sc/e0pzdy which stops the runJobs script. If Ajax is disabled, the script runs without interruptions. │Star-Warden│ 18:59, 26 January 2017 (UTC)
Sending e-mail doesn't work
Hello all. I use MW 1.27.1 PHP 5.6.14 (cgi-fcgi) MySQL 5.6.34
I tried to use sending email to other users with Special:Emailuser, so after clicking "send" button I have a message that the email has been sent, but I don't see any email at my mail box. I set to "true" $wgEnableUserEmail and $wgEnableEmail
Could you please help? Fokebox (talk) 15:05, 26 January 2017 (UTC)
- Which mail server software did you configure? AKlapper (WMF) (talk) 17:02, 27 January 2017 (UTC)
Unify accounts of the different wikis in different languages: wiktionary, wikipedia etc.
- Hi, I've just realized that from my open account on en.wiktioanary I cannot access my data (watchlist, contributions, etc.) not only on a different wiki but even in a different language. Therefore, I'd like to be able to access any data from any account. Thanks in advance.
- PS: mention me when replying, so that I can be notified. JMGN (talk) 18:44, 26 January 2017 (UTC)
- If you watch this topic (by default you watch every topic you create), you will be notified. wargo (talk) 22:45, 27 January 2017 (UTC)
- Here you go: https://tools.wmflabs.org/guc/ AKlapper (WMF) (talk) 17:01, 27 January 2017 (UTC)
- Hi, thank you for replying. What does 'Activate prefix pattern search' mean? JMGN (talk) 17:13, 27 January 2017 (UTC)
- It will show contributions of users, whose names starts with given prefix, instead of searching by exact username. wargo (talk) 22:44, 27 January 2017 (UTC)
- I don't know as I don't write software that I refer to. :) Feel free to ask its maintainers. AKlapper (WMF) (talk) 17:28, 27 January 2017 (UTC)
- Hi again,
- https://tools.wmflabs.org/guc/ is not what I wanted. I want the alerts from any wiki to show up regardless of the one I'm at that moment visiting. JMGN (talk) 23:41, 27 January 2017 (UTC)
- You mean Help:Notifications/Cross-wiki? wargo (talk) 10:21, 28 January 2017 (UTC)
Extension: Quiz More than one quiz on a page
Hi there,
I have recently installed the latest version of Mediawiki and the Extension:Quiz and added the quiz specifications to the LocalSettings.php as explained in the manuals. However, when I enter more than one quiz on a page, the correction is mixed up and when I submit only one quiz, the system returns the answers of all quizzes!
I have seen that this issue has already been reported https://www.mediawiki.org/wiki/Extension:Quiz and I would like to ask you if you could help me with a solution or a workaround to the problem! Thank you in advance! 141.2.134.80 (talk) 10:37, 27 January 2017 (UTC)
- Might be related to: https://phabricator.wikimedia.org/T152398
- Or not. Not really sure. —TheDJ (Not WMF) (talk • contribs) 14:55, 27 January 2017 (UTC)
- Thank you for the link! It helped me solve the problem! ;-) 87.185.119.192 (talk) 14:24, 29 January 2017 (UTC)
Bug
I have message "A database query error has occurred. This may indicate there is an error in its software." How I doing? Murbaut (talk) 11:20, 27 January 2017 (UTC)
- https://www.mediawiki.org/wiki/Manual:How_to_debug —TheDJ (Not WMF) (talk • contribs) 12:32, 27 January 2017 (UTC)
Placing an image by URL into mu wiki
There are images I liked to put into my own wiki wich are not allowed in Mediawiki (like pr poster). How do I place an iamge by URL into my wiki?
many thanks, Ivar Dharma-lotus-wiki (talk) 13:31, 27 January 2017 (UTC)
- Please see Help:Images for information on how to change what images are allowed on your own wiki. ☠MarkAHershberger☢(talk)☣ 00:45, 28 January 2017 (UTC)
Error by uploading: mwstore://local-backend/local-public/0/06/Pelgrim.jpg
When I try to upload in my wiki I get the message:
Het was niet mogelijk het vergrendelingsbestand voor "mwstore://local-backend/local-public/0/06/Pelgrim.jpg" te openen.
What is wrong? Dharma-lotus-wiki (talk) 15:28, 27 January 2017 (UTC)
- What is your uploads configuration? It seems problem with permissions - make sure your upload directory is writable. wargo (talk) 22:39, 27 January 2017 (UTC)
List of Categories/Documents on a Page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
I would like to get a tool that can publish categories/links to my main page as follows:
- Category 1
- Document 1
- Document 2
- Category 2
- Document 3
- Document 4
Does anyone know of an extension that can do this? Thank you. PaleoIsh (talk) 19:20, 27 January 2017 (UTC)
- More details? It may update page by change content or you just want to insert code, that will list pages in category? wargo (talk) 22:38, 27 January 2017 (UTC)
- Right, I just want to insert code that will auto-refresh as documents are updated. PaleoIsh (talk) 21:12, 29 January 2017 (UTC)
- Extension:CategoryTree may do that Ciencia Al Poder (talk) 10:42, 29 January 2017 (UTC)
One of our page header tabs won't show for some users
Hello,
On the main page of our wiki I have noticed that the tabs page, discussion, read, edit, edit source and view history show. But we also added a More (which is a drop down list) between edit source and view history. Works fine for most people, but some users have reported they don't see that tab.
Is this a browser setting? an extension issue? 2001:4898:80E8:4:0:0:0:6D3 (talk) 22:29, 27 January 2017 (UTC)
- How is the drop-down added? Javascript or PHP? Are you using an extension (which one)? Ciencia Al Poder (talk) 22:34, 27 January 2017 (UTC)
- This doesn't look to be a browser setting, instead it looks like normal users don't have the "More" tab enabled, which they should by default. wiki/Special:ListGroupRights
- Move category pages (move-categorypages)
- Move files (movefile)
- Move pages (move)
- We use the tabs extension which I believe would be php. 2001:4898:80E8:3:0:0:0:6D3 (talk) 23:24, 30 January 2017 (UTC)
cannot open .png pictures in Wikibooks
Hello. I have been studying the Tiger OS at: https://en.wikibooks.org/wiki/Mac_OS_X_Tiger/Using_the_Finder The page contains several .png pictures. When I try to open them (right-click, open link in new tab) I get the message in the new tab that opens: Please log in to upload files. I only want to see the pictures, not to upload anything. Stanley 172.97.148.249 (talk) 18:18, 28 January 2017 (UTC)
- A file with the name is not present. E.g. commons:File:Tiger_Finder_Icon_View.png does not show a file. Also a file with that name obviously has not been deleted on Commons in the past.
- But the files have been present on Wikibooks up to 2009, e.g. at wikibooks:File:Tiger Finder Icon View.png, but then they got deleted there. I don't know if that deletion followed rules.
- If legally possible, it might be an idea to upload new versions of the missing images! 83.135.229.47 (talk) 19:55, 28 January 2017 (UTC)
name and pics
Trying to create a wiki page for a person that has the same name as another person who already has a wiki page. Been trying all different ways by using disambiguation but none are working. Can someone show me an example as if my name was Joseph Jones and I wanted to call myself Joe Jones (but it's already been taken by Joe Jones (astronaut)?
Also, trying to figure out how to upload picture. Thanks Thelinzla (talk) 09:07, 29 January 2017 (UTC)
- When there are multiple persons with the same name, usually the page with only the name of the person ( e.g. "Joe Jones") contains the disambiguation. Then two other pages contain the articles for the according person, e.g. "Joe Jones (astronaut)" and "Joe Jones (singer)".
- To get that result, page "Joe Jones", which curently contains the article on the astronaut should be moved to "Joe Jones (astronaut)" and then a new disambiguation page should be created at "Joe Jones" and a new page should be created for "Joe Jones (singer)".
- For uploading pictures see commons:Commons:Upload! Jörgi123 (talk) 10:31, 29 January 2017 (UTC)
- Thank you for getting back to me. However, I'm still a little confused in how to edit the name that I have already created and change it from Joseph Jones to Joe Jones. I didn't have an option when I was first creating it to write it as Joe Jones. I could only choose Joseph. Now I see that you can use the same name if it already has been used by differentiating it with parenthesis. I need to know HOW to edit the NAME and add the (parenthesis). Thanks! Thelinzla (talk) 08:48, 30 January 2017 (UTC)
- Help:Renaming a page Ciencia Al Poder (talk) 10:29, 30 January 2017 (UTC)
Best way to create a directory for links to educational content
Hi,
What is the best wiki platform for:
I would like to create a wiki that is a directory for links to all free creative commons Indonesian language educational content. Initially, I will only list the sites (one page per site) and later add links to the actual course content (ex. videos). I want tags to link all courses to the Indonesian National Curriculum so that it is easy for teachers to find appropriate courses.
For now, I planned to install on a shared host http://niagahoster.co.id
Because search is important, is Semantic Mediawiki the best? With the Semantic Bundle?
In order to create consistent pages, I imagine that it's best to enter new directory listings via forms. (then edit via forms too?)
Any suggestions on the best way to structure this & get started?
Regards,
Brian Wwcanoer (talk) 12:07, 29 January 2017 (UTC)
- Semantic MediaWiki (SMW) is a good fit if you have a less-than-Wikipedia sized wiki and a good idea for how to structure your data. If you install it, though, you're best bet for help will be the SMW website and mailing list.
- You can start with just MediaWiki and add SMW later without any problem. ☠MarkAHershberger☢(talk)☣ 02:31, 30 January 2017 (UTC)
Private functions like closeParagraph() defined in parser/BlockLevelPass.php
In mw1.27 function closeParagraph() is defined in parser/Parser.php and it is public. In mw1.28 function closeParagraph() is defined in parser/BlockLevelPass.php and has been changed to private (there are other functions with similar treatment too).
Extension has used doBlockLevels (see subject: Undefined property: CKeditorParser::$mInPre) to customize text blocks starting with space which will be converted to pre- blocks in html. Customization is inserting special class attribute to this pre- block. Because functions used by doBlockLevels are now private, this does not work anymore.
I wonder what would be the proper place to do this kind of customization for final html of displayed page? Riparap (talk) 16:27, 29 January 2017 (UTC)
- Despite the signature of public (added in 2014), there was the code comment of @private that was copied from the original private when the code was originally committed some 14+ years ago, so you aren't likely to get any sympathy from developers for using the code.
- All that said, there is a public static doBlockLevels() in MW1.28. Is there any reason that wouldn't work for you? ☠MarkAHershberger☢(talk)☣ 03:17, 30 January 2017 (UTC)
- Call of that function works without problems, but it does not benefit the plugin. Reason is that plugin needs to do a customization to contents of html pre- tag (=add extra class attribute to this block which is created when line starts with spaces in wikitext code). So I wonder what would be the proper way to fix this issue... Riparap (talk) 09:37, 30 January 2017 (UTC)
- I think any answer is going to end up being "Parsoid". But you may be in luck: At the dev summit this year, I found out that @Tim Starling was working on implementing Parsoid in pure PHP. This html5 parser may be part of that work. I suspect MW1.28 is going to be unusable for you. ☠MarkAHershberger☢(talk)☣ 13:24, 30 January 2017 (UTC)
- Does it need to be any class in particular? Maybe we could add a class to those pre tags in core. Tim Starling (talk) 00:37, 31 January 2017 (UTC)
- I am able to use MW1.28 when I did "quick and dirty" copy-paste solution with those private functions to local space of plugin, which is a fix of poor quality.
- Plugin needs to know if html pre- block is created based on spaces in the beginning of the line in wikitext format so that spaces can be preserved and displayed properly when text block is opened in html editor (=CKeditor). For this reason plugin is currently inserting class="_fck_mw_lspace" into these pre- blocks. This takes place in customized local doBlockLevels function. It does not matter what class it uses as long as it is unic for this purpose. Riparap (talk) 08:42, 31 January 2017 (UTC)
error after install
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
im getting a load of errors on a clean install not sure why. this is the link to my wiki with all the error. thank you http://daydreamro.com/wiki/index.php
I tried reinstalling it various times and no go Daisyanne1380 (talk) 17:27, 29 January 2017 (UTC)
- In LocalSettings.php, make sure to set $wgTmpDirectory to a writable directory!
- T127127 might contain more hints and backgrounds on this problem. 83.135.226.167 (talk) 19:11, 29 January 2017 (UTC)
- $wgTmpDirectory isnt in the localsetting.php do i have to add it ? and if so there is already a cache folder in wiki that should be writable. how come it doesnt ue that? Daisyanne1380 (talk) 19:31, 29 January 2017 (UTC)
- It looks like you have to add it. It defaults to /tmp, but that is obviously incorrect in your case.
- Read the docs pointed to above. ☠MarkAHershberger☢(talk)☣ 02:23, 30 January 2017 (UTC)
- i tried what the guide says i still cant get this to work Daisyanne1380 (talk) 20:20, 30 January 2017 (UTC)
- Maybe try with this line at the bottom of LocalSettings.php:
$wgTmpDirectory = $wgUploadDirectory . "/tmp";- If permissions of the images/ folder are ok, this should be working. The webserver user needs to be able to read and to write to this folder and to all subfolders! 87.123.248.114 (talk) 21:46, 30 January 2017 (UTC)
- i added that to the localsetting.php at bottom and i gave the wiki/images/ folder permissions 777 which is read and write execute just to test and nothing and i also did the same for the wiki/cache/ folder cause i thought it was that. But still errors. Daisyanne1380 (talk) 11:22, 31 January 2017 (UTC)
- Could you paste your entire LocalSettings.php with the passwords removed? ☠MarkAHershberger☢(talk)☣ 18:52, 31 January 2017 (UTC)
- it doesnt let me paste the entire setting here i get a ⧼abusefilter-warning-keyleak Daisyanne1380 (talk) 20:43, 31 January 2017 (UTC)
- i uploaded it to
- http://daydreamro.com/file/localsettings.txt Daisyanne1380 (talk) 20:48, 31 January 2017 (UTC)
- You don't have $wgUploadDirectory defined at that point yet. Set it to $wgUploadDirectory="$IP/images"; and it should work. ☠MarkAHershberger☢(talk)☣ 23:49, 31 January 2017 (UTC)
- That didnt work either. Daisyanne1380 (talk) 09:48, 1 February 2017 (UTC)
- i have google and tried so many diff options, wierd thing is its a clean install when i did a clean install a few years back i never had these issues. Daisyanne1380 (talk) 14:41, 1 February 2017 (UTC)
- To make sure your LocalSettings.php file is set correctly, it should look like this at the end:
$wgUploadDirectory = "$IP/images"; $wgTmpDirectory = $wgUploadDirectory . "/tmp";
- (Setting $wgUploadDirectory needs to come first.)
- Is that how your LocalSettings.php looks? ☠MarkAHershberger☢(talk)☣ 16:19, 1 February 2017 (UTC)
- hello it didn't work at first so i wiped the entire db and deleted the entire wiki folder and did a fresh install and added the information to the bottom and that worked thank you Daisyanne1380 (talk) 18:01, 1 February 2017 (UTC)
- Woa, that was completely unnecessary! But if it helped... 87.123.251.85 (talk) 18:41, 1 February 2017 (UTC)
Template
Hi all,
I have a single template being used on my personal wiki. The template has to pieces of information, a variable describing what needs to occur (e.g. “NeedsCopyEdit”), and then a sentence of what is needed.
What I would like to do is have a table that automatically shows what needs to be done, and display these two pieces of information in one page, along with the title.
E.g.:
| Document Name | Tag | Description |
|---|---|---|
| Document#1 | Needs copy edit | Third paragraph has run on. |
| Document#2 | Needs spell chcek | The second section is a mess! |
Does anyone know of a way to keep this list automatically up to date?
Thank you. PaleoIsh (talk) 21:43, 29 January 2017 (UTC)
- You could probably do something with DPL but this is definitely something you could do with SMW.
- Are either of those an option? ☠MarkAHershberger☢(talk)☣ 04:09, 30 January 2017 (UTC)
- Totally, we had performance issues with SMW (our space not theirs), but we can retry. PaleoIsh (talk) 04:38, 30 January 2017 (UTC)
- Hi Mark.... could you point me to a good resource to learn about how to do this in SMW? We have it running now.
- Thank you. PaleoIsh (talk) 14:13, 30 January 2017 (UTC)
- You would want to use Inline queries. If SMW proves to be still to heavyweight and you don't want to use DPL, another option is Cargo. ☠MarkAHershberger☢(talk)☣ 15:48, 30 January 2017 (UTC)
Where is the final HTML output generated?
I want to remove line breaks in the HTML source code so I need to grab the HTML right before it's finally echoed.
Somewhere in Outputpage.php I guess? Subfader (talk) 10:56, 30 January 2017 (UTC)
- For the wiki content AND the skin/chrome ? —TheDJ (Not WMF) (talk • contribs) 12:14, 30 January 2017 (UTC)
- The whole source code should be 1 line only. #perfMatters Subfader (talk) 13:35, 30 January 2017 (UTC)
Help Bug Error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
A database query error has occurred. This may indicate there is an error in its software.
- Queries
SELECT cul_id,cul_timestamp,cul_user,cul_reason,cul_type,cul_target_id,cul_target_text,user_name FROM `efgq_cu_log`,`efgq_user` WHERE cul_type IN ('userips','useredits') AND cul_target_id = '1' AND (user_id =cul_user) ORDER BY cul_timestamp DESC LIMIT 51
- Function
IndexPager::buildQueryInfo (CheckUserLogPager)
- The error: 1146 Table 'u875434364_eruxa.efgq_cu_log' doesn't exist (localhost)
Backtrace:#0 /home/u875434364/public_html/wp/includes/db/Database.php(901): DatabaseBase->reportQueryError('Table 'u8754343...', 1146, 'SELECT cul_id,...', 'IndexPager::bui...', false)#1 /home/u875434364/public_html/wp/includes/db/Database.php(1234): DatabaseBase->query('SELECT cul_id,...', 'IndexPager::bui...')#2 /home/u875434364/public_html/wp/includes/pager/IndexPager.php(365): DatabaseBase->select(Array, Array, Array, 'IndexPager::bui...', Array, Array)#3 /home/u875434364/public_html/wp/includes/pager/IndexPager.php(222): IndexPager->reallyDoQuery(, 51, false)#4 /home/u875434364/public_html/wp/includes/pager/IndexPager.php(605): IndexPager->doQuery()#5 /home/u875434364/public_html/wp/includes/pager/ReverseChronologicalPager.php(34): IndexPager->isNavigationBarShown()#6 /home/u875434364/public_html/wp/extensions/CheckUser/specials/SpecialCheckUserLog.php(58): ReverseChronologicalPager->getNavigationBar()#7 /home/u875434364/public_html/wp/includes/specialpage/SpecialPage.php(479): SpecialCheckUserLog->execute(NULL)#8 /home/u875434364/public_html/wp/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)#9 /home/u875434364/public_html/wp/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))#10 /home/u875434364/public_html/wp/includes/MediaWiki.php(745): MediaWiki->performRequest()#11 /home/u875434364/public_html/wp/includes/MediaWiki.php(519): MediaWiki->main()#12 /home/u875434364/public_html/wp/index.php(43): MediaWiki->run()#13 {main} Murbaut (talk) 12:56, 30 January 2017 (UTC)
- Done, Mark this as resolved. I forget to rename cu_log to efgq_cu_log :) Murbaut (talk) 13:12, 30 January 2017 (UTC)
Help instal CentralAuth
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can some one help me to instal centralauth? Murbaut (talk) 15:50, 30 January 2017 (UTC)
- bug
- Fatal error: Uncaught exception 'DBConnectionError' with message 'DB connection error: Access denied for user 'u875434364_ujene'@'10.1.2.47' todatabase 'centralauth' (localhost)' in /home/u875434364/public_html/wp/includes/db/Database.php:743Stack trace: #0 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(872): DatabaseBase->reportConnectionError('Unknown error (...') #1 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(563): LoadBalancer->reportConnectionError() #2 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUtils.php(53): LoadBalancer->getConnection(-2, Array, 'centralauth') #3 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(228): CentralAuthUtils::getCentralDB()#4 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(370): CentralAuthUser->getSafeReadDB() #5 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(580): CentralAuthUser->loadState in/home/u875434364/public_html/wp/includes/db/Database.phpon line743 Murbaut (talk) 15:51, 30 January 2017 (UTC)
- also
- Try waiting a few minutes and reloading.(Cannot access the database:Access denied for user 'u875434364_ujene'@'10.1.2.47' todatabase 'centralauth' (localhost))Backtrace:#0 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(872): DatabaseBase->reportConnectionError('Unknown error (...')#1 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(563): LoadBalancer->reportConnectionError()#2 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUtils.php(53):LoadBalancer->getConnection(-2, Array, 'centralauth')#3 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(228): CentralAuthUtils::getCentralDB()#4 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(370): CentralAuthUser->getSafeReadDB()#5 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(580): CentralAuthUser->loadState()#6 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/session/CentralAuthSessionProvider.php(257): CentralAuthUser->isAttached()#7 /home/u875434364/public_html/wp/includes/session/CookieSessionProvider.php(199): CentralAuthSessionProvider->sessionDataToExport(Object(User))#8 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/session/CentralAuthSessionProvider.php(275): MediaWiki\Session\CookieSessionProvider->persistSession(Object(MediaWiki\Session\SessionBackend), Object(WebRequest))#9 /home/u875434364/public_html/wp/includes/session/SessionBackend.php(677): CentralAuthSessionProvider->persistSession(Object(MediaWiki\Session\SessionBackend), Object(WebRequest))#10 /home/u875434364/public_html/wp/includes/session/SessionBackend.php(606): MediaWiki\Session\SessionBackend->save()#11 /home/u875434364/public_html/wp/includes/session/SessionBackend.php(291): MediaWiki\Session\SessionBackend->autosave()#12 /home/u875434364/public_html/wp/includes/session/Session.php(127): MediaWiki\Session\SessionBackend->persist()#13 /home/u875434364/public_html/wp/includes/specialpage/LoginSignupSpecialPage.php(221):MediaWiki\Session\Session->persist()#14 /home/u875434364/public_html/wp/includes/specialpage/SpecialPage.php(479): LoginSignupSpecialPage->execute(NULL)#15 /home/u875434364/public_html/wp/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)#16 /home/u875434364/public_html/wp/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))#17 /home/u875434364/public_html/wp/includes/MediaWiki.php(745): MediaWiki->performRequest()#18 /home/u875434364/public_html/wp/includes/MediaWiki.php(519): MediaWiki->main()#19 /home/u875434364/public_html/wp/index.php(43): MediaWiki->run()#20 {main} Murbaut (talk) 15:53, 30 January 2017 (UTC)
- It seems clear that you don't have the proper DB credentials or that your DB permissions aren't set up to allow access to centralauth db from 10.1.2.47. ☠MarkAHershberger☢(talk)☣ 16:01, 30 January 2017 (UTC)
- how to grant acces? Murbaut (talk) 16:10, 30 January 2017 (UTC)
- That is really a MySQL question, not a MW question. I don't know anything about your db access or setup. Here is the low level info, though: https://dev.mysql.com/doc/refman/5.5/en/grant.html ☠MarkAHershberger☢(talk)☣ 19:00, 30 January 2017 (UTC)
- bug
- .Query:SELECT gu_id,gu_name,lu_wiki,gu_salt,gu_password,gu_auth_token,gu_locked,gu_hidden,gu_registration,gu_email,gu_email_authenticated,gu_home_db,gu_cas_token FROM `globaluser` LEFT OUTER JOIN `localuser` ON ((gu_name=lu_name) AND lu_wiki= 'u875434364_eruxa-efgq_') WHERE gu_name = 'Vander' LIMIT 1*.Function:CentralAuthUser::loadState*.Error:1146 Table 'u875434364_eruxa.globaluser' doesn't exist (localhost)Backtrace:#0 /home/u875434364/public_html/wp/includes/db/Database.php(901): DatabaseBase->reportQueryError('Table 'u8754343...', 1146, 'SELECT gu_id,g...', 'CentralAuthUser...', false)#1 /home/u875434364/public_html/wp/includes/db/Database.php(1234): DatabaseBase->query('SELECT gu_id,g...', 'CentralAuthUser...')#2 /home/u875434364/public_html/wp/includes/db/Database.php(1293): DatabaseBase->select(Array, Array, Array, 'CentralAuthUser...', Array, Array) Murbaut (talk) 00:08, 31 January 2017 (UTC)
- can I download table globaluser.sql? Murbaut (talk) 00:10, 31 January 2017 (UTC)
- I know CentralAuth isn't really maintained for non-WMF wikis, but did you try running update.php? ☠MarkAHershberger☢(talk)☣ 00:34, 31 January 2017 (UTC)
- Done but I have bug again
- A database query error has occurred. This may indicate a bug inthe software.*.Query:SELECT gu_id,gu_name,lu_wiki,gu_salt,gu_password,gu_auth_token,gu_locked,gu_hidden,gu_registration,gu_email,gu_email_authenticated,gu_home_db,gu_cas_token FROM `globaluser` LEFT OUTER JOIN `localuser` ON ((gu_name=lu_name) AND lu_wiki= 'u875434364_eruxa-efgq_') WHERE gu_name = 'Vander' LIMIT 1*.Function:CentralAuthUser::loadState*.Error:1054 Unknown column 'gu_salt' in 'field list' (localhost)Backtrace:#0 /home/u875434364/public_html/wp/includes/db/Database.php(901): DatabaseBase->reportQueryError('Unknown column ...', 1054, 'SELECT gu_id,g...', 'CentralAuthUser...', false)... Murbaut (talk) 03:20, 31 January 2017 (UTC)
- @MarkAHershberger: User 'u875434364_ujene' has exceeded the 'max_user_connections' resource (current value: 3) (localhost))Backtrace:#0 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(872): DatabaseBase->reportConnectionError('Unknown error (...')#1 /home/u875434364/public_html/wp/includes/db/loadbalancer/LoadBalancer.php(563): LoadBalancer->reportConnectionError()#2 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(2105): LoadBalancer->getConnection(-1, Array, 'wikipedia')#3 /home/u875434364/public_html/wp/extensions/CentralAuth/includes/CentralAuthUser.php(2092): CentralAuthUser->importLocalNames() Murbaut (talk) 04:50, 31 January 2017 (UTC)
- that is bug Murbaut (talk) 04:50, 31 January 2017 (UTC)
- Done resolved Murbaut (talk) 09:02, 31 January 2017 (UTC)
Session data lost bound with account?
Currently using MW 1.27, and there are some account in our wiki will always encounter session lost problem during editing. However, when these users logout, and then login with a different account, there were no more session lost for them.
error message: “Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.”
We tried to store session in database/redis/APCu and none of these trial resolve this problem. Any idea on how to solve it? Deletedaccount4567435 (talk) 00:59, 31 January 2017 (UTC)
- Does this only happen with particular accounts or with any account at apparently random times? ☠MarkAHershberger☢(talk)☣ 19:11, 31 January 2017 (UTC)
Have Special:Wanted pages ignore non-article space?
I hope I am in the correct place to ask for Special:Wanted pages to be rewritten to ignore non-article space. In my opinion, any "redlink" in non-article space should be ignored by the Special:Wanted pages. For example, a redlinked category found only in User space would not appear on Specia:WantedCategories. From what I have gathered from a discussion on Wikipedia on en:Wikipedia talk:User categories, redlinked categories on user pages have clogged up Special:WantedCategories. I dread to think how many wanted articles are redlinked only in user space which may be cluttering up Special:WantedPages, and Special:WantedTemplates and Special:WantedFiles may also have built up quite a collection of redlinks from non-article space.
So, if the Special:Wanted pages would ignore non-article space, those who do clean up of those lists would be able to focus on improving the encyclopedia articles and not have to bother with the non-encyclopedic pages.
As I said, I hope I have come to the right place, but if not, please direct me.
Thank you. Lady Aleena (talk) 06:03, 31 January 2017 (UTC)
- Your request should be filed as a task in phabricator. ☠MarkAHershberger☢(talk)☣ 19:10, 31 January 2017 (UTC)
- https://phabricator.wikimedia.org/T6204 197.218.88.245 (talk) 19:49, 31 January 2017 (UTC)
- https://phabricator.wikimedia.org/T7864 197.218.88.245 (talk) 21:05, 31 January 2017 (UTC)
- Now if only phabricator would let me in. Lady Aleena (talk) 22:34, 31 January 2017 (UTC)
- Does either of the above-linked items cover what you want? ☠MarkAHershberger☢(talk)☣ 23:51, 31 January 2017 (UTC)
- Not exactly, but now my account is active, I can write up something. Thank you all. Lady Aleena (talk) 03:53, 1 February 2017 (UTC)
Redirect Url
how to redirect url from http://wikita.hol.es/wp/ to http://wikita.hol.es or http://wikita.hol.es to http://wikita.hol.es/wp Murbaut (talk) 09:04, 31 January 2017 (UTC)
- https://www.devside.net/wamp-server/how-to-redirect-root-url-to-another-sub-directory-or-url Ciencia Al Poder (talk) 10:37, 31 January 2017 (UTC)
Bug
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Warning: set_time_limit() has been disabled for security reasons in/home/u875434364/public_html/wp/includes/GlobalFunctions.phpon line3407 Murbaut (talk) 09:28, 31 January 2017 (UTC)
- Enable that function, or ask your host to enable it Ciencia Al Poder (talk) 10:27, 31 January 2017 (UTC)
- I have bug "(Cannot access the database:User 'u875434364_ujene' has exceeded the 'max_user_connections' resource (current value: 3) (localhost))" how to settings? Murbaut (talk) 12:30, 31 January 2017 (UTC)
- That's a MySQL problem, not a MediaWiki problem. But here's a clue to resolving it. ☠MarkAHershberger☢(talk)☣ 19:07, 31 January 2017 (UTC)
- Done Thanks Murbaut (talk) 00:53, 1 February 2017 (UTC)
How to show the author of a page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there any way of showing who has posted a page? I don´t want that the user writes his user at the end of the page. I want to show the user name who has posted the page automatically (within the page or in the template files). Pvicentemovicoders (talk) 12:52, 31 January 2017 (UTC)
- I'm not clear what you want, exactly. It sounds like you want the name of the last person who edited the page to be displayed, somehow. There is no way to do this in core MediaWiki. It sounds like this is something the AuthorInfo extension could do, though. ☠MarkAHershberger☢(talk)☣ 19:05, 31 January 2017 (UTC)
- Ok, thank you for the information. Pvicentemovicoders (talk) 09:38, 1 February 2017 (UTC)
MediaWiki 1.26 installation page?
Hello,
I know 1.26 has been archived however I was hopeful to find the mediawiki.org page that contained the installation steps and process for this version if it still exists or perhaps anyone has it saved locally?
The "Manual:Installing Mediawiki" page is understandably now focused only on version 1.28 but i was trying to find the equivalent page for version 1.26 if possible
thanks Bwfreas (talk) 15:23, 31 January 2017 (UTC)
- You could always look at the history of the page if you need something specific to 1.26. If you just want the link to the direct download: https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.4.tar.gz ☠MarkAHershberger☢(talk)☣ 18:59, 31 January 2017 (UTC)
Error: 1050 Table 'interwiki' already exists eorror during upgrade from 1.27 to MW1.28
Trying to run update.php with --doshared option, it give me this error:
Creating interwiki table ...[1d159d68c65e6cbd8a3b399a] [no req] DBQueryError from line 1054 of /wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: CREATE TABLE `wikidata`.`interwiki` (
iw_prefix varchar(32) NOT NULL,
iw_url blob NOT NULL,
iw_local BOOL NOT NULL,
UNIQUE KEY iw_prefix (iw_prefix)
) ENGINE=InnoDB
Function: Database::sourceFile( /wiki/maintenance/archives/patch-interwiki.sql )
Error: 1050 Table 'interwiki' already exists (localhost:3306)
Backtrace:
#0 /wiki/includes/libs/rdbms/database/Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 /wiki/includes/libs/rdbms/database/Database.php(3136): Database->query(string, string)
#2 /wiki/includes/libs/rdbms/database/Database.php(3084): Database->sourceStream(unknown type, NULL, NULL, string, NULL)
#3 /wiki/includes/installer/DatabaseUpdater.php(690): Database->sourceFile(string)
#4 /wiki/includes/installer/MysqlUpdater.php(364): DatabaseUpdater->applyPatch(string, boolean, string)
#5 /wiki/includes/installer/DatabaseUpdater.php(472): MysqlUpdater->doInterwikiUpdate()
#6 /wiki/includes/installer/DatabaseUpdater.php(433): DatabaseUpdater->runUpdates(array, boolean)
#7 /wiki/maintenance/update.php(172): DatabaseUpdater->doUpdates(array)
#8 /wiki/maintenance/doMaintenance.php(111): UpdateMediaWiki->execute()
#9 /wiki/maintenance/update.php(217): require_once(string)
#10 {main} Deletedaccount4567435 (talk) 22:27, 31 January 2017 (UTC)
- Could you file this in phabricator? ☠MarkAHershberger☢(talk)☣ 23:52, 31 January 2017 (UTC)
Clip at the end of a title -> error
https://de.wikipedia.org/wiki/Masse_(Elektronik)
When there is an link with a sign ) on end the page will not found.
with sign %29 do it work
https://de.wikipedia.org/wiki/Masse_(Elektronik%29 Lutz.H (talk) 23:14, 31 January 2017 (UTC)
- Filed as T156878 ☠MarkAHershberger☢(talk)☣ 23:59, 31 January 2017 (UTC)
- We've been un-able to reproduce this. (I should have tried before filing the phabricator task.)
- Can you provide more information? ☠MarkAHershberger☢(talk)☣ 14:51, 16 February 2017 (UTC)