Extension talk:CentralNotice

Error when DB_table names are prefixed
MySQL a renvoyé l’erreur « 1109 : Unknown table 'cn_notices' in where clause

when the tables are prefixed with fr_ as are all the tables in my wiki. FrViPofm 17:16, 7 March 2009 (UTC)

Non-Wikimedia use?
Is this extension intended for non-Wikimedia use? It appears to ignore $wgDBprefix and to have the Wikimedia project names hard-coded. (Assuming that the instruction 2. Run central-auth.sql is a typo for 2. Run CentralNotice.sql) --MoreThings 19:34, 19 April 2009 (UTC)

how do you find out?
how do you find out if you have a "periodic scheduler (cron)"? Bud0011 08:25, 20 June 2009 (UTC)
 * You would probably need to ask your hosting provider. More info can be found at cron. Kaldari 17:11, 8 June 2010 (UTC)

um...where is this function?
So, i'm trying this extension out, and i get this error:


 * Fatal error: Call to undefined method SiteConfiguration::loadFullData in $IP/extensions/CentralNotice/SpecialNoticeText.php on line 213

but problem is, there's no "loadFullData" in any of the files .... is there? Bud0011 02:14, 11 August 2009 (UTC)

The same error:

 * Fatal error: Call to undefined method SiteConfiguration::loadFullData in /var/wwwpub/extensions/CentralNotice/SpecialNoticeText.php on line 213

What shall i do with it ? --Lugerr 11:20, 17 September 2009 (UTC)
 * For now, just disable the extension.... i guess....? Bud0011 21:17, 19 September 2009 (UTC)

loadFullData you find in the new Version von WM. 1.16. You can download that, and copy and paste it in the same .php

unable to make it work "(
when i write Run php maintenance/sql.php CentralNotice.sql in putty (in my wiki dir) it says '''X-Powered-By: PHP/5.2.14 Content-type: text/html

Warning: fopen(CentralNotice.sql) [function.fopen]: failed to open stream: No such file or directory in /home2/uetblogs/public_html/wiki/maintenance/sql.php on line 35

Unable to open input file''' and when i goto Special:CentralNotice it says, A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "CentralNotice::listNotices". Database returned error "1146: Table 'uetblogs_mdw1.mdw_cn_notices' doesn't exist (localhost)". i am a not a pro and wanted to have run CentralNotice active on my wiki. please help me.. whats wrong i am doing. Thanks --Adilch 09:28, 15 January 2011 (UTC)


 * I've changed the installation instructions so that the path should be correct. Give it another try. —Emufarmers(T 21:09, 15 January 2011 (UTC)
 * Thanks for simplifing things.. but i am still stuck... when i type "extensions/CentralNotice/CentralNotice.sql" it says "-bash: extensions/CentralNotice/CentralNotice.sql: Permission denied" where as Extensions dir already have 755 permission :( now what sir?? --Adilch 00:12, 16 January 2011 (UTC)


 * What you need to type is
 * php maintenance/sql.php extensions/CentralNotice/CentralNotice.sql
 * —Emufarmers(T 05:43, 16 January 2011 (UTC)
 * i wrote the same what you suggested, now it says,

Warning: fopen(extensions/CentralNotice/CentralNotice.sql) [function.fopen]: failed to open stream: No such file or directory in /home2/uetblogs/public_html/wiki/maintenance/sql.php on line 35

Unable to open input file --Adilch 21:53, 16 January 2011 (UTC)


 * You need to be running it from the wiki root (/home2/uetblogs/public_html/wiki/). —Emufarmers(T 07:29, 17 January 2011 (UTC)

How To Make Campaigns Appear?
Hi, I recently installed this extension, and I know it works because I've managed to setup site-wide banners once... but only once. As far as I understand, you make a banner, then set up a campaign (start time, end time, etc.), assign a banner to it, and then enable it.

I've set $wgCentralDBname = 'my database name, as it appears in phpmyadmin'; $wgCentralPagePath = 'http://localhost/my wiki's name/index.php'; $wgNoticeProject = 'my wiki's name'; $wgNoticeProjects = array(	'my wiki's name', );

It's a vanilla version of mediawiki, with a localhost setup, nothing else added, just this extension, for the purpose of testing it out for my main wiki, but so far I haven't made much progress with it, and it seems like a really great extension. Can anyone help me figure out where I'm going wrong?