We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29047
    • 1 Posts
    I just uploaded 2.08 to my server, and upon navigation to my index.php file, I am prompted with:

    Parse error: syntax error, unexpected T_STRING in /nfs/c07/h01/mnt/---blahblahblahblah---/html/modx/index.php on line 69

    Here’s the code starting at 67:

    
    if (empty($options) || !is_array($options)) $options = array();
    $modx= new modX('', $options);
    if (!is_object($modx) || !($modx instanceof modX)) {
        @ob_end_flush();
        $errorMessage = '<a href="setup/">MODx not installed. Install now?</a>';
        @include(MODX_CORE_PATH . 'error/unavailable.include.php');
        header('HTTP/1.1 503 Service Unavailable');
        echo "<html><title>Error 503: Site temporarily unavailable</title><body><h1>Error 503</h1><p>{$errorMessage}</p></body></html>";
        exit();
    }
    
    



    Environment information:

    MODx 2.08
    Traditional
    MySQL SmartPool v.2
    Mediatemple GS
    Google Chrome 9.05


    Anyone have any help to offer?
      • 17667
      • 108 Posts
      swoop, MediaTemple still uses PHP4 by default. Log into your MT account control panel, go to PHP Settings and switch to PHP5. This should take care of this error.

      You may also need to add this to your .htaccess file:
      Action php5-script /gs-bin/php-5.2.6-1
      AddHandler php5-script .php
      
        • 42242
        • 1 Posts
        Hi, lukemcd

        I'm totally new in this... you said
        Log into your MT account control panel
        what MT stands for?

        Thank you!
          • 3749
          • 24,544 Posts
          Media Temple wink

            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting