LOL yeah I just noticed it was on 4 J
Sorry for the jump to the gun question….
Thanks,
Dave
From: Sam Sherlock [mailto:sam.sherlock@gmail.com]
Sent: October-01-10 8:19 PM
To: cake-php@googlegroups.com
Subject: Re: Media Temple Move
what are the php settings for the domain?
php5?
- S
On 1 October 2010 23:29, Dave Maharaj <me@davemaharaj.com> wrote:
I am moving my site to media temple and running into a few problems.
Site is built on 1.3.4
Now after moving im getting errors where ever:
In controller there is a ClassRegistry call
Example $this->Auth->login(ClassRegistry::init('User')->findById($this->Auth->user('id', array('contain' => false))));
Produces: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
And in Model(s)
And function that has private / public / protected is throwing errors
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in html/app/app_model.php on line 91
Line 91
public function __slugToId( $slug ){
$params = array(
'conditions' => array(
'User.slug' => $slug ),
'fields' => array(
'User.id' ),
'contain' => false );
$data = $this->User->find( 'first', $params );
return $data['User']['id'];
}
Everything worked fine on my old junky host. Any ideas anyone?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment