17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1331 Views |
-
Install error on install.php

26 June 2008 at 11:28pm
I get this error when going to the url to install:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /directory/directory/directory/directory/install.php on line 518.Here is the code from lines 508 to 536:
function isRunningApache($testDetails) {
$this->testing($testDetails);
if(function_exists('apache_get_modules') || stristr($_SERVER['SERVER_SIGNATURE'], 'Apache'))
return true;
$this->warning($testDetails);
return false;
}line 518->protected $baseDir;
function getBaseDir() {
// Cache the value so that when the installer mucks with SCRIPT_FILENAME half way through, this method
// still returns the correct value.
if(!$this->baseDir) $this->baseDir = realpath(dirname($_SERVER['SCRIPT_FILENAME'])) . '/';
return $this->baseDir;
}
function testing($testDetails) {
if(!$testDetails) return;
$section = $testDetails[0];
$test = $testDetails[1];
$message = "OK";
if(isset($testDetails[3])) $message .= " ($testDetails[3])";$this->tests[$section][$test] = array("good", $message);
}This is running on a 1and1 Linux shared server, if that helps any. The url to the install is:
www.fairmidway.org/install.phpThanks.
-
Re: Install error on install.php

25 August 2008 at 5:08pm
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION is the usual error message when you have PHP4 running and not PHP5 - how you can check is by creating a somefilename.php with the content
<?php php_info(); ?>
Upload that to your server and see what version of PHP you are running
-
Re: Install error on install.php

25 August 2008 at 5:23pm
I get a call to an undefined function. They say php is installed. and PHPbb is working on the domain.
What's up?
| 1331 Views | ||
|
Page:
1
|
Go to Top |


