Extension talk:CMS-WIKI-like
Problem
editIs there somebody who has put this plugin to work ? I have made everything as in description, I was expecting to open "Main Page" for anonymous user normal as usualy, but It shows me "You have no rights, Please Log in"
Same problem
editYes, I face the same problem. and before login (in the page "Special:Userlogin"), I see
if (!defined('MEDIAWIKI')) die(); Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10
After login, I see
if (!defined('MEDIAWIKI')) die(); Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\User.php on line 1942 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\User.php on line 1945 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\User.php on line 1951 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\mediawiki-1.11.0\extensions\CMS-Wiki-like.php:2) in D:\AppServ\www\mediawiki-1.11.0\includes\WebResponse.php on line 10
I don't do following:
- edit MediaWiki:Nosuchaction to Prohibited action.
- edit MediaWiki:Nosuchactiontext to You don't have access of this action be sure that you are login.
- In fact, I don't know what I have to do on the steps above.
My setting is following:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['createaccount'] = false;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['sysop']['createaccount'] = true;
$wgRegexpGroupPermissions['*']['read'] = array('Main Page', '%E9%A6%96%E9%A0%81', 'MediaWiki:.*\.css', 'MediaWiki:.*\.js', 'Image:.*', 'Catégorie:.*', 'Special:Userlogin', 'Special:Search', 'Wiki:.*', 'Discuter:Wiki:.*');
//"%E9%A6%96%E9%A0%81" is mean "main page" in Chinese (Zh-tw).
$wgRegexpGroupPermissions['*']['viewmenu'] = array('Wiki:.*', 'Discuter:Wiki:.*');
$wgRegexpGroupPermissions['*']['edit'] = array('Wiki:.*', 'Discuter:Wiki:.*');
$wgRegexpGroupPermissions['*']['history'] = array();
$wgRegexpGroupPermissions['user']['read'] = array('.*');
$wgRegexpGroupPermissions['user']['viewmenu'] = array('.*');
$wgRegexpGroupPermissions['user']['edit'] = array('.*');
$wgRegexpGroupPermissions['user']['move'] = array('.*');
$wgRegexpGroupPermissions['user']['history'] = array('.*');
$wgAddToHideMenu = "<style type=\"text/css\">\r\n\/*<![CDATA[*\/\r\n.editor, .editsection, #p-cactions, #p-search, #p-tb { display:none; }\r\n\/*]]>*\/\r\n</style>\r\n";
include_once('extensions/CMS-Wiki-like.php');
My system is following:
- MediaWiki: 1.11.0
- Win XP
- The AppServ Open Project - 2.5.7 for Windows
- Apache Web Server Version 2.2.3
- PHP Script Language Version 5.1.6
- MySQL Database Version 5.0.24a
- phpMyAdmin Database Manager Version 2.9.0.2
Could you give me a hand?--Roc michael 01:09, 26 April 2008 (UTC)
Need help at this extension
editI have moved if (!defined('MEDIAWIKI')) die(); before $wgExtensionCredits['other'][] = array( . My php script looks like this now :
<?php /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author sbrunner * */ if (!defined('MEDIAWIKI')) die();sdfghdfg $wgExtensionCredits['other'][] = array( ... ...
So I don't have any more error you mentioned above, but I can't still configure my Localsetting.php to allow anonymous user to view only the 'Main Page'. Is there Anybody who has put it to work properly ?
I will appreciate any help, thanks in advice --> popek38 10:50, 28 April 2008 (UTC)