00661: Author Tracking Broken

Summary: Author Tracking Broken
Created: 2006-02-07 17:07
Status: Closed
Category: Bug
From: kr?
Assigned:
Priority:
Version: 2.1.beta23
OS: linux/apache2/php5

Description: My wiki spits out the following two error messages when trying to edit a page when logged in. It also fails to enforce author tracking.

Warning: preg_match() expects parameter 2 to be string, array given in /home/www/pmwiki-2.1.beta23/pmwiki.php on line 480

Warning: Cannot modify header information - headers already sent by (output started at /home/www/pmwiki-2.1.beta23/pmwiki.php:480) in /home/www/pmwiki-2.1.beta23/pmwiki.php on line 807

Warning: preg_match() expects parameter 2 to be string, array given in /home/www/pmwiki-2.1.beta23/pmwiki.php on line 480

The following two lines of my config trigger the errors:

# Enforce Author tracking based on the authenticated user.
if ($action == 'edit') @session_start();
if (@$_SESSION['authid']) $Author=$_SESSION['authid'];

You can watch it happen here: [(approve links) edit diff]

Login as test with password test