Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Install error on install.php


Go to End
Reply


5 Posts   1536 Views

Avatar
Keith

Community Member, 1 Post

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.php

Thanks.

Avatar
kjello

Community Member, 7 Posts

25 August 2008 at 5:03pm

How did you resolve this?

Avatar
Willr

Forum Moderator, 5514 Posts

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

Avatar
kjello

Community Member, 7 Posts

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?

Avatar
Willr

Forum Moderator, 5514 Posts

25 August 2008 at 5:28pm

sorry should be phpinfo() Note no _