Project:Support desk

From MediaWiki.org
(Redirected from Support desk)
Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!

The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.

There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using:
    • MediaWiki (reported by your wiki's Special:Version page)
    • PHP (likewise)
    • Database (likewise, e.g. MySQL 5.5)
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new discussion".

Archiving topics

Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.

Start a new discussion
First page
First page
Previous page
Previous page
Last page
Last page

Special groups edit pages belong to them&change default mail content

MediaWiki 1.22.4 PHP 5.4.26 (apache2handler) MySQL 5.5.36

Hi~Now my wiki lets all users except "sysop" unable to edit pages. However, now the requirement changed: let special group like:group A ,can edit the page belong to that group. What should I do now?

And the other question is that is it possible to change the content of mail which is sent to users who monitor some pages? And which file should I edit?

Any help will help me!! Thanks~

Rachel1208 (talk)08:12, 4 April 2014

I do not understand what "belong" means when referred to pages. Maybe you're looking for page protection with custom restriction levels.

To change default email messages, go to "Special:AllMessages?prefix=enotif" on your wiki and create custom messages that you want to overwrite.

Ricordisamoa00:50, 12 April 2014

Hello!Thank you for your kind reply! I am sorry the first question was not clear. And I;d like to restate it: Now,my users are divided into several groups like sysop, groupA,groupB, and no one has the rights to edit pages except sysop according to my BOSS requirements. However, he now requires that members in groupA can only edit the page “Department A”, meanwhile, the page “company A" can only be edited by sysop and menbers in groupA. And the same to groupB which can only edit the page:“Department B". I have tried to protect the page "Department A", however, it showed that that page can only be edited by sysop or autoconfiremed users or all users...There were no other groups that I established before, like groupA.

I hope the new description will not confuse you :) Thanks!

Rachel1208 (talk)07:59, 17 April 2014

Use $wgRestrictionLevels:

// add 2 additional protection levels
array_push($wgRestrictionLevels, 'groupA', 'groupB');
// give the "groupA" permission to users in the "groupA" group
$wgGroupPermissions['groupA']['groupA'] = true;
// give the "groupB" permission to users in the "groupB" group
$wgGroupPermissions['groupB']['groupB'] = true;
// give the "groupA" and "groupB" permissions to sysops (needed so sysops can apply this protection levels to pages)
$wgGroupPermissions['sysop']['groupA'] = true;
$wgGroupPermissions['sysop']['groupB'] = true;

Then, you should be able to protect "Department A", "company A" and "Department B".

Ricordisamoa09:42, 17 April 2014

Oh~~yes! That is exactly what I want! Thx thx and thx!!!

Rachel1208 (talk)06:23, 21 April 2014
 

Sorry to bother you again, Samoa. I have to say I met a new problem..

Because I want to let users input their email address when they do registration, I tried to use the same way to change the content of "createacct-email-ph"and"createacct-email-optional" as you told me, and then I thought the registration interface would have changes at the same time.

However, the content was still the custom message.. :(

Rachel1208 (talk)08:15, 22 April 2014

Hi Rachel,

go to the page, on which you see the wrong texts. Then add to the URL ?uselang=qqx or &uselang=qqx, if there already are parameters. You will see the name of the system messages, which MediaWiki is using on the page. Now pick that message, which you want to change, let's say it would be called "logintext" and then go to the wiki page MediaWiki:Logintext. Being a wiki admin, you can edit this text to the text you want. You can edit languages by adding them to the URL, e.g. you can edit the German text by modifying MediaWiki:Logintext/de.

88.130.112.5009:53, 22 April 2014
 
 
 
 
 

How to get Piwik code into MobileFrontend?

I use the Piwik Integration extension, but the Piwik code doesn't make its way into mobile view of the site.

What can I change to accomplish this?

MadenssContinued (talk)05:13, 4 February 2014

It looks like the Piwik extension uses the Hooks/SkinAfterBottomScripts hook to inject itself and the mobile skin doesn't call the function that calls that hook.

It looks like the clue is here:

// TODO and the suckage continues. This function is really just a wrapper around
// OutputPage::getBottomScripts() which takes a Skin param. This should be cleaned
// up at some point
MarkAHershberger(talk)20:44, 4 February 2014

See deprecate Skink::bottomScripts(), move use of SkinAfterBottomScripts hook to OutputPage::getBottomScripts()

MarkAHershberger(talk)20:54, 4 February 2014

Thanks for that. Can you suggest a place that I could paste the Piwik code into so I can get reports for mobile users?

MadenssContinued (talk)22:51, 4 February 2014

You could put the code in your site's [[MediaWiki:Common.js]] and that would be used for both mobile and regular interfaces. Make sure $wgUseSiteJs is true, though.

If/when the bug gets fixed, though, you'll want to remove the code from your Common.js, of course.

MarkAHershberger(talk)14:59, 5 February 2014

I commented out the plugin related entries in LocalSettings.php. I then added the Piwik code from the Piwik dashboard to MediaWiki:Common.js and set $wgUseSiteJs = true in LocalSettings.php.

Loading my site with this configuration gives error 500 internal server error. Commenting out the $wgUseSiteJs statement returns the server to normal.

I tried copying only the javascript itself (not that tags around it) and got the same error. I'm not sure how to set this configuration.

MadenssContinued (talk)23:29, 8 February 2014
 
 
 
 
 

Having major problems logging into a wiki for Star Conflict

Dear Mediawiki, I have been trying to make an account on a wiki that I believe is yours, http://wiki.star-conflict.com/index.php?title=Main_Page. The technical support links on it brought me to your admin sites. I've tried twice to make an account on this wiki because I want to contribute to it but it seems to instantly change my password. I've tried usernames Kiljaedenas and Kiljaeden in that order; the same day that I created the account Kiljaeden using a password I frequently use for online sites, when I discovered that I need to be in the emailverified group to make posts and went to set the email address to this one I'm using right now (which I didn't do upon account creation to try and avoid spam) it said my password was invalid. So now I don't have an email address set to do a password reset on either account and the password I thought I had set only an hour or so ago doesn't appear to work. Could you please help?

Daryl

207.102.139.8117:59, 17 April 2014
Edited by 0 users.
Last edit: 10:13, 18 April 2014

This site (www.mediawiki.org) is not affiliated with the star-conflict wiki. This is the wiki about MediaWiki, the software that runs the star-conflict wiki (and many other wikis!), but we do not host that wiki.

Our login is different. If you want to have a user account here you'll need to register again here.

Ciencia Al Poder (talk)10:13, 18 April 2014

Crap. So who do I contact to get my account fixed on that wiki? Their Contact Support links brought me here.

Please advise,

Daryl

207.102.139.8120:16, 22 April 2014
 
 

refreshlinks.php and runjobs.php hang

  • MediaWiki version: 1.22.5
  • PHP version: 5.5.3
  • Database: MySQL 5.6.15

I've been experiencing a problem with these two maintenance scripts where they hang upon execution. The problem seems to be refreshLinks jobs; they won't run from the command line, but they run just fine out of the normal per-page view job queue. runJobs.php just hangs when it gets to such a job, and refreshLinks.php stops after displaying "100" after "Refreshing links table" (very nearly identical to the problem here: Manual_talk:RefreshLinks.php#Script_stops_processing_data). In both cases, the PHP command line shows no CPU usage, and MySQL shows that the connection has gone to sleep. I've tried disabling all extensions on the wiki, thinking that might be the issue, but that doesn't have any effect. Given the large volume of jobs this particular wiki has, I've been forced to raise $wgJobRunRate to keep up -- but that's less than optimal as it impacts page load time. Thoughts?

69.174.87.6019:46, 22 April 2014

[RESOLVED] AND OR statement for parserfunctions?

Hello. I'm managing a wiki and I'm trying to fix a template in which a column of the table won't appear unless -x- is filled out. It works fine... but it is more complicated than that.

It goes like this basically: -if --money-- is filled out, then show header: header --money-- --stuff-- --stuff-- --etc--

So, if the user fills out the --money-- option on a form for example, then it will work fine. The header will appear as planned and all is well. BUT, if the user doesn't fill out the --money-- option on the form and instead skips and fills out --stuff--, then the column won't appear even though I need it to.

Is it possible to have a statement that says if --money-- OR --stuff-- is filled out, then show header?


MediaWiki 1.22.0 PHP 5.3.13 (cgi-fcgi) MySQL 5.5.32-log

141.165.165.12304:09, 22 April 2014

{{#if: {{{money|}}}{{{stuff|}}} | show header | show nothing }}

Ciencia Al Poder (talk)09:50, 22 April 2014

Funnily enough I tried this already but it didn't work, now it does. I suppose I must have made a small error somewhere. Ha.

Thanks!

141.165.165.12311:46, 22 April 2014
 
 

Adding an Edit with Form Button

Hello.

So, here is the deal. I have a mediawiki skin, which is great, but there's just one problem that I'm looking to resolve. I hope I can resolve it/get help here?

  • please excuse some of the mess around, I'm in the process of overhauling the content*

http://creawiki.net/index.php?title=Zabis
http://pastebin.com/4Hn7S7MF (line 450 and onward is the PHP for the Edit button and so on)

In this theme, most of the page options are pulled into a drop down menu, only the edit button is outside of it. Unfortunately, the "Edit with Form" option is also pulled into the dropdown. I've spent weeks trying to figure out how to create a duplicate "Edit" button, except make it "Edit with form" which leads to the form for that page. I can't for the life of me figure it out, this is also because PHP is not my strong suit.

How can I adjust the PHP to not pull the "Edit with Form" into the Page dropdown, and if that's not possible, how can I just duplicate that Edit button, but customize it to fight the Edit with Form situation?


MediaWiki 1.22.0
PHP 5.3.13 (cgi-fcgi)
MySQL 5.5.32-log

Kirabook (talk)17:52, 22 April 2014

need help removing mediawiki page

Hi there is an old page that pops up on google search results. can someone tell me how I can remove this page or how to figure out who the webmaster is who can remove this page or stop it form apearing in google search resutls. thank you

http://2009.igem.org/Team:Michigan/Nasir_Fakhri

Hi!

The guys from iGEM only use MediaWiki to run their site - it is not associated with Wikipedia or so.

Here is a list of the administrators of their site: http://2009.igem.org/wiki/index.php?title=Special%3AListUsers&username=&group=bureaucrat&limit=50

Here I found some contact addresses: http://igem.org/Contact

Meagan Lizarazo and Vinoo Selvarajah are those admins I mentioned above - they are the ones who will be able to help you.

88.130.112.5017:02, 22 April 2014
 

API Question - Create/Editing page

Hello,

I am having some trouble with the API and my MediaWIKI website.

My goal is to create a Perl script for my college capstone class that allows the user to create a new page on the wiki when they are giving input to the script. I won't go into detail as to why they have to create a new page, the page just has to be created when the user is running this specific Perl script and instead of just telling them as an instruction on the script, it would be nice if when they give input through the script so I can programmatically create the page.

Anyways, here is what I have so far: - I got my API token by going to my API link: api.php?action=tokens

Here is the code I'm currently using for the script:

my $browser = new LWP::UserAgent();
$browser->agent('Mozilla/5.0');
$browser->default_header('Accept-Encoding' => scalar HTTP::Message::decodable());
$browser->default_header('Accept-Language' => "no, en");
$browser->default_header('Content_Type' => 'application/x-www-form-urlencoded');
my $api_url = "http://<mywebsite>/api.php";
my $request = HTTP::Request->new(POST => $api_url);
$request->header('Accept-Encoding' => scalar HTTP::Message::decodable());
$request->header('Accept-Language' => "no, en");
$request->header('Content_Type' => 'application/x-www-form-urlencoded');
 
# Add our data.
# This token is required for edit requests - must also be added last.
my $api_edit_token = "6bde13537ae386fd6a72a232bd03cbbf+\\";
my $content_title = "Speech:TestingAPIWithPerlAPI";
my $content_text = "This is my second time trying our the Perl API.";
my $post_data = 'action=edit&format=json&title='. $content_title .'&text='. $content_text .'&token=' . $api_edit_token;
 
$request->content($post_data);
 
# Fire away.
my $response = $browser->request($request);
if ($response->is_success) {
    my $message = $response->decoded_content;
    print "Received reply:\n$message\n";
}
else {
    print "HTTP POST error code: ", $response->code, "\n";
    print "HTTP POST error message: ", $response->message, "\n";
}

Now this runs perfectly fine, however I keep getting the same error over and over: {"error":{"code":"badtoken","info":"Invalid token"}}

Obviously I'm making sure that my token is correct and up to date as I keep checking the token api link. Before the POST request is actually made, I print out the request as a string:

action=edit&format=json&title=Speech:TestingAPIWithPerlAPI&text=This is my second time trying our the Perl API.&token=6bde13537ae386fd6a72a232bd03cbbf+\

Everything seems fine there!

Anyone run into this? I have a feeling it has to do with the urlencoding of the +\ in the token... thanks!

75.68.66.12015:33, 22 April 2014

Why is the ATOM feed more up to date then the RSS feed?

  • MediaWiki: 1.22.5
  • PHP: 5.3.10
  • MySQL: 5.5

Sorry, no URL here since the installation is not publicly accessible.

I've noticed that on my installation the ATOM feed of the recent changes page [1] is always more up to date then the RSS2 version [2]. I've checked the source feed and found out that both feeds have different generation times:

  • ATOM: <updated>2014-04-22T14:08:50Z</updated>
  • RSS2: <lastBuildDate>Tue, 22 Apr 2014 08:20:25 GMT</lastBuildDate>

So to me this looks like some sort of caching problem. I've tried calling action=purge on Special:Recentchanges, but that didn't help. Do you have any ideas how to get the RSS feed as up to date as the ATOM feed?

P.S.: I've recently updated my installation from MediaWiki 1.16.5. I didn't noticed this issue in this old version, by the way...

[1]: index.php?title=Special:Recentchanges&feed=atom

[2]: index.php?title=Special:Recentchanges&feed=rss

77.76.229.12914:35, 22 April 2014

Is linking in the sitemap on a webpage that uses Wikimedia-contents enough?

Hello,

i am working on a tourist webpage where i want to use WikiMedia-contents in PopUps on a map. Thus to the fact that there will be hundreds of seperate PopUps, my question is if i have to post the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material directly in every PopUp or if it is enough to post the credits in the sitemap on the page.

It would be awesome if you could help me! Thanks, Manuel

193.174.83.9710:16, 22 April 2014

Correct path in MediaWiki Version 1.19.

I have a big problem with my MediaWiki (www.sfb-higher-invariants.de).

The login is connected via a Single-Sign-On of the University of Regensburg. By logging in, there is a redirect to a specific site. After a correct login there is another redirect back to the Wiki. When not being logged in, the Wiki is on the server www-cgi. After logging into it the server changes (to a secure server).

My Problem: If I set the $wgScriptPaht to www-cgi image uploads are working and the css is loaded. But the redirect to the secure server does not work properly. If I set no path, the redirect works, but the other two things fail. The secure server is https.

Where do I get the path, which the Wiki sets automatically? And how can I work around this mess?

Thanks, Michael

PS: There is no other way for the sign in because of security reasons of the university... :(

79.208.179.25010:13, 22 April 2014

Site "experiencing technical difficulties"-help

Im hoping someone can help. We built a wiki for our website ( http://wiki.dnapolicyinitiative.org/ ) as an educational resource. Last week, the whole thing disappeared and the only thing that shows up is a white page with black text that says the site is experiencing technical difficulties, just wait and reload-except nothing changes. Were not very sophisticated and Im not certain whether its mediawiki or php. Im not sure if its related but the wiki home page kept getting spammed no matter what we did so we changed the setting so only the administrator could update it though every other page of the wiki remained open access. Your help is much appreciated, were currently without an important educational resource for our nonprofits project. Thanks Jeremy

Ogrenize (talk)17:32, 21 April 2014

It says "Can't contact the database server" so first thing I'd make sure is if the database server is running (as you said that it worked before I assume that configuration did not change). And that depends on your setup and your host.

AKlapper (WMF) (talk)01:37, 22 April 2014

The complete message, which I see right now is

Can't contact the database server: Access denied for user 'bla'@'ip-address'

with some values for username and host. Check that the username and host are correct and then check that the password is right. You can verify this data by using it to log into MySQL from the shell.

88.130.112.5009:58, 22 April 2014
 
 

add simple english

hi why not create messages for simple English like

MessagesSimple.php simple.json

in simple.json

it would be like. please go to http://simple-random-wikisaur.tk/index.php/Simple.json

86.173.52.6516:31, 20 April 2014

Which problem do you try to solve?

AKlapper (WMF) (talk)04:31, 21 April 2014

Nothing does thought I'll ask for simple English to be added to mediawiki

86.173.55.18611:01, 21 April 2014

Those requests should go to bugzilla

Ciencia Al Poder (talk)09:48, 22 April 2014

...only after the user has managed to clarify what specifically is wanted and where. Bugzilla link: bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki&format=guided

AKlapper (WMF) (talk)09:52, 22 April 2014
 
 
 
 

Cleaning logs

Hello, please tell me how to clear all logs action viki.Ili possible to change the period (dates) display logs, for example to show the changes only for the year / month? My Wiki: http://wiki.league17.ru/

EvangelionI (talk)21:23, 15 April 2014
Edited by 0 users.
Last edit: 21:22, 16 April 2014

please help me

212.66.36.17821:22, 16 April 2014
 

Which logs exactly?

AKlapper (WMF) (talk)09:57, 17 April 2014

Deletion log and pravokstranits

EvangelionI (talk)13:57, 17 April 2014

What is pravokstranits?

AKlapper (WMF) (talk)06:25, 18 April 2014
 

Sorry for the bad translation. To clear the deletions and corrections.

EvangelionI (talk)13:58, 17 April 2014

please help me =(

EvangelionI (talk)20:09, 21 April 2014

Hi!

The stuff you see in the logs mostly comes from the database table logging. When you remove an entry there, it will no longer show up in the logs. I have tried something like that while combatting spam and I did not have problems afterwards (apart from the log entries being gone, which is what I wanted).

However, note that directly modifying the database is not supported by MediaWiki. Deleting rows will permanently remove them and removing the wrong data can break your wiki.

88.130.112.5009:48, 22 April 2014
 
 
 
 

Make Special:Categories the main page?

I'm using: MediaWiki 1.18.1; PHP 5.3.8 (apache2handler); MySQL 5.5.16-log. My wiki is behind a corporate firewall so you will not be able to view it.

I would like to make Special:Categories the wiki main page. I thought I could do this by transclusion, but it doesn't seem to work. I can transclude

{{:Special:Allpages}}

but not

{{:Special:Categories}}

. Is there a way to accomplish what I want?

Tedd (talk)17:03, 4 May 2012

My first thought was: Do an Apache redirect. If the requested URL is just the domain or domain/Main_Page, redirect the user to the category page. Performancewise this should be the best solution I think.

Another way would be to place a redirect on the Main Page, so that MediaWiki redirects the user to that category page.

88.130.71.11223:05, 4 May 2012

Thanks, I like the redirect idea for its simplicity. At the very least it's a good temporary solution.

Tedd (talk)16:11, 7 May 2012
 

A related question:

How do I change the text in Special:Categories. I looked through SpecialCategories.php and found what appears to be a function to include 'categoriespagetext', but my knowledge of PHP is pretty rudimentary and I can't figure out where the actual content text is coming from.

Tedd (talk)15:21, 4 June 2012

If you want to override an interface text in the wiki: That is possible by putting the text you want on the right page in the namespace "MediaWiki". E.g. if the language label, which you want to override is called "login", then you would have to put the new text on the wiki page "MediaWiki:Login".

88.130.94.19017:52, 4 June 2012
 

Have you checked Manual:$wgAllowSpecialInclusion?

 Hazard-SJ  ± 00:12, 5 June 2012

I did, but $wgAllowSpecialInclusion doesn't seem to allow special:Categories. It allows some special pages, but not all. Perhaps special:Categories is restricted for some reason?

Tedd (talk)21:17, 20 April 2014

Edit MediaWiki:Mainpage and put there Special:Categories

Ciencia Al Poder (talk)09:45, 22 April 2014
 
 
 

Inserting the same text in multiple Articles

Anyone that can explain wow I do this? I don't want to link. I want it to be an Article that cannot be opened alone (well, edit purpose is ok or even a must). It's intended to be included by other pages only. Like in edit mode of a page you point the cursor and include a comand that points to that text. IN normal mode the text appears and you can't tell that this text is inlcuded.

Like you in php use the include() function and echo out the same text.

Thanks.

Muuucho (talk)08:58, 21 April 2014

You can insert the same text in multiple articles using Templates. You create the template witht the text, and then put that template on all the pages you want to display that text.

Ciencia Al Poder (talk)09:44, 22 April 2014
 

[RESOLVED] people must provide their E-mail address with fixed suffix

HiRachel1208 (talk) This is the problem: I want that people must provide their E-mail address with fixed suffix like @gmail.com, and after confirmation, they can become users. Maybe to solve that problem, I need to change the login inerface and some other files. However, I don't know where to start.:( So I really need your helpRachel1208 (talk) Thank you for your kind replies! :)

Rachel1208 (talk)06:39, 17 April 2014

You can probably use the isValidEmailAddr hook to check if the email is from specific domains, and set $result to false if it doesn't match.

Ciencia Al Poder (talk)13:41, 18 April 2014

Firstly, thank you for your kind reply! However, since I am a newcomer, the information that you provided to me as below is a bit difficult for me. - - - - - - - - - - - - - - Define function: public static function onisValidEmailAddr( $addr, &$result ) { ... }

Attach hook: $wgHooks['isValidEmailAddr'][] = 'MyExtensionHooks::onisValidEmailAddr';

Called from: Sanitizer.php - - - - - - - - - - - - - - Would you mind give me some details, like where should I define the function and the attach hook? What should I write in the function public static function onisValidEmailAddr( $addr, &$result ) { ... }?

Thanks a lot!:)

Rachel1208 (talk)07:21, 21 April 2014

double post, sorry

Ciencia Al Poder (talk)10:15, 21 April 2014
 

Well, after a little test, I think the AbortNewAccount hook is better because it can provide an error message.

Simply put this in LocalSettings.php:

function onAbortNewAccount_emaildomain( $user, &$message ) {
    if ( preg_match( "/@gmail\.com/i", $user->getEmail() ) !== 1 ) {
        $message = "We only accept user registrations with email domain @gmail.com";
        return false;
    }
    return true;
}
 
$wgHooks['AbortNewAccount'][] = 'onAbortNewAccount_emaildomain';

There's also an extension for this Extension:CheckEmailAddress.

Ciencia Al Poder (talk)10:15, 21 April 2014

Awesome! Thanks a lot!!

Rachel1208 (talk)06:52, 22 April 2014
 
 
 
 

How to store images of Mediawiki on separate servers?

For example, currently I am using Linode VPS which is expensive and slow. I would like to store image to Amazon S3 or another cheaper VPS.

Now I am using

$wgUploadDirectory = "/wiki/image"; 
$wgUploadPath = "//static.mengniang.org"; 

to enable CDN from different domain.

However, the images still store at the same VPS with Mediawiki software. How to let mediawiki upload and load image to a separate servers?

Zoglun (talk)01:40, 15 December 2013

When you upload a file to MediaWiki, it stores it in $wgUploadDirectory, and when a page containing that image is rendered, the URL of the image points to $wgUploadPath. You need something to make MediaWiki upload that file to Amazon. See Extension:AWS or Extension:LocalS3Repo

Ciencia Al Poder (talk)16:06, 15 December 2013

Ok thank you. And how about different server? How can I store image on a different server?

Zoglun (talk)07:05, 16 December 2013

You could mount a remote filesystem on the local server using NFS, but that may not work on servers not placed on the same local network.

Another way would be to continue storing images locally, and have some sort of proxy cache (in $wgUploadPath address) for when a image is requested, if it doesn't exist, request the image to your wiki server and store it locally, so next requests for that image serve the saved image instead of requesting it again to your wiki. But that would be problematic if you upload a new version of the same image, since it would not notice the update, unless it's intelligent enough to periodically check if a new version of the file exists.

Ciencia Al Poder (talk)10:45, 16 December 2013

Thank you Ciencia Al Poder!

I tried the Network File System but the delay is toooooo large when using different location server. Now we are using multiple squid proxy which works good so far. However this does not solve the local storage problem, which means we still need to spend lots of money for Linode's disk space.

Zoglun (talk)07:25, 19 January 2014

I would also find it incredibly useful to store all user uploaded images on a different server. Is there anyway to do that besides mounting the remote file system using NFS?

RainDelay (talk)20:14, 21 April 2014
 
 
 
 
 

database help

hi I get this error when trying to create the tables and setup the wiki

Setting up database... done Creating tables... A database query error has occurred. This may indicate a bug in the software. Query: CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_touched binary(14) NOT NULL default , user_token binary(32) NOT NULL default , user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, user_password_expires varbinary(14) DEFAULT NULL ) ENGINE=InnoDB, DEFAULT CHARSET=binary

Function: DatabaseBase::sourceFile( /home/paladox/public_html/en/maintenance/tables.sql ) Error: 1005 Can't create table 'paladox_en.user' (errno: 121) (localhost)

Backtrace:

  1. 0 /home/paladox/public_html/en/includes/db/Database.php(1123): DatabaseBase->reportQueryError('Can't create ta...', 1005, 'CREATE TABLE `u...', 'DatabaseBase::s...', false)
  2. 1 /home/paladox/public_html/en/includes/db/Database.php(3858): DatabaseBase->query('CREATE TABLE `u...', 'DatabaseBase::s...')
  3. 2 /home/paladox/public_html/en/includes/db/Database.php(3772): DatabaseBase->sourceStream(Resource id #85, false, false, 'DatabaseBase::s...', false)
  4. 3 /home/paladox/public_html/en/includes/installer/DatabaseInstaller.php(187): DatabaseBase->sourceFile('/home/paladox/p...')
  5. 4 [internal function]: DatabaseInstaller->createTables(Object(MysqlInstaller))
  6. 5 /home/paladox/public_html/en/includes/installer/Installer.php(1533): call_user_func(Array, Object(MysqlInstaller))
  7. 6 /home/paladox/public_html/en/includes/installer/WebInstallerPage.php(1336): Installer->performInstallation(Array, Array)
  8. 7 /home/paladox/public_html/en/includes/installer/WebInstaller.php(283): WebInstaller_Install->execute()
  9. 8 /home/paladox/public_html/en/mw-config/index.php(63): WebInstaller->execute(Array)
  10. 9 /home/paladox/public_html/en/mw-config/index.php(31): wfInstallerMain()
  11. 10 {main}

Notice: Uncommitted DB writes (transaction from DatabaseInstaller::createTables). in /home/paladox/public_html/en/includes/db/Database.php on line 4147

94.2.131.14817:17, 11 April 2014

I run Mediawiki 1.23 Wmf 22.

86.173.52.6518:12, 13 April 2014

And wiki is at http://en.random-wikisaur.tk. I have just used the backup I did before deleting it and tried creating new tables and refresh the wiki. To fix some issues with centralauth.

86.173.52.6518:14, 13 April 2014

That error means the table already exists. But still, MediaWiki failed to properly detect if the table structure was present. Maybe you removed some tables while others were still around?

Ciencia Al Poder (talk)19:51, 13 April 2014

oh ok. but I deleted the tables and tried redoing the setup and create the tables like you would if you have just started to install the wiki.

86.173.52.6513:58, 15 April 2014
 

oh ok. but I deleted the tables and tried redoing the setup and create the tables like you would if you have just started to install the wiki.

86.173.52.6513:59, 15 April 2014

So... you solved the issue by creating the tables manually/with the tables.sql script?

Ciencia Al Poder (talk)09:27, 16 April 2014
 
 
 
 
 
First page
First page
Previous page
Previous page
Last page
Last page