[Pmwiki-users] Strange error

Chad Lupkes chadlupkes
Sun Aug 1 19:52:06 CDT 2004


Parse error: parse error, unexpected T_LNUMBER in
/home/takeback/public_html/pmwiki-1.0.5/pmwiki.php on line 386

Here is line 386:

##  "404 Not Found" errors for all others, try setting the following:

This is in the redirect function:

function Redirect($pagename,$urlfmt='$PageUrl') {
  global $RedirectDelay,$ScriptUrl,$DefaultPage;
  clearstatcache();
  if (!PageExists($pagename)) $pagename=$DefaultPage;
  $pageurl=FmtPageName($urlfmt,$pagename);
  header("Location: $pageurl");
  header("Content-type: text/html");
  print("<html><head>
    <meta http-equiv='Refresh' content='$RedirectDelay; URL=$pageurl'>
    <title>Redirect</title></head><body><?php
##  This is a sample config.php file.  To use this file, copy it to
##  local/config.php, then edit it for whatever customizations you want.
##  Also, be sure to take a look at http://www.pmichaud.com/wiki/Cookbook
##  for more details on the types of customizations that can be added
##  to PmWiki.

##  $WikiTitle is the name that appears in the browser's title bar
# $WikiTitle = 'DFWWiki';

##  $ScriptUrl is your preferred URL for accessing wiki pages
##  $PubDirUrl is the URL for the pub directory.
# $ScriptUrl = 'http://www.mydomain.com/path/to/pmwiki.php';
# $PubDirUrl = 'http://www.mydomain.com/path/to/pub';

##  If your system is able to display the home page but gives
##  "404 Not Found" errors for all others, try setting the following:
# $EnablePathInfo = 0;

##  $PageLogoUrlFmt is the URL for a logo image--you can change this to
##  your own logo if you wish.
# $PageLogoUrl = '$PubDirUrl/pmwiki-32.gif';

##  Set $SpaceWikiWords if you want WikiWords to automatically have
##  spaces before each sequence of capital letters
# $SpaceWikiWords = 1;                 # turns on WikiWord spacing

##  If you want uploads enabled on your system, set $EnableUpload=1.
##  You'll also need to set a default upload password, or else set
##  passwords on individual groups and pages.  For more information see
##  PmWiki.UploadsAdmin and PmWiki.PasswordsAdmin.
# $EnableUpload = 1;
# $DefaultPasswords['upload'] = crypt('secret');

##  By default PmWiki is configured such that only the first occurrence
##  of 'PmWiki' in a page is treated as a WikiWord.  If you want to
##  restore 'PmWiki' to be treated like other WikiWords, uncomment the
##  line below.
# unset($WikiWordCount['PmWiki']);

##  If you want to disable all WikiWords (leaving only {{free links}} and
##  [[WikiWord text]] markup), set $WikiWordCountMax=0.  If you want
##  only the first occurrence of each WikiWord to be treated as a link,
##  set $WikiWordCountMax=1.
# $WikiWordCountMax=0;                     # disables all WikiWords
# $WikiWordCountMax=1;                     # converts only first WikiWord

##  Many other features of PmWiki can be enabled (1) or disabled (0)
##  by setting variables below.  These are defined in and controlled by
##  the scripts/stdconfig.php script.
# $EnableQATags=1;                         # Q: and A: Markup (default on)
# $EnableWikiTrails=1;                 # WikiTrails (default on)
# $EnableStdWikiStyles=1;              # standard WikiStyles (default on)
##  or, to turn off all of the optional features, use
# $EnableStdConfig=0;                  # 0 disables all optional features

## $DiffKeepDays specifies the minimum number of days to keep a page's
## revision history.  The default is 3650 (approx 10 years).
# $DiffKeepDays=30;                        # keep page history at least 30
days
?>
</body></html>");
  exit;
}

Is there a quick resolution?

Chad Lupkes
chadlupkes at earthlink.net
http://www.democracyforwashington.com
PCO SEA-46-2324
206-440-1592

We are the ones that we have been waiting for.
A society of sheep will soon beget a government of wolves.
In a democracy, agreement is not essential; participation is.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users_pmichaud.com/attachments/20040801/2ec7c9f7/attachment-0001.htm


More information about the pmwiki-users mailing list