Hello, I've looked in handbook and I've googled about and have not been
able to find out what I can do to finish installing version 1.6.6. (with
PHP-5.0.4, MySQL-4.1.12, and Apache-2.0.52 ).
When running through the initial configuration page
(localhost/wiki/config/index.php), it proceeds alright until it gets to
"Initialising "MediaWiki" Namespace..." whereupon it provides:
(dbname) has a problem
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Can't contact the database server: Unknown error (localhost))
Perhaps someone can point me in the right direction to address my problem.
Thanks,
Danny
System:
Linux localhost.localdomain 2.6.12-12mdk #1 i686 AMD Sempron(tm)
Processor 3500+ unknown GNU/Linux
============= OUTPUT from /config/index.php ==============
MediaWiki 1.6.6 Installation
* Don't forget security updates! Keep an eye on the low-traffic
release announcements mailing list.
Checking environment...
Please include all of the lines below when reporting installation problems.
* PHP 5.0.4 installed
* PHP server API is apache2handler; ok, using pretty URLs
(index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP's memory_limit is 32M. If this is too low, installation may
fail! * Have zlib support; enabling output compression.
* Neither Turck MMCache nor eAccelerator are installed, can't use
object caching functions
* Found GNU diff3: /usr/bin/diff3.
* Found ImageMagick: /usr/bin/convert; image thumbnailing will be
enabled if you enable uploads.
* Installation directory: /var/www/html/wiki
* Script URI path: /wiki
* Environment checked. You can install MediaWiki.
Generating configuration file...
* Database type: mysql
* Attempting to connect to database server as root...success.
* Connected to 4.1.12
* Database wikipizza exists
* There are already MediaWiki tables in this database. Checking if
updates are needed...
* Granting user permissions...
...hitcounter table already exists.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...logging table already exists.
...validate table already exists.
...user_newtalk table already exists.
...transcache table already exists.
...trackbacks table already exists.
...externallinks table already exists.
...job table already exists.
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...have rc_type field in recentchanges table.
...have rc_ip field in recentchanges table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...have user_real_name field in user table.
...have user_token field in user table.
...have user_email_token field in user table.
...have user_registration field in user table.
...have log_params field in logging table.
...have ar_rev_id field in archive table.
...have ar_text_id field in archive table.
...have page_len field in page table.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have img_media_type field in image table.
...have val_ip field in validate table.
...have ss_total_pages field in site_stats table.
...have iw_trans field in interwiki table.
...have ipb_range_start field in ipblocks table.
...have ss_images field in site_stats table.
...already have interwiki table
...indexes seem up to 20031107 standards
Already have pagelinks; skipping old links table updates.
...image primary key already set.
The watchlist table is already set up for email notification.
...watchlist talk page rows already present
...user table does not contain old email authentication field.
Logging table has correct title encoding.
...page table already exists.
revision timestamp indexes already up to 2005-03-13
...rev_text_id already in place.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...already have pagelinks table.
...templatelinks table already exists
No img_type field in image table; Good.
Already have unique user_name index.
...user_groups table already exists.
...user_groups is in current format.
...wl_notificationtimestamp is already nullable.
...timestamp key on logging already exists.
Setting page_random to a random value on rows where it equals 0...changed
0 rows
Initialising "MediaWiki" namespace...
Pizza has a problem
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Can't contact the database server: Unknown error (localhost))
>Ideally I would like the style drop down to say Header 1, 2, 3, and then
>show in the editor with the font big and bold, but then when you save it
>have it get translated into the ==,===, or ===.
>Suggestions? Is this even possible?
Have a look at
http://meta.wikimedia.org/wiki/FCKeditor_and_HTML::WikiConverter
and
http://wiki.fckeditor.net/WikiSandBox?action=edit&editor=gui
where you can switch between gui edit mode and text edit mode.
Theoretically, one could add this feature to the mediawiki software. One could
even implement such a back parser as an extension as the necessary hooks
are already in place. However, I will not go in this direction.
Markus
----
http://meta.wikimedia.org/wiki/FCKeditor
Sorry for the fractured sentence. I meant we previously were able to
upgrade an earlier version of this database on a test machine.
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jeff Lane
Sent: Tuesday, May 30, 2006 4:41 PM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Database error when upgrading
We're having some trouble running an upgrade on one of our 1.4.12
servers to 1.6.6. We previously were able to upgrade on this machine on
test machine, but now when we try to run the upgrade we get this error:
Cleaning up broken links for namespace -1... ok
Cleaning up broken links for namespace 1... A database error has
occurred
Query: UPDATE `mw_pagelinks`
SET pl_namespace=1,
pl_title=TRIM(LEADING 'Talk:' FROM
pl_title)
WHERE pl_namespace=0
AND pl_title LIKE 'Talk:%'
Function: do_pagelinks_namespace
Error: 1062 Duplicate entry '5850-1-Main_Page' for key 1
(localhost)
Backtrace:
GlobalFunctions.php line 602 calls wfbacktrace()
Database.php line 473 calls wfdebugdiebacktrace()
Database.php line 419 calls database::reportqueryerror()
updaters.inc line 567 calls database::query()
updaters.inc line 544 calls do_pagelinks_namespace()
updaters.inc line 804 calls do_pagelinks_update()
update.php line 67 calls do_all_updates()
<!-- Served by devtemp in 358.02 secs. -->
real 5m58.350s
user 0m0.534s
sys 0m0.986s
Next we tried going from 1.4.12 to 1.5.8, to see if we could do an
incremental upgrade, and we get the same error:
Cleaning up broken links for namespace 1... A database error has
occurred
Query: UPDATE `mw_pagelinks`
SET pl_namespace=1,
pl_title=TRIM(LEADING 'Talk:' FROM
pl_title)
WHERE pl_namespace=0
AND pl_title LIKE 'Talk:%'
Function: do_pagelinks_namespace
Error: 1062 Duplicate entry '5850-1-Main_Page' for key 1
(localhost)
Backtrace:
GlobalFunctions.php line 450 calls wfbacktrace()
Database.php line 397 calls wfdebugdiebacktrace()
Database.php line 347 calls database::reportqueryerror()
updaters.inc line 532 calls database::query()
updaters.inc line 509 calls do_pagelinks_namespace()
updaters.inc line 689 calls do_pagelinks_update()
update.php line 31 calls do_all_updates()
Any ideas? The site seems to be functioning fine on 1.4.12 at this
point.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
We're having some trouble running an upgrade on one of our 1.4.12
servers to 1.6.6. We previously were able to upgrade on this machine on
test machine, but now when we try to run the upgrade we get this error:
Cleaning up broken links for namespace -1... ok
Cleaning up broken links for namespace 1... A database error has
occurred
Query: UPDATE `mw_pagelinks`
SET pl_namespace=1,
pl_title=TRIM(LEADING 'Talk:' FROM
pl_title)
WHERE pl_namespace=0
AND pl_title LIKE 'Talk:%'
Function: do_pagelinks_namespace
Error: 1062 Duplicate entry '5850-1-Main_Page' for key 1
(localhost)
Backtrace:
GlobalFunctions.php line 602 calls wfbacktrace()
Database.php line 473 calls wfdebugdiebacktrace()
Database.php line 419 calls database::reportqueryerror()
updaters.inc line 567 calls database::query()
updaters.inc line 544 calls do_pagelinks_namespace()
updaters.inc line 804 calls do_pagelinks_update()
update.php line 67 calls do_all_updates()
<!-- Served by devtemp in 358.02 secs. -->
real 5m58.350s
user 0m0.534s
sys 0m0.986s
Next we tried going from 1.4.12 to 1.5.8, to see if we could do an
incremental upgrade, and we get the same error:
Cleaning up broken links for namespace 1... A database error has
occurred
Query: UPDATE `mw_pagelinks`
SET pl_namespace=1,
pl_title=TRIM(LEADING 'Talk:' FROM
pl_title)
WHERE pl_namespace=0
AND pl_title LIKE 'Talk:%'
Function: do_pagelinks_namespace
Error: 1062 Duplicate entry '5850-1-Main_Page' for key 1
(localhost)
Backtrace:
GlobalFunctions.php line 450 calls wfbacktrace()
Database.php line 397 calls wfdebugdiebacktrace()
Database.php line 347 calls database::reportqueryerror()
updaters.inc line 532 calls database::query()
updaters.inc line 509 calls do_pagelinks_namespace()
updaters.inc line 689 calls do_pagelinks_update()
update.php line 31 calls do_all_updates()
Any ideas? The site seems to be functioning fine on 1.4.12 at this
point.
Hi,
I'm trying to setup Wiki 1.6.X to use email notification.
In my LocalSettings file:
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "wiki(a)castortech.com";
$wgPasswordSender = "wiki(a)castortech.com";
$wgSMTP is giving me problems.
I checked: http://www.mediawiki.org/wiki/Help:%24wgSMTP but I'm not sure
how to set it up.
Do I need that PEAR thing?
I use an external SMTP server with my backup app and I only had to tell
it the name and port of the server.
Do I only need host and port or everything? And Must I keep the "" where
they are?
$wgSMTP = array(
'host' => "localhost",
'IDHost' => "domain for MessageID",
'port' => 25,
'auth' => false,
'username' => "my_user_name",
'password' => "my_password"
);
Thanks!
Simon
I wanted to create an extension that presents users with a form to
create a page, or add to a page, based on a template. For instance,
let's say i had a template that looked like this:
---- Wikipage: 'Template:Exampletemp' ----
{{{precontent}}}
=={{{title}}}==
{{{content}}}
---- End ----
I want to write an extension where users go to [[Special:Form/
Exampletemp]] and get a form like this:
Page name: _________
Precontent: <textarea>
Title: ______
Content: <textarea>
That, when filled out, should create a page following the template -
same as using {{subst:Exampletemp}} would have, but easier for the
end user - and smart, creating the form from the template's content.
Does anybody think they could create something like this? How hard
would it be? What concessions would have to be made, ETC? Would make
lots of things easier for the end-users - both newbies looking to
create a page following a template, and for existing users trying to
make sure a crop of pages follow an agreed-upon format.
I am trying to update from 1.5.7 to 1.6.6 and after running update.php I am
getting the following message
A database error has occurred
Query: INSERT INTO `en_text` (old_id,old_text,old_flags) VALUES
(NULL,'[[$1]] moved to [[$2]]','utf-8')
Function: Revision::insertOn
Error: 1048 Column 'old_id' cannot be null (localhost)
I know zero about mysql and can find nothing out there to help me.
Any ideas please
Laurie Lewis
Can you tell me how to fix :
Fatal error: Call to undefined function:
wfspecialuserlogin() in /var/www/.../SpecialPage.php
on line 415
Thanks,
Jeff
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hello all!
I am currently making few markup extensions, and I noticed a problem:
Let's say my extension tries to type the same word but in pink. Well, what I
want is something like that:
Writing: "<pinky>Bla Bla [[something]]</pinky>"
Will give me "Bla Bla SOMETHING" where something is a link.
What I get instead is "Bla Bla [[something]]" with no link.
I should have seen it happening, but I still don't have a clue how to do it
otherwise.
I can use a replace function that makes "[[" a "<a href=...>" and "]]" a
"</a>", but it won't do well. All of the links will be blue (even if no
content is inside) and it won't handle well with typing mistakes as
"[[something]". And it's barbaric.
I just want to keep the wiki links as they are, just like the
"<big>[[something]]</big>" does. Can I imitate it somehow?
(main reason for me to do all this is to write an extension that replaces
all specific words within a text with wiki-linked expressions. i.e.:
"<makelinks>bla bla something bla bla</makelinks>" will return something
equal to "bla bla [[something]] bla bla".)
Any core functions I can include to do this?
Glad to hear any ideas!
Peleg.