[Pmwiki-users] first pinstall, first problem, first post.

Reimer Behrends behrends
Thu Nov 13 05:05:22 CST 2003


On Thu, Nov 13, 2003 at 11:32:08AM +0100, Marc DROULEZ wrote:
> But every time I add something like :
> include_once('scripts/sessionauth.php');
> $DefaultPasswords['admin'] = '$1$BkJIsYHK$CggqsNGDflW0XKgOG8saJ1'
> $DefaultPasswords['attr'] = '$1$khMp1Fkj$9KS7puDtXcvLKrJoEgTQg1'
> $DefaultPasswords['edit'] = '$1$khMp1Fkj$9KS7puDtXcvLKrJoEgTQg1'

There has to be a semicolon after each of the assignments. I.e.,

$DefaultPasswords['admin'] = '$1$BkJIsYHK$CggqsNGDflW0XKgOG8saJ1';
$DefaultPasswords['attr'] = '$1$khMp1Fkj$9KS7puDtXcvLKrJoEgTQg1';
$DefaultPasswords['edit'] = '$1$khMp1Fkj$9KS7puDtXcvLKrJoEgTQg1';

> Parse error: parse error, unexpected T_VARIABLE in
> /var/www/html/secure/wiki/local.php on line 30

This means that PHP was expecting a semicolon and found a variable
name (probably $DefaultPasswords) instead.

> were the line number is the number of
> $DefaultPasswords['admin'] = '$1$BkJIsYHK$CggqsNGDflW0XKgOG8saJ1'
> or
> $EnableMailPosts=1;

I am not sure why the latter should produce the same error, though.
It may be that there is a semicolon missing on the preceding line
as well.

[...]

			Reimer Behrends



More information about the pmwiki-users mailing list