Project:Support desk/Archive 19

(RESOLVED) Hide/ Remove default namespaces?

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

I am curious if there is a way to delete or hide some of the default namespaces. I am an educator, and am attempting to use Mediawiki as a community portal. So far so good. The students are using it extensively, and I would like to now, tighten down our structure a bit. I would like to limit the namespaces to only a few. Especially for students:

1. Main 2. Gallery and GalleryTalk (custom) 3. Project and ProjectTalk (custom) 4. Mediawiki (for administrators only 5. User and User Talk 6. Image and Image Talk 7. Template

Is there any solution to this? Or am I barking up the wrong tree?

Thanks

Scott --sheriffcicada 17:48, 7 February 2008 (UTC)


 * There are a few extensions that let you restrict who can do what on namespaces (even viewing pages in them), the most prominent being Extension:Lockdown. --Skizzerz talk - contribs [[Image:Tournesol.png|20px]] MediaWiki Support Team  01:30, 8 February 2008 (UTC)


 * Though its not resolved, no reply from Sheriff, and this is also a subject I would like to look into. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  01:12, 15 February 2008 (UTC)

(RESOLVED) error message "Unknown import source type"

 * MediaWiki: 1.5.5 (edit: and 1.5.8)
 * PHP: 4.1.2
 * MySQL: 3.23.58
 * URL: no public URL at this time

I appreciate this is an old and unsupported version. I'm trying to move a mediawiki-1.4.9 installation to a new location, and this is as far as I've managed to upgrade it so far - 1.6.10 requires mysql4, and the schema upgrade for 1.5.8 fails.

Having upgraded the source to v1.5.5, and installed that version also on the destination, I exported a couple of sample pages and tried to import those on the new installation. After selecting the import file and hitting "Upload file", I get the error message "Unknown import source type".

Looking at the code in includes/SpecialImport.php, this appears not to be possible: the form supplies source="upload" as a hidden variable. Removing the case statement wrapping that option, it fails at the next stage: it is as if none of the variables from the form are being seen.

Googling for the error message shows that lots of people have this message in their mediawiki installations, so I guess it isn't a rare problem. It doesn't appear anywhere on this wiki though, and I couldn't find anybody that asked about it that got an answer.

Any clues about how to approach this would be much appreciated.

—Hv 16:26, 11 February 2008 (UTC)


 * For what it's worth, I've managed to upgrade this now as far as v1.5.8, and still have the same problem. Hv 16:48, 13 February 2008 (UTC)


 * More generally, it appears to be a problem getting form variables via POST. If I go to edit a new page, type in some text and hit preview (or any other submit) I get back a page with no text in the preview, and no text in the text box: i.e., it is as if none of the form variables were visible to mediawiki. If I go to the history of an existing page, select a couple of revisions and ask for diffs it works fine - but that form uses GET.
 * The same problem occurs whether logged in or not, so I don't think this is the classical PHP session problem. It may be a wrinkle on the same though, so I'm currently looking through the differences in php.ini between the two systems. Hv 11:15, 14 February 2008 (UTC)

php.ini was the problem; I went through to change half a dozen things that looked maybe significant, and one of the changes fixed the problem. Because this is a production server I can't do the additional fiddling to determine precisely what change fixed it: - allow_call_time_pass_reference = On + allow_call_time_pass_reference = Off - gpc_order = "GPC" + ;gpc_order = "GPC" - magic_quotes_gpc = On + magic_quotes_gpc = Off - file_uploads = Off + file_uploads = On - ;upload_tmp_dir = + upload_tmp_dir = /var/lib/php/upload - ' at MYSQL_PORT. + ; at MYSQL_PORT. - session.save_path = /tmp + session.save_path = /var/lib/php/session - session.use_trans_sid = 1 + session.use_trans_sid = 0 - debugger.enabled = true + debugger.enabled = false but I suspect it was the broken comment (presumably introduced with the RPM that added php-mysql support), which I'm guessing may have caused the rest of the .ini file to be ignored. Hv 12:11, 14 February 2008 (UTC)

(RESOLVED) MediaWiki with .NET
Hello,

I am developing a site on .net, and would like to use MediaWiki as a child-site.

My site will get data from the MediaWiki child-site and display summaries of the articles on my site.

Will I be able to integrate the two sites?

Will I be able to get data from the MediaWiki DB through the platform of .net?

Thanks in advance,

Or. —62.219.47.3 15:05, 13 February 2008 (UTC)


 * The easiest and safest way to access mediawiki from .net is via http. accessing the database directly is sue possible, but not recommended. Using an abstraction layout is always a good thing. And since mediawiki is targeted at the web, the only abstraction layer (i.e. API) it offers is http-based. -- Duesentrieb ⇌ 15:20, 14 February 2008 (UTC)

(RESOLVED) User creation

 * MediaWiki: 1.11.1
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.0.45-community-log
 * URL: GATEWAY- The MU* Community

I'm wondering how I create user accounts. I disabled the account creation for the regular average joe, but I have no idea how I can do it as a beaurocrat. Thank you.

—Ra Gateway 23:16, 15 February 2008 (UTC)


 * Special:Userlogin  Mønobi 00:00, 16 February 2008 (UTC)
 * Thank you!! Ra Gateway 00:33, 16 February 2008 (UTC)

(RESOLVED) Wiki Content Moderation

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

Is it possible to configure the wiki so that all submissions must be manually approved? I have been unable to find an answer to my question in the documentation, if there is documentation, please point me to it.

—67.188.6.94 00:19, 16 February 2008 (UTC)


 * Highly doubt it. However, you can restrict access to editing the wiki in various ways.  Mønobi 03:30, 16 February 2008 (UTC)


 * Extension:FlaggedRevs --Chris  01:29, 17 February 2008 (UTC)

(RESOLVED) How do I add a Content Box to an article?
Hello,

When creating a new page (Searched for the page I wanted to create, then clicked "Add page")

And added a whole lot of content including main titles/headers but the content box is still not showing.

If you want to know what I mean by contents http://www.mediawiki.org/wiki/MediaWiki_on_IRC, below the title is a box with the title "Contents".

I am on the versions:

MediaWiki Version: mediawiki-1.11.1

PHP Version: Really sorry I could not retrieve this information.

MySQL Version: MySQL 5

PS: I have deeply looked for an answer, the closest I have found was to making the content box disappear, but I want it to appear.

Thank you, Keenan.
 * Table of contents by default only shows when the page has at least four headings. You can force it on by adding   (or force it off with   ). --Nad 23:25, 16 February 2008 (UTC)

RESOLVED: Thank you very much!

(RESOLVED) How to reset my sandbox

 * MediaWiki: 1.6.10
 * PHP: 4.4.7-0.dotdeb.0 (apache)
 * MySQL: 4.1.15-Debian_0.dotdeb.4-log
 * URL: Not online yet

I try to create a sandbox on my own wiki. I've copied the source code from Template:Please leave this line alone and write below (this is the coloured heading) but I can't get the reset function to work (it deletes everything, including the link to the template).

Guess it has something to do with 'oldid' in the reset link. Simular code from other wiki's didn't work either. Please point my nose in the right direction.

—RenéV 12:54, 17 February 2008 (UTC)
 * Yes, this is in the 'oldid'. You must replace the oldid number with the revision number of the new created page. Thus if you created the sandbox with oldid 211, then you write: oldid=211.  mgrabovský  | talk  (DJ Jeri)  [[Image:Tournesol.png|25px]] MW Support Team  14:15, 17 February 2008 (UTC)


 * Ok, thanks. This problem is solved.RenéV 14:47, 17 February 2008 (UTC)

(RESOLVED) Making wiki read-only / Changing sidebar text

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.45-community-nt

Hello, I have installed MediaWiki and using it on localsystem. I have two questions.
 * 1) How do I make the wiki read-only? I searched mediawiki and looked 'protected' would protect a page. But it would be tedious to do for all the pages. Is there a single place which would allow read-only access to wiki?
 * 2) How do I change the side bar text in the wiki? I have searched the php files and where it gets the text. Looks like skin template iterates with some values but I couldn't find out where it's getting that text from. Can you help me figure this out please?

Thanks, Vikas

—Vikasnd 01:06, 18 February 2008 (UTC)
 * See Manual:Preventing access and Manual:Sidebar --Skizzerz talk - contribs [[Image:Tournesol.png|20px]] MediaWiki Support Team  01:09, 18 February 2008 (UTC)

(RESOLVED) MediaWiki internal error. Error: 1033 Incorrect information in file: './aesedra_wikidb/user.frm' (localhost)

 * MediaWiki: 1.11.1
 * PHP: 5.2.3
 * MySQL: 5.0.45-community
 * URL: The Empire of Aesedra

Any idea what's caused the database error that my wiki is now showing me? It's InnoDB and I've run a check on it and a repair and I still get the error message. A Google search told me that it may be my host's /temp directory being full or not writable but they haven't got back to me yet.

Any ideas?

I haven't done anything to the wiki that I know about for this to happen.

—Peter1968 15:14, 18 February 2008 (UTC)


 * Update - host restarted mysqld and it now works - all is well. Peter1968 15:40, 18 February 2008 (UTC)