00380: Unexpected T_String, Error with all links.

Summary: Unexpected T_String, Error with all links.
Created: 2005-03-12 23:39
Status: Closed
Category: Bug
Assigned:
Priority: 4
Version: Beta 25, 26
OS: Unix, Recent PHP

Description: After a completely fresh install of pmWiki I access the pmwiki.php script from a browser and it creates the main page correctly, however, every link on that page generates the following error:

Warning: Unexpected character in input: ' ' (ASCII=12) state=1 in /usr/local/dh/cgi-system/php.cgi on line 2966

Parse error: parse error, unexpected T_STRING in /usr/local/dh/cgi-system/php.cgi on line 2966

This has occured with betas 25 and 26.

Any suggestions would be welcome. :)

-Jay


Try adding the following to local/config.php:

    $ScriptUrl = $_SERVER['PHP_SELF'];

and see if that fixes the problem.

--Pm


Worked like a charm, thank you very much!

-Jay


Closed, 'cos it seems solved. -Radu March 15, 2005, at 08:09 AM


Also worked great for me, thanks! -phil