Project:Support desk/Archive 10

From MediaWiki.org

Jump to: navigation, search

Contents


[edit] Using MediaWiki source code in commercial software

Hi
If we use MediaWiki source code for creating a part of some commercial non-open-sourced software (it's not based on MediaWiki, just little part of it) - do we have to make our software GNU-licensed?

Thank you,
best regards,
-- Peterpen 13:14, 15 August 2007 (UTC)User:Peterpen

Yes.

[edit] MediaWiki & DB2 support

Hi,

I’ve been developing a plugin for the MediaWiki to support DB2.

1) I’ve written a PHP program that converts the database from MySQL into DB2 (it creates tables identical to the tables in MySQL database and moves the data there)

2) I found that all connection to the database is done in the Database.php. I’m planning to use functions such as db2_connect (from PHP) as they are very similar to mysql_connect. I’ve also written my own functions using db2_connect… that have almost the same signature as mysql functions (I’ve done it in order to eliminate almost any differences between DB2 and MySQL in order to decrease number of changes in the current MediaWiki code. Basically I want to replace mysql function with function that I wrote without making any other Major changes in the MediaWiki code).

However, I’ve noticed that SQL statements in MediaWiki are build dynamically in many steps and placed in different files, which are very hard to track. And I’m not able to use MySQL statements directly as DB2 have slightly different syntax. For example it doesn’t accept a quoted integer in the ‘WHERE’ clause.

My question is there any particular structure how the SQL statements get build in the MediaWiki? I’ve tried to search the MediaWiki code, but I couldn’t find any consistency and I don’t want start guessing, because I need MediaWiki to be stable.

Please help!!!
User:Alex Dubitski


Wouldn't it be more efficent to write a MySQL > DB2 SQL Cleaner function? And just preg_replace all the MySQL style stuff that conflicts w/ DB2? How many syntax differences are there $DB2sql = preg_replace("/(WHERE.*?)('|\")(\\d+)\$2'/i",'$1$3',$MYSQLsql);Or is that crazy talk? Tim LaquaTalk | contribs@00:22, 3 August 2007 (UTC)
The problem there with SQL statements that get executed from PHP. Those statements are not hardcoded but they are built dynamically in many steps and MySQL accepts much more syntax than DB2.
I have to make changes in all functions that build those statements, but I don’t know exactly what those functions are and what purpose of each of them.
Could someone who is familiar with MediaWiki code help me to identify those functions?
User:Alex Dubitski

[edit] Is there a bug related to template-trascluding in MW 1.10.0 and 1.10.1?

I have several instances of MW running and there is a behaviour while inserting templates from a central pool I cannot explain myself. E.g. there is a central instance let's say foo1.bar.tld and another one let's say foo2.bar.tld. And now I want to use a template hosted by foo1.bar.tld using the designated way {{foo1:Templatename|Tempaltevar=Value}} while foo1 is the right interwiki link. (yes, iw_trans is set and scary transcluding is turned on). So here is my problem:

Instances which are based on MW 1.10.0 include that template but wiki markup within the template is ignored. Html markup works fine. Instances based on MW 1.10.1 show something like UNIQ1e69a7ad64e3f598-item140b0119235f4147 instead the included template.

Is there anyone out there who can explain that behaviour to me? --195.145.211.194 07:19, 27 July 2007 (UTC)

Has this been resolved? If not, have you checked BugZilla for an existing bug report? Tim LaquaTalk | contribs@23:50, 3 August 2007 (UTC)
Sorry I wasn't at my office for a couple of weeks. No. As I noticed this bug has not been resolved. And I searched BugZilla but no description doesn't really match my problem. Do you have any hints for me? --12:41, 14 August 2007 (UTC)

[edit] Error: Cannot redeclare property static public SpecialPage::$mList

I am trying to install Mediawiki 1.10.1 on a Suse Linux 9.3 with Apache 2.0.53, PHP 5.0.3 and MySQL 4.1.10a. After unpacking, the Mediawiki Config/Setup page tells me the environment is fine. After entering the details there Mediawiki creates the database and I get a success message. So I copy the LocalSettings.php to the parent directory and call my new wiki.

Problem: The Main_Page appears and looks good. However, whenever I click on any links refering to my Wiki (or try to create a new page), I get the following error:

Fatal error: Cannot redeclare property static public SpecialPage::$mList in class UnlistedSpecialPage in /srv/www/wiki/includes/AutoLoader.php on line 328

I reinstalled it several times, also tried Mediawiki 1.9. Same error all the time. I am guessing something is messed up with PHP / Apache setup, but I have no clue what. Both were installed using rpm-packages. Any help is greatly appreciated! Steffen

-84.72.78.136 13:21, 5 August 2007 (UTC)

[edit] Most Recently VISITED Pages

I've looked through the extensions and throughout the site and cannot find this, but I was wondering if it would be possible to make a page that displayed the most recently visited pages in the wiki.

Thanks. -Smaug 22:18, 6 August 2007 (UTC)

It would be possible, but you would to have to also create the mechanism to track page views. MediaWiki does not keep track of page views. It could be done easy enough with an extension. See Category:Extensions for instructions on Extension writing and examples. Tim LaquaTalk | contribs@22:51, 6 August 2007 (UTC)
Doesn't it? The bottom of each page contains a counter... but I suppose there's no MRU function if that's what you specifically referred to... Kareeser|Talk!

[edit] By using FckEditor with Mediawiki...

I have modified MediaWiki version 1.10.1 to integrate FckEditor by following steps from http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide. I have also modified some code in FckEditor's files to use font color, font size and background color.

And that features are working fine. I haven't test it much. But i just want to know is this is feasible solution to show those buttons on editor or there is some other way also available?

And yes i have also try to use the alignment buttons but it is not working. So can you help me out to solve the above things. Like i need more features on FckEditor as FckEditor is providing in its latest version.


And yes this is really really major requirement to improve FckEditor on MediaWiki site.


Thank you Viral Shah

If you have problems with the FCKeditor extension (either of them) for MediaWiki, you need to contact the extension writer/programmer. I personally dont' see a problem with having those extra buttons enabled except for the fact that they insert HTML rather than wikitext. Which is how you change the color anyway in wiki. If you have further questions regarding FCKeditor, please contact the extension designers. Tim LaquaTalk | contribs@17:14, 7 August 2007 (UTC)

Thank you for your reply. But i am not able to find extension writer/programmer page. Can you send me the link for that. and one more thing like for alignment i have commented one line in extensions\FCKeditor\plugins\mediawiki\fckplugin.js file.

//Before:

_BasicElements : {
body : [ ],
b : [ "", "" ],
strong : [ "", "" ],
i : [ "", "" ],
em : [ "", "" ],
p : [ '\n', '\n' ],
h1 : [ '\n= ', ' =\n' ],
h2 : [ '\n== ', ' ==\n' ],
h3 : [ '\n=== ', ' ===\n' ],
h4 : [ '\n==== ', ' ====\n' ],
h5 : [ '\n===== ', ' =====\n' ],
h6 : [ '\n====== ', ' ======\n' ],
br : [ '
', null, true ],
hr : [ '\n----\n', null, true ]
} ,


// After
//Commented P tag line to show the alignment. Editor is creating align property in P tag and i think this line convert P tag with '\n'.
_BasicElements : { body : [ ],
b : [ "", "" ],
strong : [ "", "" ],
i : [ "", "" ],
em : [ "", "" ],
// p : [ '\n', '\n' ],
h1 : [ '\n= ', ' =\n' ],
h2 : [ '\n== ', ' ==\n' ],
h3 : [ '\n=== ', ' ===\n' ],
h4 : [ '\n==== ', ' ====\n' ],
h5 : [ '\n===== ', ' =====\n' ],
h6 : [ '\n====== ', ' ======\n' ],
br : [ '
', null, true ],
hr : [ '\n----\n', null, true ]
} ,

So will this be fine??

Using FCKeditor may need more modifications. It is NOT ready for prime-time. Please contact the Extension creators as they are currently looking for help in getting their extension up to snuff for MW integration. Tim LaquaTalk | contribs@17:39, 18 August 2007 (UTC)

[edit] Complicated if parser function statement

I want this template to accept a single parameter but change the output relative to what that perimeter is (unnamed and named). This code works correctly if I give an unnamed parameter (where it links to Wikipedia with it) and if I specify "wikt=whatever" (where it links to Wiktionary:whatever) but if I don't specify a parameter it defaults to Wiktionary instead of Wikipedia (which I don't want). Also, I'd like the "wikt" parameter to default to {{PAGENAME}} without having to specify a name ("wikt=name"). Did you get all that? Now, is it possible and, if so, how do I do it? ;)

{{#if:{{{1|}}}|
        [[Wikipedia: {{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}]]|
        {{#if:{{{|wikt}}}|
                [[Wiktionary: {{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}]]
        }}
}}

-Eep² 19:55, 7 August 2007 (UTC)

[edit] 2 Tabbed page in Mediawiki

I see a very simple two tab page (three pages - the tab header page, the first tab page, and the second tab page [described here ].

The first line on the tab header pg. references Wikipedia:Tutorial/Tabs. How do I reference this line on an internal Mediawiki for my company to create a two page tab? What do I put on the first line of the tabs header pg. to make 2 tabs on a page? I tried making it an external link, but that did not work. -Pomykala01 20:25, 7 August 2007 (UTC)

What exactly is the problem you are having? Did you copy over all the templates onto your wiki? --Dr DBW 01:47, 8 August 2007 (UTC)


Thanks, the problem is that I am unable to create a two or three page tab on a mediawiki. I did use the wikipedia templates, but they do no work because they call internal wikipedia pages. My MediaWiki would need to reference a templates internal to my wiki. Specifically I cant seem to recreate this template. Do you know of a mediawiki that has two pg tab or do you know a good reference tutorial on creating tabbed pages (in Mediawiki)?

Hmm, sorry, still don't see what the problem is. If it calls pages within Wikipedia, then you export and import them into your own wiki (or even just copy and pasting), with the appropriate template names you want to use in yours, you don't have to use what Wikipedia does. The code looks relatively simply, just calling a number of different templates and inserting into those different page titles. And all you have to do is ensure those templates are part of your wiki. --Dr DBW 00:24, 14 August 2007 (UTC)

[edit] Failed connection to MySQL

I successfully installed MediaWiki and the Semantic Wikipedia from Ontoworld.org on a Windows machine with WAMP. I created my first pages but after a reset I'm getting the error message below, even though WAMP services including MySQL are successfully relaunched.

FirstWiki has a problem

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Can't contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )

Thanks for your help.

Mircea -216.48.88.11 20:38, 7 August 2007 (UTC)

Has this been resolved? Tim LaquaTalk | contribs@17:40, 18 August 2007 (UTC)


Sometime over the weekend, my server crashed, and my formerly working wiki is giving me this error. NewBob --69.88.64.142 17:03, 12 May 2008 (UTC)

[edit] Mediawiki Search Engine

Hello,

Is the Mediawiki Search Engine able to search in the whole Special Site if you include extensions? For example I have included some extensions with tags like <sometag></sometag> in the Special Pages. When I use the wiki search I can only search for the tags, but not the content which the extensions are returning. Is there any way that the extensions are executed when you use the Mediawiki Search? -62.152.191.66 10:52, 8 August 2007 (UTC)


[edit] Substring search question

Is it at all possible to get 'part word' searches instead of fulltext (Eg searching for 'word' would bring up 'sword', 'word' and 'words' results)? -213.249.162.132 13:25, 9 August 2007 (UTC)

Yes, it is. —The preceding unsigned comment was added by 212.202.107.126 (talkcontribs) . Please sign your posts with ~~~~!
You should get substring matches with the default configuration. Have you verified that your wiki is not producing substring hits? (remember, by default, MySQL is not indexing words shorter than 4 characters) Tim LaquaTalk | contribs@22:46, 9 August 2007 (UTC)
I've changed MySQL to index words of 3 characters or more, however if I search for 'dame', it does not find an Article with the title 'dameware', but it does find occurrences of 'dame' in the text of the page (as 'dameware' is mentioned several times on the page). If I put the full word in to search, it finds it no problem. Slightly confused!--Nomis35 09:43, 14 August 2007 (UTC)

[edit] disabling namespace "talk"

How can I disable the namespace "talk" in a local installation of MediaWiki? BTW this solution is improper for my purposes. Thanks in advance. --WIKImaniac 13:39, 9 August 2007 (UTC)

What do you mean by "disable"? Stop users from writing to it? See Help:User_rights for instructions on permissions, and the aforementioned solution will hide the edit/discussion tab. I'd advise setting createtalk permissios to false for everyone and hiding the edit tab. Tim LaquaTalk | contribs@22:23, 9 August 2007 (UTC)
I'd like to prevent the namespace "talk" from appearing in special pages, e.g. in Special:Allpages (cf. the drop down choice). Is there any possiblity to deactivate a built-in namespace, just the same way as you can create custom namespaces? --WIKImaniac 09:42, 10 August 2007 (UTC)

[edit] mailto: tag

Hello,

I would like to include a mailto: code in my wiki however I am running into problems with the following: link name Everytime I add more text to 'body=' it formats itself as the name of link. How do add more text to the body while keeping the 'name' for the hyperlink?


-Pomykala01 18:19, 9 August 2007 (UTC)

You have to URL encode the body (you can't have spaces in a URL - they are encoded to %20. Visit http://meyerweb.com/eric/tools/dencoder/ and encode your body text. then paste it after the &body= argument. NOTE - URLS can not be longer than 2048 characters (AFTER encoding). Tim LaquaTalk | contribs@21:59, 9 August 2007 (UTC)

[edit] How do I create a expandable subcategory?

I am using mediawiki. This my sidebar. Is there a way to make each section under webs to be able to expand where I can put subcategories???

  • Webs
    • mainpage|Main Page
    • PRODUCTS|PRODUCTS
    • ACTIONS|ACTIONS
    • SERVICE|SERVICE
    • sandbox|Sandbox
  • Online Help
    • portal-url|Portal
    • currentevents-url|Current Events
    • recentchanges-url|recentchanges
    • randompage-url|randompage
    • helppage|help

-Chicagoboy 18:41, 9 August 2007 (UTC)

There isn't currently a way to use multiple levels in your sidebar. I've seen a few people working on the problem currently and it has already been requested as an enhancement. The closest extension currently is Extension:Tree_view - however that usually replaces your entire navigation with a tree view. Tim LaquaTalk | contribs@22:06, 9 August 2007 (UTC)

I'm having trouble installing this. I've downloaded the Treeview.php and uploaded it but I'm not sure where to put the code in my localsettings.php. Can you advise?

Contact the developer of the extension, best idea to do that is via the talk page for the extension. --Dr DBW 00:27, 14 August 2007 (UTC)

[edit] workflow plug-in

Dears,

There are some plug-in that implement workflow to approve page contents. Please help me

Thanks Expedito Junior (BR) -200.225.90.10 20:03, 9 August 2007 (UTC)

No, not currently. See Extension:FlaggedRevs for an extension that is currently under development. Tim LaquaTalk | contribs@22:11, 9 August 2007 (UTC)

[edit] HTML not being evaluated

I have the latest stable version of MediaWiki installed. However, I notice that I cannot do some things that I see on WikiPedia and other MediaWikis.

In particular, if I try to hardcode a "td" in a Wiki table, on WikiPedia a new cell appears. However, on my setup the HTML is displayed. If I make the table with "table" tags instead, things work fine.

I've also tried copying the Template:Tnavbar template to my system, and when I use it I get an extra "/span" after the "edit" and the three links are not the right CSS class.

Is there a setting I need to set to make sure that HTML tags are evaluated in more situations? -TedPavlic 20:41, 9 August 2007 (UTC)

See Manual:Configuration_settings#HTML for available HTML related settings. a TD should be evaulated by default, but you MUST properly code the entire table:
<table>
  <tr>
    <td>cell1</td>
    <td>cell2</td>
    <td>cell3</td>
    <td>cell4</td>
  </tr>
</table>

Yields:

cell1 cell2 cell3 cell4
Tim LaquaTalk | contribs@22:16, 9 August 2007 (UTC)
I think I should have given a better example. Let's take the following code...
{|border="1"
| cell1 || cell2 || cell 3 <td>cell4</td>
|}
...which produces (on MediaWiki, which I think is running alpha software)...
cell1 cell2 cell 3 cell4
Cell4 is actually a cell. However, on my system, I get this result:
cell1 cell2 cell 3 <td>cell4</td>
I see similar results when, for example, starting <span> and ending </span> tags are buried in separated {{if:}} statements (or similar); the closing </span> gets displayed rather than evaluated. --TedPavlic 18:26, 10 August 2007 (UTC)
When you inline HTML into a page, it is run through a tidy process to validate it. By default, MediaWiki uses a builtin tidy, but Wikipedia and the other projects use an external tidy utility which is supposed to give better results. That's the reason why yours is different, not the different software version. You'll need to find the tidy program, and configure your wiki to use it. -Steve Sanbeg 18:11, 15 August 2007 (UTC)
That's exactly what I was looking for. Thanks. Unfortunately, my hosting provider doesn't have "/dev" included in their "open_basedir" restrictions and (for some strange reason) WikiMedia pipes lots of output to "dev/null." It seems to me like this was a poor choice on WikiMedia's part. --TedPavlic | talk 15:30, 20 August 2007 (UTC)

[edit] CategoryTree not working (Maybe AJAX????)

Hi guys hope you can help. I cannot for the life of me get the CategoryTree extension to work. Im running both IE6 and Firefox. I have tested that javascript is working correctly with a script, and it is. I have downloaded both the bundle from the svn site and tried the old version of it, both with no success. When I input the categorytree tag in a page, I get the [-] tag next to the category, but when I click on it, nothing at all, even though there are pages in this category. I have made the necessary changes to LocalSettings.php with

$wgUseAjax = true;
  require_once( 'extensions/CategoryTree/CategoryTree.php' ); 

and still not working, even after clearing out the cache. I have tested by changing the name of the CategoryTree folder in the /extensions directory, and it does throw an error, so its finding the folder correctly. Is there anything else I can do? It seems like this extension is a bit fragile somehow, or is there any other debugging or testing that AJAX is working correctly? Thanks guys. Simon -58.175.34.89 22:03, 9 August 2007 (UTC)

Try
<categorytree mode=pages>NameOfCategory</categorytree>
Tim LaquaTalk | contribs@22:28, 9 August 2007 (UTC)
Hi Tim!
Mate thanks so much. Ill give it a go right now and let you know :>)
Tim! YOUR A CHAMPION!! That worked!
Thank u so much. Ive spent a couple of hours on this and youve helped me no end!! Thank u mate!!
np. BTW, don't forget to check around the site and look for examples before asking your questions here. ;-) Tim LaquaTalk | contribs@22:39, 9 August 2007 (UTC)

[edit] Initial View of Category Tree

Guys last question for today. I have the CategoryTree now working (thank you Tim!). Just a little issue is that when the page is loaded, it seems to expand all levels. So I have:

[-]Category
     Page
     Page
[-]Category
     Page
     Page
[-]Category
     Page
     Page

Instead of what Id like which is the following:

[+]Category
[+]Category
[+]Category

Then when Id click on each Category, it expands out to show the pages.
Iv tried the following with no luck.

<categorytree mode=pages depth=0>CategoryName</categorytree> 

Sorry last question. :>) Simon -58.175.34.89 23:15, 9 August 2007 (UTC)

<categorytree mode=pages onlyroot=on>CategoryName</categorytree>
Tim LaquaTalk | contribs@02:04, 20 August 2007 (UTC)

[edit] How do I update search index after importDump?

This question is about migrating pages from one wiki to another.

I created an XML dump from an old site, using the command-line tool dumpBackup.php. I then used the command-line tool importDump.php to import pages into the new wiki. This imported the pages just fine.

The pages show in the Special:Allpages page. But when doing a search, the imported pages are not included in the search.

What process do I run so that all the pages are included in searchs?

-Xxaxx 01:49, 10 August 2007 (UTC)

Specifically, what pages did you import? Are they general articlespace pages, or user/talk pages? Kareeser|Talk! 17:21, 12 August 2007 (UTC)

[edit] StringFunctions page name variations

Please see Extension talk:StringFunctions#Page name variations for my question. -Eep² 06:28, 10 August 2007 (UTC)


[edit] Downloading extensions with .sql and .js files

When I want to download an extension with .sql or .js files like this, I click on "download" and I what I see is the text of that file. It doesn't download that file. When I click on "download" by .php files, it downloads that file normally. Do I something wrong? Or is this normal? Thank you, SPQRobin 10:04, 10 August 2007 (UTC)

Use the rightklick and save ass... 91.17.76.185 01:30, 11 August 2007 (UTC)

Oh, yes. Thank you, SPQRobin 18:25, 12 August 2007 (UTC)

[edit] Warning: require_once

I get the following error when opening my wiki:

Warning: require_once(./includes/Defines.php) [function.require-once]: failed to open stream: No such file or directory in /var/lib/mediawiki1.7/index.php on line 30

Fatal error: require_once() [function.require]: Failed opening required './includes/Defines.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/lib/mediawiki1.7/index.php on line 30

However, the directories stated above are all existing. Please help me out, as hours of working might be lost now. PS: The wiki is installed on a Linux and wiki is version 1.7

Many thanks in advance! -13:01, 10 August 2007 (UTC)

Check user permissions? Kareeser|Talk! 17:18, 12 August 2007 (UTC)
Found the solution: uninstall en reinstallation helped me out. But anyway thanks to Kareeser! 10:41, 13 August 2007 (UTC)

[edit] How /Where to define the class of a table?

Tables like {| class="infobox" cellspacing="2" have a class. If i copy a template that has this class form wikipedia to my own wiki the class is not known like here and formatting looks bad. Where do i define this "class"? how do copy this class form wikipedia to my own wiki? Or where is this documented? -Leuk he 13:09, 10 August 2007 (UTC)

If you copied this you can find the content of this CSS class here. You just have to copy the classes you need to your http://wiki.emule-web.de/index.php/MediaWiki:Common.css. --WIKImaniac 15:03, 10 August 2007 (UTC)
Thx. That was the hint i needed. -Leuk he 16:05, 10 August 2007 (UTC)
Ich würde auch den kompletten Skin ändern, den Standartskin finde ich nicht gerade schön...
--91.17.76.185 01:29, 11 August 2007 (UTC)

[edit] Notification of article moved or deleted

I have been looking thru this site and I can not seem to find anything about sending a email to the creator/last editor of a wiki article letting them know it has been moved or deleted. Am I just overlooking it somewhere, or is this something I need to write a hook for?

-143.166.226.57 14:27, 10 August 2007 (UTC)

Use the RSS Feed from your WIKI 91.17.76.185 01:28, 11 August 2007 (UTC)
That is not what I am looking for. I am looking to see if there is a hook that is called when a article has been moved or deleted. So I can write a plugin to handle this.
TitleMoveComplete Manual:MediaWiki_hooks Tim LaquaTalk | contribs@01:58, 20 August 2007 (UTC)

[edit] How do I edit the "Create Account" screen in MediaWiki?

I want to change the Create Account screen so that Real name and Email address are no longer listed as optional. Help! I am using MediaWiki 1.10.1 with MySQL.

ANSWER: I've answered my own question. You open Special:Allmessages while logged in a sysop and edit the text from there.

-216.191.251.130 15:33, 10 August 2007 (UTC)

[edit] Speed up wiki

Does anyone know of things I can do to speed up my wiki. Memcached doesn't work on my server, but I have SSH access to run some programs.-141.158.61.42 18:51, 10 August 2007 (UTC)

@141 You can save the page as a Static page ..91.17.76.185 01:33, 11 August 2007 (UTC)

[edit] structured data input mechanism

I am looking for a structured data input mechanism, like a data form that the user simply fills out and clicks "Save", and the data is saved, perhaps in a template format where an existing template formats and displays the data. The handling for the users must be easyer... Are ther any Mod? -91.17.76.185 01:25, 11 August 2007 (UTC)

Simple Forms, Semantic Forms, and DataTable come to mind off hand, but see Category:Table extensions and Category:Form extensions for others. -Eep² 09:08, 11 August 2007 (UTC)

[edit] abbr and acronym tags -- not sanitary enough?

Why does MediaWiki not whitelist the abbr and acronym tags? It leaves a commented spot for them in its whitelist in the Sanitizer code. Shouldn't they be present? After all, var is present, and it's almost identical to them. -TedPavlic 03:09, 11 August 2007 (UTC)

Seems they were forgotten. There's also an open bug about this. I seem to recall Brion vetoed further whitelisting at some point in the past... robchurch | talk 05:34, 11 August 2007 (UTC)
That seems a little silly since there is a comment about abbr and acronym already in the PHP. It's as if they were specifically excluded. Maybe someone can write an extension to modify these. Then that extension modifier can keep up to date with W3C. Oh, well... -TedPavlic 16:45, 11 August 2007 (UTC)

[edit] Media Wiki only send Email to one Email Address on the registered list

I've setup apache_2.0.59-win32-x86-no_ssl, mediawiki-1.10.1 locally. I've configured Wiki to send out Email but It sends out Email to only one user on the list at a time. For example: I registered user_One@hotmail.com, user_Two@yahoo.com. They both have the same configuration on Wiki(Reveal my e-mail address in notification mails, E-mail me when a page I'm watching is changed. etc...). When I ( another different user ) edit the Main Page on Wiki, it only sends out Email either for user_One@hotmail.com or user_Two@yahoo.com. What I want is: I want Wiki sends out Email to all the registered user(s) with the check mark in front of "Watch this page". Please help. Thanks in advance.

[edit] ogg upload

-196.207.40.212 09:09, 11 August 2007 (UTC)

Hello,

Can you please tell me where to upload ogg audio files to for playback via the wiki?

http://en.wikipedia.org/wiki/Template:Listen

I cannot see any path listed to the audio file to link to it externally... Many thanks.

Michael.

[edit] Question about headers and side navigation?

Is there a way to add a header? I'm mainly looking to add my site's main navigation layer.

Additionally, is there a way to remove the logo area and move up the side navigation?

I'm sure there are ways to do both of those, I guess the question becomes where do I alter the code?

Thanks, Jim R.

Hello Jim,
Please refer to http://www.mediawiki.org/wiki/Help:FAQ#Changing_the_Interface ... Does this solve one of your problems?

[edit] Error creating thumbnails/galleries

recently had to move our mediawiki 1.6 from one server to another. site seems to load fine, and database appears intact. however, users are getting errors when trying to create thumbnails and galleries.

example: Error creating thumbnail: /var/www/vhosts/mysite.com/httpdocs/wiki/bin/ulimit.sh: line 6: /usr/bin/convert: No such file or directory


where do i edit/change/fix this and how? thanks for any assistance!

-71.80.132.242 17:18, 11 August 2007 (UTC)

Either ImageMagick is not installed, or is installed in a different directory. The system path to imagemagick (or rather, convert), is hardcoded in LocalSettings.php Kareeser|Talk! 17:14, 12 August 2007 (UTC)

thanks for the info! given the path i've listed in this error, how can i re-install ImageMagic? also how should my localsettings.php file read? -71.80.132.242 17:18, 12 August 2007 (UTC)

I'm a windows user, so my experience might not be directly transferable. Try your best! Here is my setting:
# $wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickConvertCommand = "C:\Program Files\ImageMagick-6.3.3-Q16\convert.exe";
You can see that I've commented out the "default" line, which points to /usr/bin/convert, and modified that line to point to the directory on my Windows box. You should do the same on your setup. Either install imagemagick, or find where it has been installed, and point $wgImageMagickConvertCommand to the right place Kareeser|Talk! 14:50, 15 August 2007 (UTC)

[edit] "offline" off server use of MediaWiki or similar possible?

From what is available about MediaWiki on en.wikipedia.org, that is currently not possible, but...

  1. Is it being planned in the future version?
  2. What are some wiki softwares that can be used off line and have similar editing syntax, wikiTeX like MediaWiki, etc?

--Organizex 17:38, 1 August 2007 (UTC)

What do you mean by "offline" and off server? As long as you can install a webserver (usually Apache2), MySQL, and PHP Supoprt, you should be able to get it going. Do you want to use it in an internal netowrk? Or like locally just on your own computer?
Tim LaquaTalk | contribs@17:49, 1 August 2007 (UTC)
Yes, that is correct. Organizex 08:43, 2 August 2007 (UTC)
Which? Local Network? Or just Your Computer? Tim LaquaTalk | contribs@11:46, 2 August 2007 (UTC)
I have no preference between the two except the main objective of not requiring an active internet connection.Organizex 03:01, 9 August 2007 (UTC)
Yes, you can run the mediawiki server offline. If you are worried about security, you can set apache to allow only 127.0.0.1 (localhost) to have access, and deny access to anybody else. All you need is Mediawiki, Apache, PHP, and MySQL Kareeser|Talk! 17:13, 12 August 2007 (UTC)
Thanks, I will post again after I have looked into Apache.Organizex 07:06, 13 August 2007 (UTC)

[edit] Bureaucrat deleted

-201.223.151.232 11:13, 12 August 2007 (UTC)

I have a mediawiki software in a comunitary wiki, installed and when i move the privileges of my user, i lose the bureaucrat privilegies and anybody have thart privileges. I need to restore the bureaucrat, how i can do this?

Can you access Special:Userrights on your wiki? Kareeser|Talk! 17:11, 12 August 2007 (UTC)

I can't see. This is the trouble.

If it won't mess it up too bad, you might have to reinstall the wiki. Back everything up, and then reinstall with the settings you want. Smaug 20:29, 13 August 2007 (UTC)

Instead of re-installing, manually edit the database. This page, hosted at meta.wiimedia.org, explains how and what to do. 209.193.75.158 15:25, 21 August 2007 (UTC)

[edit] Problem to add files

-192.118.88.2 11:14, 12 August 2007 (UTC) Hello, I have a problem to attache file. The side bar is not appear. any idea? Regards Elad

Hello Elad,
You must enable file uploads in LocalSettings.php, by changing the value of $wgEnableUploads from false to true. Kareeser|Talk! 17:10, 12 August 2007 (UTC)

[edit] (Resolved) Apache Error Log...

Hello everybody,

I've been getting this error logged in the apache log every time somebody goes to a page (any page on the wiki):

[Wed Aug 08 14:49:59 2007] [error] [client (IP)] File does not exist: C:/[System path to wiki]/wiki/common, referer: http://sesdb.kareeser.com/wiki/Main_Page

Weird that it's trying to access just the "common" folder, and nothing inside... could it be a permission problem?

Thanks! Kareeser|Talk! 17:09, 12 August 2007 (UTC)

I probably can't help you, but did this error start right after you installed the wiki, after something else happened or you did something, or did it start randomly? Smaug 22:14, 12 August 2007 (UTC)
I only got into the habit of checking the logs recently... so I'm not sure when it started :S... 206.248.139.177 14:39, 15 August 2007 (UTC)

THIS IS NOT A FIX - but possibly a band-aid to stop the log entries. Create an empty file named 'common' at that location. Of more importance would be to find out what's been added to your wiki that's looking for that file. 209.193.75.158 15:32, 21 August 2007 (UTC)

Actually, it was much more than a fix, Mr 209! After I did as you suggested, the error log changed to a more specific location, and from there, I determined that the GFDL Logo wasn't displaying properly. A quick declaraction of $wgRightsLogo fixed that right up. Thanks! Kareeser|Talk! 01:47, 28 August 2007 (UTC)

[edit] Links that show up in another window

  • 1.10.1 is the version I am using.
  • PHP 5 but I am not a programmer so any solution in the guts of the coding would not be where I want to go :0)

In HTML as an example - <a href="http://wiki.urbizzness.com/index.php?title=Main_Page" target="other">Urbizzness</a>

target="other"

makes the link appear in another browser window or tab depending on the type of browser.

When using the Wiki syntax

[http://wiki.urbizzness.com/index.php?title=Main_Page Main Page - UrbizznessWiki]

- How do you get the link to show up in another window or tab in similar manner as target="other" in HTML?

Also is there a way to get the browser to show up in certain dimensions?

-70.71.227.100 22:27, 12 August 2007 (UTC)

Maybe you mixed up "target other" and "target _blank" for opening a page in a new window. If you want to open all external links in a new window you just have to change one single line of code in the file \includes\Linker.php. Change line 674 from
return '<a href="'.$url.'"'.$style.'>'.$text.'</a>';
to
return '<a href="'.$url.'"'.$style.' target="_blank">'.$text.'</a>';
That works...thanks. I did however have to change target="_blank" to target="_other" before the Wiki software would deliver outside links to another browser tab. But now she works fine....excellent.


Could someone have a look at my question above, please? --WIKImaniac 12:35, 13 August 2007 (UTC)
If you find out the answer, tell me because I'd like to know too.... Smaug 14:51, 13 August 2007 (UTC)

[edit] Cant find any information (Please Help)

Hi, Ive been searching for days trying to find the syntax required to have the Category Tree not expanded by default. I cant find any appropriate information on how to do this. The main page for CategoryTree doesnt have it either. -58.175.34.89 01:27, 13 August 2007 (UTC)

Have you attempted to contact the developer? --Dr DBW 00:35, 14 August 2007 (UTC)

[edit] help changed url address:Solved

I was currently running wiki off my first domain but now I want to run it off my second, but the thing is it gives me an error page, domain it was installed on = http://insane-monkey.com/xudas but I want it to look like this http://xudas.com/index.php?title=main_page but its not working could you tell me what file I have to change the url code in, please email me at squeggie@gmail.com, ty

Did you just ocpy and paste all the files? You may have to go in to the code and change what the location is, and what the MySQL database is if it's changed. I don't know how to do this, though, sorry. Maybe in LocalSettings.php? Smaug 20:27, 13 August 2007 (UTC)
I figured it out, I had to change the file that it was located at and just delete it, thanks —The preceding unsigned comment was added by 72.208.91.177 (talkcontribs) 18:00, August 13, 2007. Please sign your posts!

[edit] New Error Creating Thumbnails

I put a fresh copy of the ulimit.sh in the bin/convert folder, but now I get this message:

Error creating thumbnail: sh: /usr/bin/convert: No such file or directory

These are the contents of that file:

  1.  !/bin/bash

ulimit -t $1

ulimit -v $2 shift 2

"$@"


Any ideas? -71.80.132.242 18:34, 13 August 2007 (UTC)

Yep. You need to look through your files and/or your online repository if you are a linux user, and install something called Imagemagick. Look up at section 32 for relevant information. Tmalmjursson 13:09, 20 August 2007 (UTC)

[edit] Update prob

I updated MediaWiki 1..2 to MediaWiki 1.10.1. Now I get a Internal Server Error http://www.zimwiki.com/index.php --70.67.167.157 21:29, 13 August 2007 (UTC)

A Zim wiki! Awesome idea! I love it. I dunno how to help you with your problem, though, sorry. :( Smaug 22:54, 13 August 2007 (UTC)

[edit] 2nd prob

I fixed it :) (the permissions were wrong) but now I get this error "Too many redirects occurred trying to open “http://zimwiki.com/index.php/Main_Page”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page." I suspect it's from me fiddling around to much trying to fix the 1st problem.

What redirects do you have to or from that page? Also, what did you do to make the address "index.php/Main_Page"? (I've only seen index.php&title=Main_Page and straight up Main_Page.) Are you sure that is the address? It's weird seeing what appears to be a php file where a directory should be. Smaug 14:37, 14 August 2007 (UTC)
1.10.1 supports the index.php/Main_Page syntax by default - if you go to http://www.zimwiki.com/index.php?title=Main_Page, it redirects to: http://www.zimwiki.com/index.php?title=Main_Page" (note the extra double quote at the end - that ain't right... Maybe it's time to just re-run the config and copy some of the generated LocalSettings.php settings over to your hacked up LocalSettings.php (make sure to follow procedure and backup your existing stuff). You do NOT need a mod_rewrite for the index.php/Main_Page syntax - mod_rewrite is for the Short URLs. Also note that the true url still works fine: http://www.zimwiki.com/index.php?title=Main_Page - wiki is up, config is junk. Run the setup/config again. Tim LaquaTalk | contribs@19:02, 14 August 2007 (UTC)

[edit] Help to configure users, groups and permissions for a determinated word or entry

-80.34.202.56 07:06, 14 August 2007 (UTC) I need some help about how can I configure my own wiki for only permit a determinated user to create/modify some entries but not the rest. I've been reading the docummentation and trying to find out the solution but it's impossible for me...

Thanks in advance, Susan

You can protect pages on a page-by-page basis, and then only administrators (or maybe other user levels, I dunno, but not basic users) can edit them. Is this what you are looking for? Smaug 14:38, 14 August 2007 (UTC)
See Extension:PageSecurity - Note rob's comment on that page - MediaWiki isn't designed for that sort of protection. Tim LaquaTalk | contribs@19:08, 14 August 2007 (UTC)

[edit] My wiki is acting up; it's slow or doesn't load at all

Just recently the main page of my wiki (located at http://www.uDIY.org) started loading very slow. Sometimes it won't load at all. It's impossible to navigate to any page other then the homepage. I recently integrated FCKeditor into the code (so the editing was wysiwyg) and thought this might be causing the issue, after removing all the FCKeditor code the site is still not working properly. I have some subdomains on the same server and they work fine, so I don't think it's a server issue.

Also, when the site loads properly the correct favicon (the letter 'U') is displayed, when it doesn't load properly the letter 'W' is displayed. I use the 'W' favicon for one of my subdomains.

I am using

Mediawiki version 1.10.0
MySQL database, version 5.0.27-standard-log
PHP version 5.0.5

Thanks in advance for the help. -69.137.221.147 15:11, 14 August 2007 (UTC)

[edit] Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.

I have a MediaWiki wiki and thus far it has been operating without issue. Some time later Friday night or Saturday however anybody logging in started to get the error message


"Login error: NerdFest uses cookies to log in users. You have cookies disabled. Please enable them and try again."


If you select "Remember my login on this computer" then it will still error out, but will show you as being logged in. Any attempt to edit a page however throws out the error; "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."


Originally i thought that this was just a MediaWiki error and tried to re-install the php aspect of it while keeping the database in tact. Same error. So I decided to be especially thorough in my troubleshooting and I created a new sub-domain, with a new installation of mediawiki and a new database. Still nothing. For all of these instances I made sure I cleaned out my cookies and set up the site as a trusted site. I put in several tickets with my host and they basically said it was a mediawiki issue and I should take it up with y'all. I'm still under the belief that this is a PHP and SQL issue, but I thought it best to rule this one out first.


PHP 4.3.11 (They also have an undisclosed version of 5 installed.)

MySQL version 4.1.22-standard

MediaWiki version 1.5, 1.6, 1.7, 1.10

-12.46.128.66 18:55, 14 August 2007 (UTC)


[edit] Special:Search checkboxes

I have looked extensively through the code, but cannot figure out how to acheive what I want to do. I want Special:Search and search results to not display all the namespaces at the bottom, only some of them. All the talks, for example, I wish to do away with, as they are unused.

Thanks. Smaug 22:14, 12 August 2007 (UTC)

I think I found where it is, but I still dunno how to do it. In includes/SpecialSearch.php, there is a function powerSearchBox which I beleive to be the checkbox creator. I do not have the necessary php skills, yet, to change it without messing it up. How might I go about doing this? Thanks. Smaug 01:44, 14 August 2007 (UTC)
Actually, I think you need to do it where ever searchableNamespaces() is set. Somehow limit / change what that is, then all the other things will follow on automatically from there. --Dr DBW 02:24, 15 August 2007 (UTC)
Thanks for the idea. I can't find it in LocalSettings.php or includes/DefaultSettings.php. I'm going to keep looking, but do you have any idea where it might be? Smaug 17:23, 15 August 2007 (UTC)
No idea what so ever. --Dr DBW 03:44, 27 August 2007 (UTC)

[edit] wfmsgext

What is it and when was it introduced? Thanks in advance, --Flominator 13:03, 15 August 2007 (UTC)

I don't know, but what prompted this question of yours? Smaug 17:56, 15 August 2007 (UTC)
See http://svn.wikimedia.org/doc/GlobalFunctions_8php.html#172b5098f951487946bb60cd983b9d1b - don't see any "implemented in" documentation. Standard message parser - it's used all over the place to parse out system messages. Tim LaquaTalk | contribs@16:39, 19 August 2007 (UTC)

[edit] Disabling uploads when there are images

Please see Manual talk:$wgEnableUploads#Disabling when there are images. Thank you, SPQRobin 13:56, 15 August 2007 (UTC)

[edit] Can anyone with a Email edit a page even if its somebody elses page? Bug?

I was wondering about this webpage. I sign in and it looks to me I can edit anything on this page..Is this a bug? http://www.wowwiki.com/Server:Misha_US Alliance side says I can edit, Horde says I cant. I also have a edit button for the whole page. Is this a bug?

It's not a bug. That's how wikis work. You can edit anything that's not protected (Unless they have some crazy permissions extension). I don't believe WoWWiki runs any non-standard permissions. So that's intended - that's how they have it set up. Tim LaquaTalk | contribs@02:21, 20 August 2007 (UTC)

[edit] Categories Not listing Sub Categories

I have a wiki running up at survivalwiki.org and my category page has recently stop listing subcategories. I believe It may be a database issue as this may have happenned around the time I attempted to install the wikiBB extension, which is not working. However I have attempted removal and still have this issue. I am wondering if this is something anyone else has experienced and if anyone has any suggestions for a possible fix.

-BiTMAP- -68.150.34.225 00:47, 16 August 2007 (UTC)

[edit] cannot login with Sysop account

MediaWiki version: 1.10.1

Enviroment:

   * PHP 5.2.3 installed
   * Found database drivers for: MySQL
   * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
   * Have XML / Latin1-UTF-8 conversion support.
   * Session save path (/tmp) appears to be valid.
   * PHP's memory_limit is 128M.
   * APC installed
   * Found GNU diff3: /usr/bin/diff3.
   * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
   * Installation directory: /usr/local/apache2/htdocs/wiki
   * Script URI path: /wiki
   * Environment checked. You can install MediaWiki.

Issue:

 1. "superuser account" is used in installation. 
    But it has to run Installation twice to create 
    LocalSettings.php file. And there is not "?>" 
    at the end of LocalSettings.php.
 2. Sysop account has been created, but it cannot be used to login.

-202.98.13.181 04:04, 16 August 2007 (UTC)

The missing ?> is fine; we no longer place it at the end of most files, since it causes some issues when users come to edit their configurations
What does "cannot be used to login" mean - what happens? Error message? robchurch | talk 01:13, 20 August 2007 (UTC)

[edit] Using MediaWiki source code in commercial software

Hi
If we use MediaWiki source code for creating a part of some commercial non-open-sourced software (it's not based on MediaWiki, just little part of it) - do we have to make our software GNU-licensed?
Thank you,
best regards,
-Peterpen 07:09, 16 August 2007 (UTC)

Carefully ask the opinion of a qualified legal specialist on copyright law. MediaWiki code is protected by the GPL, as far as I recall. However, IANAL and TINLA, but here is an opinion: if you use a seperate module accessed through an open API of the gpl code, you would only need to provide access to that specific module's source code. --Grymwulf 11:06, 17 August 2007 (UTC)
I think that if you distribute code Licensed under the GPL you must include a copy of the source code and the GPL with the software. You must make it very easy for people to have access to the sourec code

[edit] Missing question

Err. May be a daft question, but what happened to the question I asked the other day (substring search question) - it seems to have disappeared - I'd just updated it to explain in more depth, but it's disapeared overnight? -Nomis35 08:09, 16 August 2007 (UTC)

-62.159.112.104 10:56, 16 August 2007 (