[Pmwiki-users] URL Changes With Latest Update

Templier Antony antony.templier
Wed May 12 08:14:06 CDT 2004


I 've experienced the same matter since the 0.6.13 PmWiki version.

I got this php message in the top of all pages:

Warning: Cannot modify header information - headers already sent by
(output started at /home/www/pmwiki/local/config.php:2) in
/home/www/pmwiki/pmwiki.php on line 393

After searching on Internet, I found a workaround :
In the php.ini file, I changed the output_buffering variable Off to On.
(and all seem to work well at now with pretty URLs that look like
'http://phoenix.home.net/wiki/PmWikiFr/Aide' for instance).I

I hope this will heplful to you (but i know anybody can't have always
access to the php.ini file configuration of the host server)

Antony.


Maybe useful infos for debugging ---------------------------

This my configuration (on a home test server):

pmwiki is in /home/www/pmwiki 

I use an alias in my Apache (2.0.48 with php 4.3.4) config file :
Alias /wiki /home/www/pmwiki/pmwiki.php

I put AcceptPathInfo on the .htaccess of /home/www/pmwiki/ directory

This my local/config.php :
[start config.php]

$WikiTitle = 'Z3Lab';
 $ScriptUrl = 'http://phoenix.home.net/wiki';
 $PubDirUrl = 'http://phoenix.home.net/pmwiki/pub/';


 $EnableUpload = 1;
 $DefaultPasswords['upload'] = crypt('secret');


 $EnableQATags=1;                         # Q: and A: Markup (default on)
 $EnableWikiTrails=1;			   # WikiTrails (default on)
                # keep page history at least 30 days

###################
## Add by Antony ##
###################

# En fran?ais...
XLPage('fr','PmWikiFr.XLPage');

# Groupe par d?faut
$DefaultGroup='Home';

# Changement de Skin
$PageSkinTemplates = array(
        'pmwiki' => 'pub/skins/pmwiki/pmwiki.tmpl',
        'classic' => 'pub/skins/classic/classic.tmpl',
        'jh' => 'pub/skins/jh/jh.tmpl',
	'arndis' => 'pub/skins/arndis/cream-gold.tmpl',
	'tom' => 'pub/skins/tom/tom.tmpl');

include_once('local/skinchange.php')
[end config.php]

where phoenix.home.net is my home web server that have DocumentRoot
pointing to /home/www
-----------------------------------------------------------------

> Can you send me a copy of your config.php, or at least the first
> ten or so lines of it?  That would help a lot in locating the
> problem.
> 
> Pm
> 
> 
> On Tue, May 11, 2004 at 01:29:59PM -0400, Lee Corbridge, DVM wrote:
> > I have been using the redirect method of making my URL's prettier.
> > Method # 2 "Make A Wiki Script" @ PmWiki.ChangePmWikiURL
> > 
> > Has the latest update changed something in pmwiki.php?  I tried to 
> > install a new pmwiki at a new location today and I get the following
> > errors in the header :
> > 
> > Parse error:  parse error in 
> > /home/leecdvm/public_html/docs/local/config.php on line 6
> > 
> >  Warning:  Cannot modify header information - headers already sent
> by 
> > (output started at
> /home/leecdvm/public_html/docs/local/config.php:6) 
> > in /home/leecdvm/public_html/docs/pmwiki.php on line 394
> > 
> > I haven't changed anything regarding my end and I have all the
> settings 
> > the same across all my wiki's ( 10 total ) and none of them have 
> > changed except the new install.
> > 
> > Here is the url :
> > 
> > http://www.leecdvm.com/docs/pmwiki.php
> > 
> > Any ideas or suggestions is welcome.
> > 
> > 
> > I Hope This Helps ...
> > Keep Looking Up
> > 
> > Doc
> > 
> > Lee Corbridge, DVM ~ allcritters at yahoo.com
> > http://www.allcritters.com ~ Sebring, FL
> > Member AVMA, AAFP ~ USDA Accredited
> > 
> > Practice Limited To Cats Of All Sizes
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > 
> > "Life is about creating yourself."  -- George Bernard Shaw
> > 
> > "Never doubt that a small group of thoughtful, committed citizens
> can 
> > change the world;
> > indeed, it's the only thing that ever has."  -- Margaret Mead
> > 
> > 
> > -- 
> > Pmwiki-users mailing list
> > Pmwiki-users at pmichaud.com
> > http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com




More information about the pmwiki-users mailing list