[pmwiki-users] Warning message

H. Fox haganfox at users.sourceforge.net
Sat Nov 19 17:26:28 CST 2005


On 11/19/05, Doug <dougp at ispinn.com> wrote:
> I installed the cookbook entries for
>
>      rename.php
>
> and
>
>      renamehelper.php
>
> using (include_once for each) and started getting a warning message:
>
>      Warning:
>      Cannot modify header information - headers already sent by
> (output started at
>      d:\html\users\ispinncom\html\wiki\local\config.php:342) in
>      d:\html\users\ispinncom\html\wiki\pmwiki.php on line 699

Did you include_once renamehelper.php first?

Maybe try the following, possibly without the RetrieveAuthPage line:

## Activate the page-renaming script.
if ($action == 'rename' || $action == 'postrename') {
  RetrieveAuthPage($pagename, 'admin');  // Require admin authorization
  @include_once("cookbook/renamehelper.php");
  @include_once("cookbook/rename.php"); }

Doing it this way only includes the scripts if they're being used.

Hagan




More information about the pmwiki-users mailing list