Extension talk:BizzWiki/resolved

Moving a Page while a sysop (RESOLVED)
&#91;user:Bbutler&#124;Brian Butler] Attempting to move a page while logged in a sysop results in the following
 * Not logged in
 * You must be a registered user and logged in to move a page.
 * Return to Main Page.

(and NS_SPECIAL related error message that I can't read)

I also tried this after I Unlocked Move Permissions (in the Protect tab) and Selected each of the available options - no luck, same problem

(same site as below - I've created a mediawiki account to facilitate communication)

Resolution
Thanks again for your help. I have fixed Special:Movepage. The update is already available in SVN trunk and integrated in 1_10_5. &#91;user:jldupont&#124;Jean-Lou Dupont] 02:37, 5 July 2007 (UTC)

Great idea, but.... (RESOLVED)
This is a great idea. However, when I install it, it messes up the sidebar, locks all the pages, and doesn't install any of the Special pages... I'm not sure how to describe it in any more detail - other than it doesn't work. (Using MW 1.10.0). Any suggestions on where to start with debugging?
 * First off, which BizzWiki release are you using?
 * Bizzwiki 1_10_3
 * Second, the 'locking all the pages' can be normal: it depends what 'rights' has the user you are trying to access the site with. The whole idea behind BizzWiki is to provide finer grained rights management.
 * I was testing it with my sysop account and I couldn't edit anything with that account (which from reading the setup doesn't seem right)
 * Did you put the  line at the very end of  ? &#91;user:jldupont&#124;Jean-Lou Dupont] 17:33, 4 July 2007 (UTC)
 * Thirdly, what do you mean by 'messes up the sidebar'? Have you tried modifying the 'Mediawiki:Sidebar/groupXYZ' pages and require more info about how to do this?
 * Finally, I can lend a hand 'debugging' if you can contact me through email using [user:jldupont].

&#91;user:jldupont&#124;Jean-Lou Dupont] 12:40, 4 July 2007 (UTC)
 * I have fixed the sidebar bug. Upon fresh installs, the extension did not detect correctly sidebar/$group page. Thanks for the info. &#91;user:jldupont&#124;Jean-Lou Dupont] 13:12, 4 July 2007 (UTC)
 * Just did a fresh install on my machine as per the installation note I have provided and it works OK. Please provide more details about the problems you are experiencing (whilst considering I have corrected the sidebar bug). &#91;user:jldupont&#124;Jean-Lou Dupont] 13:21, 4 July 2007 (UTC)

Resolution
The problem was related to the fact that the BizzWiki package wasn't uncompressed in the root Mediawiki installation. This is a requirement as the BizzWiki package updates some standard Mediawiki files in the 'root/includes' directory. &#91;user:jldupont&#124;Jean-Lou Dupont] 21:08, 4 July 2007 (UTC)

Recent changes disappear and suggestions on simple namespace and group creation
I was about to install your Heirarchical Namespace Permissions but since there were some dependencies installed the lot (i.e. Bizzwiki). After adding the require in LocalSettings.php but before making any changes to BizzWikiSettings.php I noticed that the navigation > Recent changes page had been completely wiped. That freaked me a bit but might be a permission thing. For the moment I've uninstalled the extension just so as to get a better handle on the settings needed for BizzWikiSettings.php.

What I want to do is create two namespaces "Admin" and "Admin_talk". I'd also like to create a new group in addition to sysop, beauracrat, etc, "admin". I want to place certain users in the admin group, and give the group permission to create, delete and edit "Admin:" pages. I want and ordinary "user" to be able to edit an Admin_talk page. I've already created the new group "admin" directly:

mysql> INSERT INTO wbm_user_groups (ug_user, ug_group) VALUES ('1', 'admin');

Any suggestions on the rest? Hoogs 04:51, 5 July 2007 (UTC)

Reply
1) : as with any other namespace dependant function in BizzWiki it is subjected to policing (i.e. rights enforcement). Make sure your are using a 'sysop' member user when using your wiki upon installation of BizzWiki. 2) To define new namespaces, edit   with: Note that I have highlighted the section to edit in the said file under SVN/trunk.

3) In terms of permissions,

Hope this helps, &#91;user:jldupont&#124;Jean-Lou Dupont] 10:44, 5 July 2007 (UTC)


 * Thanks. Do you know anything about the addition of a group?  Or is there a better way to assign individuals the additional right to create/edit such an NS_ADMIN page?  I created the new group in the user_groups table for the main sysop (user_id=1) but the group name didn't show up in the list on Special:Userrights.  I saw it mentioned somewhere that the new group needs to be explicitely used in the php code (i.e. in defining some permissions for it) before it becomes visible but I haven't had a chance to try that yet. Hoogs 04:12, 6 July 2007 (UTC)
 * No probs. MW looks in the global variable  for groups (see User::getAllGroups). At least one right must be assigned in the said variable to make up a valid group. Thus, to define an 'admin group', you should add a statement in the   file to this effect (e.g.  ).  Since you are a BizzWiki user, you can use just edit the page   and get going.  &#91;user:jldupont&#124;Jean-Lou Dupont] 10:51, 6 July 2007 (UTC)

eAccelerator & RawRight (RESOLVED)
Hello,

if i'm using eAccelerator and BizzWiki, then this error ocours

Class 'RawRight' not found in /var/www/bcnwiki110/BizzWiki/extensions/RawRight/RawRight.php on line 37

commenting out the line loading the extension just forwards the error to the next usw.

Single MediaWiki is running fine?!?

Any Ideas?
 * I believe the issue as more to do with the PHP version you are running. Line 37 refers to a statement requiring PHP to have processed a class definition before coming valid. I will correct this definitely in the next BizzWiki release but for now, just take the SVN version of RawRight. &#91;user:jldupont&#124;Jean-Lou Dupont] 14:34, 11 July 2007 (UTC)

Thanks,

New RawRight fixed the error. So looking at RawRight I was able to fix the next extensions --- ViewsourceRight.php.old    2007-07-12 09:27:23.000000000 +0200 +++ ViewsourceRight.php 2007-07-12 09:27:58.000000000 +0200 @@ -32,13 +32,12 @@  *    */ -ViewsourceRight::singleton; class ViewsourceRight extends ExtensionClass {        const thisName = 'ViewsourceRight'; const thisType = 'other'; // must use this type in order to display useful info in Special:Version -      const id       = '$Id: ViewsourceRight.php 301 2007-07-05 16:45:33Z jeanlou.dupont $'; +      const id       = '$Id$'; public static function &singleton { return parent::singleton; } @@ -136,4 +135,6 @@                return true; } } // end class definition. -?> \ Kein Zeilenumbruch am Dateiende. + +ViewsourceRight::singleton; +?>

and

--- FileSystemSyntaxColoring.php.old   2007-07-12 09:29:44.000000000 +0200 +++ FileSystemSyntaxColoring.php       2007-07-12 09:30:18.000000000 +0200 @@ -36,13 +36,12 @@ == Code == */ -FileSystemSyntaxColoring::singleton; class FileSystemSyntaxColoring extends ExtensionClass {        const thisName = 'FileSystem Syntax Coloring'; const thisType = 'other'; // must use this type in order to display useful info in Special:Version -      const id       = '$Id: FileSystemSyntaxColoring.php 301 2007-07-05 16:45:33Z jeanlou.dupont $'; +      const id       = '$Id$'; var $found; var $text; @@ -192,4 +191,6 @@        private function getLanguage( $ext ) { return self::$map[ $ext ]; } } // end class definition. -?> \ Kein Zeilenumbruch am Dateiende. + +FileSystemSyntaxColoring::singleton; +?>

and --- ShowRedirectPageText.php.old       2007-07-12 09:32:34.000000000 +0200 +++ ShowRedirectPageText.php   2007-07-12 09:31:48.000000000 +0200 @@ -30,7 +30,6 @@ *  */ -ShowRedirectPageText::singleton; class ShowRedirectPageText extends ExtensionClass { @@ -38,7 +37,7 @@       const thisName = 'ShowRedirectPageText'; const thisType = 'other'; // must use this type in order to display useful info in Special:Version -      const id       = '$Id: ShowRedirectPageText.php 301 2007-07-05 16:45:33Z jeanlou.dupont $'; +      const id       = '$Id$'; var $found; var $actionState; @@ -91,4 +90,6 @@       } } // end class definition. -?> \ Kein Zeilenumbruch am Dateiende. + +ShowRedirectPageText::singleton; +?> and --- SidebarEx.php.old  2007-07-12 09:34:22.000000000 +0200 +++ SidebarEx.php      2007-07-12 09:35:21.000000000 +0200 @@ -60,18 +60,13 @@ * Corrected bug with article validity checking (e.g. affects BizzWiki fresh installs) */ -// Verify if 'ExtensionClass' is present. -if ( !class_exists('ExtensionClass') ) -      echo 'SidebarEx extension: ExtensionClass missing.'; -else -      SidebarExClass::singleton; class SidebarExClass extends ExtensionClass {       // constants. const thisName = 'SidebarEx'; const thisType = 'other'; // must use this type in order to display useful info in Special:Version -      const id       = '$Id: SidebarEx.php 301 2007-07-05 16:45:33Z jeanlou.dupont $'; +      const id       = '$Id$'; // default values static $baseNs  = NS_MEDIAWIKI;        // default namespace @@ -218,4 +213,10 @@       } } // END CLASS DEFINITION -?> \ Kein Zeilenumbruch am Dateiende. + +// Verify if 'ExtensionClass' is present. +if ( !class_exists('ExtensionClass') ) +      echo 'SidebarEx extension: ExtensionClass missing.'; +else +      SidebarExClass::singleton; +?> and --- AddScriptCss.php.old       2007-07-12 09:36:22.000000000 +0200 +++ AddScriptCss.php   2007-07-12 09:36:48.000000000 +0200 @@ -60,18 +60,13 @@ *  */ -// Verify if 'ExtensionClass' is present. -if ( !class_exists('ExtensionClass') ) -      echo 'ExtensionClass missing: AddScriptCss extension will not work!'; -else -      AddScriptCssClass::singleton; class AddScriptCssClass extends ExtensionClass {       // constants. const thisName = 'AddScriptCss'; const thisType = 'other'; -      const id       = '$Id: AddScriptCss.php 307 2007-07-06 14:51:51Z jeanlou.dupont $'; +      const id       = '$Id$'; // error codes. const error_none    = 0; @@ -221,4 +216,10 @@       } } // END CLASS DEFINITION -?> \ Kein Zeilenumbruch am Dateiende. + +// Verify if 'ExtensionClass' is present. +if ( !class_exists('ExtensionClass') ) +      echo 'ExtensionClass missing: AddScriptCss extension will not work!'; +else +      AddScriptCssClass::singleton; +?> --- PageFunctions.php.old      2007-07-12 09:38:45.000000000 +0200 +++ PageFunctions.php  2007-07-12 09:38:16.000000000 +0200 @@ -34,14 +34,12 @@ */ -// Let's create a single instance of this class -PageFunctionsClass::singleton; class PageFunctionsClass extends ExtensionClass {       const thisName = 'PageFunctions'; const thisType = 'other'; -      const id       = '$Id: PageFunctions.php 330 2007-07-09 14:48:12Z jeanlou.dupont $'; +      const id       = '$Id$'; var $pageVars; @@ -118,4 +116,7 @@       } } // end class -?> \ Kein Zeilenumbruch am Dateiende. + +// Let's create a single instance of this class +PageFunctionsClass::singleton; +?>

Maybe it helps someone else.. thanks a lot!


 * Thanks a lot!! I have applied all the patches; they are available in SVN trunk and will be packaged in 1_10_8. &#91;user:jldupont&#124;Jean-Lou Dupont] 12:42, 12 July 2007 (UTC)

Issue with Special:ImageList and Special:Categories (RESOLVED)

 * I revreted to original BizzWikiSettings.php without any modification. I came accross few more problems:
 * When I go to 'Special:Imagelist' or 'Special:Categories', I get the following error message on top of the screen

Pager::getBody : no recognized namespace= hnpClass: action browse namespace dependant but called from NS_SPECIAL.
 * -Gautam
 * Fixed: I have updated the SVN trunk; please grab 'Pager.php' from '/includes' and update your install. Version 1_10_11 will get the fix. Many thanks for your help. Jean-Lou Dupont 12:29, 12 August 2007 (UTC)

Headers
It outputs twice this message (in the top of each page): Warning: Cannot modify header information - headers already sent by (output started at /home/mirko/public_html/wiki/LocalSettings.php:1) in /home/mirko/public_html/wiki/includes/WebResponse.php on line 10

It seems that Notepad.exe corrupts the archives adding to him 0xEF, 0xBB, 0xBF at the beginning (I look this bytes in others UTF files). I had to use Hiew to cut it. P.D.: If I have some orthographic error, don't doubt in correcting to me (I don't speak English). Eloy