I installede Treeview4.php in the directory indicated and edited the
LocalSetting.php to include the following:
###############################################################
##added by jwf 02/25/08 to install Treeiew4
include("$IP/extensions/Treeview4.php");
$wgTreeViewImages['plus'] = "Plus.gif";
$wgTreeViewImages['minus'] = "Minus.gif";
$wgTreeViewImages['opened'] = "Folder_opn_sml_yel.gif";
$wgTreeViewImages['closed'] = "Folder_sml_yel.gif";
$wgTreeViewImages['doc'] = "Doc-icon.gif";
$wgTreeViewImages['spacer'] = "Blank.gif";
Now I get this message:
Warning: Cannot modify header information - headers already sent by
(output started at /var/lib/mediawiki/extensions/Treeview4.php:246)
in /usr/share/mediawiki/includes/WebResponse.php on line 10
This seems to happen with a lot of extensions and only goes away when I
remove the extension. The install is to the letter what is supposed to
be done per the author.
Can anyone tell me what the problem is?
Oh yeh: the extension does not work either.
Thanks!!\
frosty
Hi
I would like to set a background image for a table in wikisyntax
(without changing CSS).
I tried:
{| style="background-image:url(http://mydomain.tld/myimage.jpg)"
| Data1
| Data2
|}
but it doesn't work. When i look at the generated html code there is no
attribute generated for <table>. Other attributes (e.g.
background-color:yellow) work perfectly. As soon as i put a
background-image:url(pathtoimage) statement, all other attributes disapear.
Whats wrong here?
Greetings
Ponte
Hi all!
I'm trying to run cleanupSpam.php in MediaWiki-1.11.1. However, I'm
getting some errors:
<<<<<<<<<<<<<<
wiki_osdc@hush:~/htdocs/maintenance$ /usr/local/apache/bin/php
cleanupSpam.php "authenticsteroids.com"
Found 1 articles containing authenticsteroids.com
Index.php ...PHP Fatal error: Call to private method
LinkFilter::makeregex() from context '' in
/usr/local/apache-php/home/wiki.osdc.org.il/htdocs/maintenance/cleanupSpam.php
on line 17
Fatal error: Call to private method LinkFilter::makeregex() from
context '' in /usr/local/apache-php/home/wiki.osdc.org.il/htdocs/maintenance/cleanupSpam.php
on line 17
>>>>>>>>>>>>>>
Here is the Special:Version:
http://wiki.osdc.org.il/index.php/Special:Version
Any help would be appreciated.
Regards,
Shlomi Fish
------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Electrical Engineering studies. In the Technion. Been there. Done
that. Forgot a lot. Remember too much.
List Members,
let me try to explain what I'm trying to set up. I have two servers.
Let's call them master.example and slave.example. I've set up MySQL on
both, and have replication working from master to slave. Slave is also
running MySQL with --read-only.
I've installed MediaWiki on master and have an rsync cron-job syncing
the installation to slave. In other words, the MediaWiki on master and
slave are *exactly* the same, including LocalSettings.php.
My goal is to have master using it's own database for both reading and
writing and slave to use it's own database for reading and masters
database for writing. I've set up $wgDBservers like this:
$wgDBservers = array(
array(
'host' => 'master.example',
'dbname' => 'wiki',
'user' => 'wiki',
'password' => '********',
'type' => "mysql",
'load' => 0,
),
array(
'host' => 'localhost',
'dbname' => 'wiki',
'user' => 'wiki',
'password' => '********',
'type' => "mysql",
'load' => 1,
),
);
From the rather limited documentation available about $wgDBservers,
it's my understanding that this should result in MediaWiki reading from
the MySQL server at localhost and writing to the MySQL server at
master.example.
I have also disabled page counters by setting $wgDisableCounters = true;
The problem is, if I stop MySQL on master and reload a page on slave, I
get the following error message:
Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.
(Can't contact the database server: Unknown error (master.example))
So my question is; why does a simple page load on slave trigger an
attempt to contact the database on master?
In case it's relevant: MediaWiki 1.11.1 on Debian with MySQL 5.0.32.
Bob
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
misunderstanding!!
Platonides wrote:
| Uwe Baumbach wrote:
|> > Hi there,
|> >
|> > is there a ready to use way to prevent file upload without an
assign licence?
|> >
|> > We do not want preload some "common" licence but offer a blank
choice and force an input (selection from the list).
|
| Well, you can provide a license-dropbox like the one used at commons:
| http://commons.wikimedia.org/wiki/Image:Commons-upload-screenshot.gif
We do provide such a box with our licenses, but we don´t want to present
as a default one of thoses licenses.
Users should make their choice "consciously". But a lot of them leave
the box unchanged, that means, they do not choose any of presented licences.
My/our goal ist to "force" them to choose one licence, not accepting an
empty dropbox line.
And this, if possible, without changing the original software code.
So I am looking for an configuration option or, if there isn´t any (so I
suspect) a hook to check the (non-)choice and reject this, leading user
back to the upload form (with an explanatory error message).
|> > Can we avoid source changes?
Only if nothing helps - I would change SpecialUpload.php ...
I hope this made clearer what I meant.
Thank you!
Uwe (Baumbach)
U.Baumbach(a)web.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHyt7BFEbayCH8zXkRAhtJAJ9xdyXZg8k4mI+uirqEnI+tlBHC6gCg3LCD
Wux3DO696id9Xg7LU0J9zS4=
=sCUd
-----END PGP SIGNATURE-----