Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Install error on install.php

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

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

Page: 1
Go to End
Author Topic: 1436 Views
  • Keith
    Avatar
    Community Member
    1 Post

    Install error on install.php Link to this post

    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.

  • kjello
    Avatar
    Community Member
    7 Posts

    Re: Install error on install.php Link to this post

    How did you resolve this?

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Install error on install.php Link to this post

    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

  • kjello
    Avatar
    Community Member
    7 Posts

    Re: Install error on install.php Link to this post

    I get a call to an undefined function. They say php is installed. and PHPbb is working on the domain.

    What's up?

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Install error on install.php Link to this post

    sorry should be phpinfo() Note no _

    1436 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.