Dear All,
I now have a working MediaWiki installation and have started customising it for our site. However, the developer docs seem somewhat sparse and there are a few changes I need to make. Not to be deterred I decided to have a bit of a hack around, and grepped through the source code for the items of interest. This yielded two possible files in which I could make changes:
{mediawikidir}/languages/Language.php {mediawikidir}/templates/xhtml_slim.pt
So, anyway I tried changing "Main page" to something else ("Welcome" as it goes), in both places, refreshed the front page in my browser and.... well, basically nothing appeared to happen. I also tried to change the left-hand menu text (Community portal) etc with the same result.
Obviously I'm missing something, but I'd be extremely grateful if somebody could tell me what that is.
Many thanks, Bart
Howdy, I'm trying to install mediawiki 1.3.2 and I'm getting the following error report. Can someone tell me what I'm doing wrong? Thanks Rich
a.. PHP 4.3.8: ok a.. Warning: PHP's register_globals option is enabled. MediaWiki will work correctly, but this setting increases your exposure to potential security vulnerabilities in PHP-based software running on your server. You should disable it if you are able. a.. PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) a.. Have XML / Latin1-UTF-8 conversion support. a.. PHP's memory_limit is 16M. If this is too low, installation may fail! Attempting to raise limit to 20M... ok. a.. Have zlib support; enabling output compression. a.. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. a.. Installation directory: a.. Script URI path: /wiki Warning: Unknown(DefaultSettings.php): failed to open stream: No such file or directory in /opt2/home3/rd6714/public_html/wiki/config/index.php(373) : eval()'d code on line 8
Warning: (null)(): Failed opening 'DefaultSettings.php' for inclusion (include_path='.::/includes:/languages') in /opt2/home3/rd6714/public_html/wiki/config/index.php(373) : eval()'d code on line 8
Notice: Constant already defined in ./includes/Namespace.php on line 8
Notice: Constant already defined in ./includes/Namespace.php on line 9
Notice: Constant already defined in ./includes/Namespace.php on line 12
Notice: Constant already defined in ./includes/Namespace.php on line 13
Notice: Constant already defined in ./includes/Namespace.php on line 14
Notice: Constant already defined in ./includes/Namespace.php on line 15
Notice: Constant already defined in ./includes/Namespace.php on line 16
Notice: Constant already defined in ./includes/Namespace.php on line 17
Notice: Constant already defined in ./includes/Namespace.php on line 18
Notice: Constant already defined in ./includes/Namespace.php on line 19
Notice: Constant already defined in ./includes/Namespace.php on line 20
Notice: Constant already defined in ./includes/Namespace.php on line 21
Notice: Constant already defined in ./includes/Namespace.php on line 22
Notice: Constant already defined in ./includes/Namespace.php on line 23
Notice: Constant already defined in ./includes/Namespace.php on line 24
Notice: Constant already defined in ./includes/Namespace.php on line 25
Notice: Constant already defined in ./includes/Namespace.php on line 26
Notice: Constant already defined in ./includes/Namespace.php on line 27
Notice: Constant already defined in ./includes/Namespace.php on line 28
Notice: Constant already defined in ./includes/Namespace.php on line 29
Fatal error: Cannot redeclare
poster wrote:
Warning: Unknown(DefaultSettings.php): failed to open stream: No such file or directory in /opt2/home3/rd6714/public_html/wiki/config/index.php(373) : eval()'d code on line 8
Can you confirm that the includes subdirectory is present, complete, and contains DefaultSettings.php?
-- brion vibber (brion @ pobox.com)
Can you confirm that the includes subdirectory is present, >complete, and
contains DefaultSettings.php?
As far as I can tell everything is there including DefaultSettings.php.
----- Original Message ----- From: "Brion Vibber" brion@pobox.com To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Thursday, September 02, 2004 3:55 PM Subject: Re: [Mediawiki-l] mediawiki Installation trouble
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Howdy, I posted this yesterday and I still havent figured out the problem. I stayed up half the night trying to figure it out, I'm still stumped. Can someone please help? I've pasted the error messages below. Thanks Rich Checking environment... a.. PHP 4.3.8: ok b.. Warning: PHP's register_globals option is enabled. MediaWiki will work correctly, but this setting increases your exposure to potential security vulnerabilities in PHP-based software running on your server. You should disable it if you are able. c.. PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) d.. Have XML / Latin1-UTF-8 conversion support. e.. PHP's memory_limit is 16M. If this is too low, installation may fail! Attempting to raise limit to 20M... ok. f.. Have zlib support; enabling output compression. g.. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. h.. Installation directory: i.. Script URI path: /wiki Warning: Unknown(DefaultSettings.php): failed to open stream: No such file or directory in /opt2/home3/rd6714/public_html/wiki/config/index.php(373) : eval()'d code on line 8
Warning: (null)(): Failed opening 'DefaultSettings.php' for inclusion (include_path='.::/includes:/languages') in /opt2/home3/rd6714/public_html/wiki/config/index.php(373) : eval()'d code on line 8
Notice: Constant already defined in ./includes/Namespace.php on line 8
Notice: Constant already defined in ./includes/Namespace.php on line 9
Notice: Constant already defined in ./includes/Namespace.php on line 12
Notice: Constant already defined in ./includes/Namespace.php on line 13
Notice: Constant already defined in ./includes/Namespace.php on line 14
Notice: Constant already defined in ./includes/Namespace.php on line 15
Notice: Constant already defined in ./includes/Namespace.php on line 16
Notice: Constant already defined in ./includes/Namespace.php on line 17
Notice: Constant already defined in ./includes/Namespace.php on line 18
Notice: Constant already defined in ./includes/Namespace.php on line 19
Notice: Constant already defined in ./includes/Namespace.php on line 20
Notice: Constant already defined in ./includes/Namespace.php on line 21
Notice: Constant already defined in ./includes/Namespace.php on line 22
Notice: Constant already defined in ./includes/Namespace.php on line 23
Notice: Constant already defined in ./includes/Namespace.php on line 24
Notice: Constant already defined in ./includes/Namespace.php on line 25
Notice: Constant already defined in ./includes/Namespace.php on line 26
Notice: Constant already defined in ./includes/Namespace.php on line 27
Notice: Constant already defined in ./includes/Namespace.php on line 28
Notice: Constant already defined in ./includes/Namespace.php on line 29
Fatal error: Cannot redeclare class namespace in ./includes/Namespace.php on line 53
Bart Read wrote:
So, anyway I tried changing "Main page" to something else ("Welcome" as it goes), in both places, refreshed the front page in my browser and.... well, basically nothing appeared to happen. I also tried to change the left-hand menu text (Community portal) etc with the same result.
http://meta.wikimedia.org/wiki/MediaWiki_namespace
-- brion vibber (brion @ pobox.com)
Thanks Brion, that should cover it. Bart
Brion Vibber wrote:
Bart Read wrote:
So, anyway I tried changing "Main page" to something else ("Welcome" as it goes), in both places, refreshed the front page in my browser and.... well, basically nothing appeared to happen. I also tried to change the left-hand menu text (Community portal) etc with the same result.
http://meta.wikimedia.org/wiki/MediaWiki_namespace
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Dear Brion (and everyone else),
Well, I finally got around to reading that document and trying it's suggestions. I went to http://bart/cvc/index.php/Mediawiki:fromwikipedia (obviously replacing the sitename as appropriate) and found myself at a read-only page (logged in as a sysop) with "From CVC" on it (CVC is my site name). I then went to http://bart/cvc/index.php/MediaWiki:All_messages and got a message saying "(There is currently no text in this page)". Undeterred I fired up MySQLCC, knowing that the data is there somewhere in the database, had a quick scan through the tables, and took a look at "cur" because its function seemed not so obvious from its name. Seemed to find the main page title (cur_title=Mainpage) and executed the following SQL:
UPDATE cur SET cur_text="Welcome" WHERE cur_id = 304;
This updated the row correctly, so feeling encouraged I decided to refresh the main page of my wiki in my browser (Firefox 0.9.3), and guess what happened? Yep, that's right, nothing. No change whatsoever.
Could somebody please tell me what I'm doing wrong? (Obviously it's something.) I'm spending all my time trying to muck around making minor customisations when really what I want to be doing is filling my site with content. I'd be extremely grateful for any help received.
Many thanks, Bart Read
Bart Read wrote:
Thanks Brion, that should cover it. Bart
Brion Vibber wrote:
Bart Read wrote:
So, anyway I tried changing "Main page" to something else ("Welcome" as it goes), in both places, refreshed the front page in my browser and.... well, basically nothing appeared to happen. I also tried to change the left-hand menu text (Community portal) etc with the same result.
http://meta.wikimedia.org/wiki/MediaWiki_namespace
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Bart Read wrote:
Well, I finally got around to reading that document and trying it's suggestions. I went to http://bart/cvc/index.php/Mediawiki:fromwikipedia (obviously replacing the sitename as appropriate) and found myself at a read-only page (logged in as a sysop) with "From CVC" on it (CVC is my site name).
If you're logged in as a sysop you should be able to edit that page. Can you check the cur_rights field, and also check your user's user_rights field? Might be something weird going on.
I then went to http://bart/cvc/index.php/MediaWiki:All_messages and got a message saying "(There is currently no text in this page)".
Try http://bart/cvc/index.php/Special:Allmessages
This updated the row correctly, so feeling encouraged I decided to refresh the main page of my wiki in my browser (Firefox 0.9.3), and guess what happened? Yep, that's right, nothing. No change whatsoever.
The messages are cached. Delete the data in the objectcache table to force it to reload them (this would have been done automatically when editing through the wiki).
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org