Project:Support desk

From MediaWiki.org
(Redirected from Project:Support)
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

Fatal error: Possible integer overflow in memory allocation

Edited by 2 users.
Last edit: 20:13, 21 February 2014

I upgraded from version 1.17.0 to 1.22.2 and now when I click on Special Pages I receive this error: Fatal error: Possible integer overflow in memory allocation (2147483648 * 4 + 0) in /var/www/wiki/includes/User.php on line 2312

I went and opened up user.php and line 2312 reads:

if ( !$ignoreHidden && in_array( $oname, $wgHiddenPrefs ) ) {
     return self::getDefaultOption( $oname );
}
Stomkiewicz (talk)17:06, 20 February 2014

Have you tried increasing the memory limit?

MarkAHershberger(talk)17:20, 20 February 2014

I found 2 php.ini files and increased them both to say 256M, still no luck. (one originally said 128M, the other said -1)

Stomkiewicz (talk)17:51, 20 February 2014

Weird. I came across this post with the discouraging solution:

 Ok, found the trouble...
 One of the twelve CPU's in the system had a bit fualt in bit 2 of its integer calculations... with that CPU off, it works flawlessy again...
 
 The CPU doesnt show any errors during testing, but the fault dissapears completely with that one off.

I wouldn't even know how to track that down.

MarkAHershberger(talk)17:56, 20 February 2014
 

Is it always on the same line number? What extensions do you have installed?

MarkAHershberger(talk)17:58, 20 February 2014

I'm running on a virtual server. As far as extensions, I don't know if any are actually installed. Our old IT directory set this up, then quit, and we had just been using it for a year until it just recently crashed and I'm trying to get it going again.

Stomkiewicz (talk)19:34, 20 February 2014

You can check the extensions directory for the installed extensions. What directories and files are in there?

MarkAHershberger(talk)01:45, 24 February 2014
 
 
 
 

I can reproduce this on a new 1.22.2 wiki. It doesn't appear if I switch to 1.21.5, so that narrows it down to...every change between 1.21 and 1.22, I guess. :-)

Emufarmers(T|C)20:12, 21 February 2014

I can't duplicate this on a new Debian installation. Could you share more information? Extensions, etc?

MarkAHershberger(talk)02:43, 24 February 2014

I'm facing the same issue with fresh installation of MediaWiki v1.22.0 on CentOS release 5.4, PHP 5.3.6, MySQL 5.1.57. I do not have any extensions installed in the fresh installation.

86.159.119.12222:06, 26 February 2014

I suspect this is either a PHP issue, or underlying OS issue, and not a mediawiki issue.

Bawolff (talk)06:23, 27 February 2014

If it was PHP or OS issue then I should be getting similar error on existing old installation of MediaWiki on the same server.

My current installation of MW is v1.17.0rc1. When I either upgrade it to v1.22.0 or install it fresh, accessing special pages throws "Fatal error: Possible integer overflow in memory allocation (2147483648 * 4 + 0) in /var/www/wiki/includes/User.php on line 2312" exception. Rest every other functionality works normally.

Server Configuration: CentOS release 5.4, PHP 5.3.6, MySQL 5.1.57

86.145.23.21100:09, 2 March 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
 

I'm trying to recreate certain pages from Wikipedia. I've imported the necessary files, installed scribunto, etc. and now I'm at a point where I get the following Script Error:

Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive.

When I make a test.php and look at the info I see the following:

disable_functions Local: system,exec,shell_exec,passthru,proc_open,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec Master: system,exec,shell_exec,passthru,proc_open,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec

80.56.90.14915:30, 17 April 2014

You should remove that function from the disable_functions directive.

If you don't have control over that (because you're on a "cheap" shared host), you should substitute the scribunto modules used on the templates by wikitext versions of them, for example, going to the template page on Wikipedia, looking at the template history and get the text before it was converted to a scribunto module.

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

Keep me logged in

Keep me logged in (for up to 30 days) says the en.wikipedia.org login page, but it never happens for me anymore, regardless of browser. It does not happen on Internet Explorer, Mozilla Firefox, Google Chrome, Opera, or Safari. Making sure cookies are turned on does not seem to help. In 2013 it worked fine. I am using Windows 7.

Dthomsen8 (talk)13:46, 17 April 2014

You should raise your problem there: Wikipedia:Village pump (technical)#Unable to remain logged-in, specifying since when you have the problem, and see if more people have that particular problem. May be worth to report a bug for that, too.

Ciencia Al Poder (talk)10:06, 18 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
 

Deletion log and pravokstranits

EvangelionI (talk)13:58, 17 April 2014
 
 

[RESOLVED] how to get the username, who created the article

hello there

{{REVISIONUSER}} gives you the user who modified the article last and {{REVISIONTIMESTAMP}} shows the last modification's timestamp. Is there any magic words to display the user, who created the article and the time/date of creation?

regards and thank you for your help in advance

185.31.48.3008:13, 16 April 2014

any ideas?

185.31.48.3011:27, 16 April 2014

Ok, I have managed to display Creation date using semantic wiki's Creation date property but still looking for a way to display the username, who created the article.

185.31.48.3014:59, 16 April 2014

could anyone reply please? :)

185.31.48.3009:39, 17 April 2014

Yes, I can reply, but I still don't know. ;-)

A list of all supported magic words is available at Help:Magic_words#Variables. If it's not in there, then I suppose there is no magic word for that.

88.130.125.21310:03, 17 April 2014

Thank you. Is there any other way to do that?

185.31.48.3011:34, 17 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
 
 
 
 
 

I Am Trying To Change The Appearance Of My Wiki:

Edited by another user.
Last edit: 09:35, 17 April 2014

Here is the code I have in MediaWiki:Common.css

Is there an easier way? Should I upgrade MediaWiki? I am trying to make all the headers with white text and highlighted with a dark red bar.

But why isn't it working with the sidebar?!

See for yourself if I am confusing you. http://wiki.boingblogs.com/

/* CSS placed here will be applied to all skins */
 
h1 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h2 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h3 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h4 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
 
}
 
h5 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h6 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
 
}
 
h7 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h8 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h9 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h10 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h11 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
h12 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
#p-navigation h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }
#p-tb         h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }
#p-search     h5 { background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white; }
In Correct (talk)15:58, 16 April 2014

Sidebar uses h3 instead of h5.

In addition, sidebar has more specific styles applied to it, that will override your styles. You can see them with the developer tools of your browser (hit F12). You can try with this instead:

h1, h2, h3, h4, h5 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
 
#mw-panel.collapsible-nav .portal h3 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
#mw-panel.collapsible-nav .portal h3 a {
 color: white;
}
Ciencia Al Poder (talk)09:45, 17 April 2014
 

You might want to start by explaining what the problem is you'd like to solve.

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

I also did not understand, which problem you currently have.

One note:

When you have one and the same CSS rule (the ones you posted all are the same, right?), then you can also combine them like so:


h1, h2, h3, #mw-panel.collapsible-nav .portal h3 {
  background: url("skins/common/images/catbg.jpg") repeat-x scroll 0 0 #990000; color: white;
}
88.130.125.21310:08, 17 April 2014

Sidebar uses h3 instead of h5.

This seems to work with my sidebar. It caused the white text to be highlighted in dark red. The other codes did not work.

You might want to start by explaining what the problem is you'd like to solve.

I want a theme for my Wiki. Mostly white background with a few areas that have white text highlighted in red. If possible, Are there theme extensions that I can install? Do I need to have the latest version of MediaWiki?

MediaWiki 1.21.1 PHP 5.3.28 (cgi-fcgi) MySQL 5.5.33-31.1

In Correct (talk)18:53, 17 April 2014

Well, last time I checked, the default skin of your wiki was Vector, not Monobook. Things are styled differently on both skins. You should use MediaWiki:Common.css for styles applied to the content of the wiki (the "common" part between skins).

There are no "themes" for MediaWiki (for a particular skins), but instead you can style it with CSS directly. Although that requires you some knowledge about CSS.

Ciencia Al Poder (talk)20:00, 17 April 2014
 
 
 
 

How to change the default Main Page title and the URL

I'm trying to change the default Main Page title and the URL.

I only see instructions on How do I change the Main Page title.

I also would like to change the URL to reflect the new homepage title.

I would like for my URL to go from this:

http://haitipedia.org/wiki/Main_Page

to that:

http://haitipedia.org/wiki/Haitipedia

Versions:

MediaWiki version 1.16.2

PHP 5.x

MySQL 5.0.91-log

Hosting: GoDaddy Shared Linux

Techies24716:12, 4 March 2011

Hi Techies247,

You linked to the solution already: How do I change the Main Page title.

So follow the instructions ;-)

How do I change the Main Page title reads:
Simply click on the "Move" tab, and move the page to the desired page title.
Usually you also want to change which page is the main page.

So

Krinkle17:06, 4 March 2011

Great this is working fine for me.. but the problem is I am able to do this is Authoring Wiki. When I pushing the content to English Wiki its not reflecting there. Can anyone help me please.

49.205.166.10619:58, 17 April 2014
 

Great this is working fine for me.. but the problem is I am able to do this is Authoring Wiki. When I pushing the content to English Wiki its not reflecting there. Can anyone help me please.

49.205.166.10619:58, 17 April 2014
 

Great this is working fine for me.. but the problem is I am able to do this is Authoring Wiki. When I pushing the content to English Wiki its not reflecting there. Can anyone help me please.

49.205.166.10619:58, 17 April 2014
 
 

[RESOLVED] role="presentation" table with equal column height

Hello,

I want to use role="presentation" in a table to create three boxes here in the same way as on this wikis main page. I want that the boxes all have the same height (like on this wikis main page). How can I do this?

MediaWiki: 1.22.5 (7266102)
PHP: 5.3.10-1ubuntu3.11 (apache2handler)
MySQL: 5.5.35-0ubuntu0.12.04.2

Thank you! Cantho (without account)

188.96.69.1310:33, 16 April 2014

To have all boxes the same height, the boxes need to be the table cells and not the divs. Apply the border style to the table cells instead of the divs.

Ciencia Al Poder (talk)09:33, 17 April 2014

That works, thank you! Cantho (without account)

188.96.69.1316:39, 17 April 2014
 
 

Mass Edit and Save pages to run $wgHooks['EditPage::showEditForm:initial'][]

I have an extension that checks the page text and if a specific text isn't there it will add it. I'm usingthe hooks $wgHooks['ParserFirstCallInit'][] = 'AdsSetup'; $wgHooks['EditPage::showEditForm:initial'][] = 'CheckHasTag'; The extension runs if I go to each page, edit and then click 'save page', however, I have hundreds of pages on my wiki. How do I force an edit page and save on all the pages so the extension will run without me having to go to each page individually?

LTech (talk)10:41, 24 March 2014

If your hook works as a pre-save transform (but I don't think so) regardless if it's used through the GUI, then pywikibot/touch.py should work.

Ricordisamoa14:40, 24 March 2014

I would like to only re-save pages in the 'main' namespace, and not all of them. Is this the best tool for this? It looks quite complex to install and run.

LTech (talk)18:38, 24 March 2014

You could use JavaScript to load forms and submit them automatically.

Ricordisamoa13:43, 17 April 2014
 
 
 

Is it possible to group user groups into a user right?

Lets say I have 3 user groups:

  • Sysop
  • CheckUser
  • Staff

Is it possible to group the permissions in the CheckUser and Systop groups into a user right in the Staff group?

Resinderate (talk)17:31, 11 April 2014

A user group is a collection of rights.

You can create a user group (Staff) that combines the user rights of CheckUser and Sysop, so an user being in the Staff group can perform the same actions as a user in the CheckUser and Sysop groups.

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

Except there becomes a problem when a user group's rights takes up a large portion of the screen with duplicate rights.

Hence why I was asking if you could combine right group into a right, so then you only have a few lines. Even if you need to make an extension to do it.

Resinderate (talk)22:53, 14 April 2014

No, you can't. It's usually desirable to have all rights listed in a single place rather than having to jump to other groups to see the effective rigths of that group.

Ciencia Al Poder (talk)09:20, 15 April 2014

A link to Manual:$wgGroupPermissions seems appropriate for this question. Maybe this page - especially the sections "Details" and "Custom user groups" - help you.

88.130.121.17210:34, 15 April 2014
 
 
 

Try this (LocalSettings.php):

$wgGroupPermissions['Staff'] = array_merge($wgGroupPermissions['sysop'], $wgGroupPermissions['checkuser']);
Ricordisamoa13:21, 17 April 2014
 

Login problem

I've recently changed ISPs, so my e-mail address has changed. I've forgotten my login ID, so I'm stuck. I can provide what I think was my login name and password in private, along with my former and current email addresses. Is there some way to contact Wiki privately? Thanx.

75.176.182.11718:02, 13 April 2014

Does your request has to do with your MediaWiki/Wikimedia user account? Or with your personal private wiki or another wiki not hosted by the Wikimedia Foundation?

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

Go to "Special:PasswordReset" on that wiki (Special:PasswordReset for this site).

Ricordisamoa13:11, 17 April 2014
 

Heartbleed bug

can you please let me know in which version of wiki we have fixed the Heartbleed bug..

148.188.243.25207:23, 17 April 2014

MediaWiki does not have Heartbleed bug because it doesn't use any openssl component. Openssl components are part of the operating system, both the server and the client, if you're connecting through HTTPS

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

[RESOLVED] Fix This Bug:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden)

from within function "RecentChange::save". Database returned error "1054: Unknown column 'rc_moved_to_ns' in 'field list' (localhost)".
In Correct (talk)03:22, 16 April 2014

Hi!

This is a known problem. Currently the best fix available is to add the missing column by hand. This should work using the ALTER TABLE command provided here:

http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Database_error_after_updating_to_1.20.4/reply

Afterwards you should PURGE the recentchanges table and then run the maintenance script rebuildrecentchanges.php. This should make sure that you do not have corrupt entries in the table.

88.130.77.16307:11, 16 April 2014

Hello. I am back now. The problem began when I decided to continue building my website. It worked fine until I uploaded a logo. When I saved localsettings.php a PHP Is Outdated error occurred. I then decided to downgrade from 1.21 to 1.16 which was the most recent one that supports PHP 2.7

I kept the same database and I was able to log in but I encountered the error I copied and pasted in the first post I made yesterday. I could not save any of my edits.

After contacting HostGator again (which is the cause of the PHP issue), they said that there is a code required to use PHP 3 which was then entered into .htaccess

Since PHP 3 seems to be working now, I decided to upgrade (or switch back to) MediaWiki 1.21

The extraction occurred successfully and I encountered the "set up the Wiki" link message.

During the Set Up process, it said "The tables are outdated. Click here to fix them." It almost looked like a command line interface. Sorry, but I can't remember anything else.

But that problem seems to be fixed now. The "Congratulations!" page appeared. I do not see any Database Error messages. And I am able to save my edits.

You can mark this as solved now. I will open up another topic again if the issue occurs.

In Correct (talk)19:22, 16 April 2014
 
 

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
 
 
 

Copying articles Wikipedia

Just let many other people, I have been trying to copy certain articles from Wikipedia to my own wiki. So far this has been on disaster after another. I only recently learned about the template system behind Wiki and export function.

Whatever I try to do, it always ends with an error or something not working, so you can imagine I'm getting a bit desperate now, as I just don't know how to get this working.. I have been trying to copy 1 certain page about a band to my own wiki (bacause I want to have the original layout), tried copying the source, tried copying templates, but in the end it still looks messed up! Hope something is able to help me with this.

80.56.90.14910:29, 7 April 2014

Please provide specific steps to reproduce and specific info about the problems that you're facing. "something not working" is too vague to help.

AKlapper (WMF) (talk)13:12, 7 April 2014

I have tried to copy the source text/code from a Wikipedia article and paste it into the same article on my site. You can then see it's missing templates. I've downloaded the Template: xml file and uploaded them on my site. The layout still isn't working properly.

I have tried to add 2 extensions, Scribunto and ParserFunctions, in the hope that things would get better. Unfortunately adding those to the LocalSettings.php will only produce errors within the article of giving me database erros when looking up an article (this mostly happen with ParserFunctions). It just seems like copying an article and uploading templates isn't enough.

80.56.90.14915:04, 7 April 2014

You have to import Lua modules too.

Ricordisamoa09:09, 17 April 2014
 
 
 

Error: invalid magic word 'babel'

Hi everyone,

I am getting the following message in the installation process of mw1.22.5 and I don't know why. Maybe you can help me?

[a007e48f] /mediawiki-1.22.5/mw-config/index.php?page=Options Exception from line 316 of /users/claretpedia/www/mediawiki-1.22.5/includes/MagicWord.php: Error: invalid magic word 'babel'

Backtrace:

#0 /users/claretpedia/www/mediawiki-1.22.5/includes/MagicWord.php(239): MagicWord->load(string)
#1 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(4982): MagicWord::get(string)
#2 /users/claretpedia/www/mediawiki-1.22.5/extensions/Babel/BabelStatic.class.php(22): Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /users/claretpedia/www/mediawiki-1.22.5/includes/Hooks.php(199): call_user_func_array(string, array)
#5 /users/claretpedia/www/mediawiki-1.22.5/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#6 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(275): wfRunHooks(string, array)
#7 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(287): Parser->firstCallInit()
#8 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(4823): Parser->clearState()
#9 /users/claretpedia/www/mediawiki-1.22.5/includes/parser/Parser.php(367): Parser->startParse(Title, ParserOptions, integer, boolean)
#10 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/Installer.php(608): Parser->parse(string, Title, ParserOptions, boolean)
#11 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstallerOutput.php(315): Installer->parse(string, boolean)
#12 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstallerOutput.php(102): WebInstallerOutput->outputFooter()
#13 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstaller.php(406): WebInstallerOutput->output()
#14 /users/claretpedia/www/mediawiki-1.22.5/includes/installer/WebInstaller.php(311): WebInstaller->finish()
#15 /users/claretpedia/www/mediawiki-1.22.5/mw-config/index.php(61): WebInstaller->execute(array)
#16 /users/claretpedia/www/mediawiki-1.22.5/mw-config/index.php(29): wfInstallerMain()
#17 {main}
79.212.171.315:01, 12 April 2014

Does https://www.mail-archive.com/mediawiki-i18n@lists.wikimedia.org/msg00600.html help?

AKlapper (WMF) (talk)13:04, 13 April 2014

Try updating to the latest version of localisation update because it has fixed a problem with extension when trying to use the web updater.

86.173.52.6518:10, 13 April 2014

@IP: It didn't help, too. So bad.

Der Buckesfelder (talk)15:27, 15 April 2014
 

No it didn't help.

Der Buckesfelder (talk)15:26, 15 April 2014

Try php rebuildLocalisationCache.php --force

Ciencia Al Poder (talk)09:51, 16 April 2014

I don't have a ssh access.

Der Buckesfelder - Talk - Valuation - E-mail05:24, 17 April 2014

I think the update localisation update is only avalible from 1.23 or higher.

86.173.52.6509:07, 17 April 2014
 
 
 
 
 

Css code help

Hi can I have some help to change these css codes

.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #008FCC;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #000, #f9f9f9, #ddd);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#008FCC', EndColorStr='#f9f9f9', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}

I need to change it where it say moz to support what it does on WebKit because when visiting this http://simple-random-wikisaur.tk on chrome it has a black background on the header but when visiting http://simple-random-wikisaur.tk on internet explorer it has a blue colour header. Please help so that every browser will show the black header please. Thanks

86.173.52.6518:03, 15 April 2014

To use the gradient defined for WebKit:

.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #333;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#ddd', EndColorStr='#000', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}

The gradient fallbacks to a dark gray.

Ricordisamoa08:40, 17 April 2014

Thank you.

86.173.52.6509:06, 17 April 2014
 
 

How to change Footer, skin Vector, wiki 1.22.5

I'm sorry, I use a translator. I want to change the standard references, add new ones. And write a tex, in the place where the text of the license. License not required. I could not find anything, but what I found did not help. = \

178.187.77.16318:16, 15 April 2014
First page
First page
Previous page
Previous page
Last page
Last page