php error: unexpected T_OBJECT_OPERATOR.... trying to install magento using ssh commands to dreamhos

Posted by Jane on Stack Overflow See other posts from Stack Overflow or by Jane
Published on 2010-05-23T05:00:10Z Indexed on 2010/05/23 5:10 UTC
Read the original article Hit count: 281

Filed under:
|
|

I am trying to install magento (e-commerce platform)

I am following a tutorial that tells me to run this command using ssh: ./pear mage-setup

but i'm getting this error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/domainname.com/downloader/pearlib/php/System.php on line 400

Line 400 is commented in the code snippit from the system.php file:

   /* Magento fix for set tmp dir in config.ini
     */
    if (class_exists('Maged_Controller',false)) {
        /*line 400 */
        $magedConfig = Maged_Controller::model('Config',true)->load();**
        if ($magedConfig->get('use_custom_permissions_mode') == '1' && 
            $mode = $magedConfig->get('mkdir_mode')) {
            $result = System::mkDir(array('-m' . $mode, $tmpdir));
        } else {
            $result = System::mkDir(array('-p', $tmpdir));
        }

        if (!$result) {
            return false;
        }
    }

Can anyone help my demystify this error?

© Stack Overflow or respective owner

Related posts about php

Related posts about ssh