Extension talk:BreadCrumbs2

Header problem
When I enable this extension, I get an error about the headers already being sent by BreadCrumbs2.php from WebResponse.php (specifically Warning: Cannot modify header information - headers already sent by (output started at /xxxx/mediawiki-1.11.0/extensions/BreadCrumbs2.php:204) in /xxxx/mediawiki-1.11.0/includes/WebResponse.php on line 10.  Any hints as to how I might fix this? 129.21.126.84 03:32, 8 October 2007 (UTC)

Save your document (php) as plain text, not as utf encoded.


 * ok that did it, thanks 129.21.126.84 21:57, 8 October 2007 (UTC)

recharge
Well, I had the exact same problem, but the encoding was plain text: /etc/mediawiki/LocalSettings.php:              text/plain; charset=us-ascii /var/lib/mediawiki/extensions/BreadCrumbs2.php: text/plain; charset=us-ascii
 * 1) file -i /etc/mediawiki/LocalSettings.php  /var/lib/mediawiki/extensions/BreadCrumbs2.php

The real cause has to do with white spaces outside of the php start and end tags, see this link from Tech Recipes

Link crumbs to normalpages
add around line 40:

// Link crumbs to normal page, not to category page $tree[1] = preg_replace('/Category:/','',$tree[1]);

Response:
Try adding these lines to the MediaWiki:Breadcrumbs page and add your Main Page to a category called "Main Page":

* Main Page @ * default  @ Main Page >

It works for me! I too think this is a brilliant solution to getting breadcrumbs.

147.209.216.245 23:21, 24 January 2008 (UTC)