Yii Framework Forum: yiic parse error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yiic parse error Rate Topic: -----

#1 User is offline   daveline 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 25-March 10

Posted 25 March 2010 - 01:32 PM

Hey All, I am new to yii, and was testing out the scaffolding feature, but am getting an error when I run the following command

$ /my/path/yii/framework/yiic shell /my/path/yiiblog/index.php


Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /my/path/yii/framework/YiiBase.php on line 59

I was using the blog example as my base
PHP 5.2.6
yii-1.1.1.r1907
sqllite

Any Ideas?

Thanks,
Daveline
0

#2 User is offline   daveline 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 25-March 10

Posted 25 March 2010 - 01:43 PM

OK, I am using dreamhost, and apparently they use PHP 4.4.9 for the command line.

this can be fixed by running the following command after logging in via ssh

export PATH=/usr/local/php5/bin/:$PATH

Thanks to William (Comment #6) for the answer
http://blog.dmcinsig...-yii-framework/

Let's see if this works....
0

#3 User is offline   PoL 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 506
  • Joined: 05-November 08
  • Location:Buenos Aires, Argentina

Posted 25 March 2010 - 01:45 PM

This error raises because your PHP CLI is using php 4.
Sorry, I'm late... when I post this, you already solve the problem, LOL!!!
Don't say what you think, think what you say
The problem is communication! Excess of communication!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users