Friday, October 1, 2010

Media Temple Move

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?

No comments: