Hi,

i found it:

public function sendAs(/*wrong*/string $type = ''){
        
}public function sendAs(/*true*/$type = ''){
        
}

I confused the type hintings :(





________________________________
 Von: jeet bajaj <[email protected]>
An: [email protected] 
Gesendet: 9:26 Donnerstag, 13.September 2012
Betreff: Re: big issue after uploading cake projekt!
 

It might be a naming convention problem, 
1) I will suggest to first check all the controllers, models as well as 
components  names are defined properly (It might be
a naming convention issue).
2) And what they (Controllers, Models and Components ) are
extending for example Check all component’s are extending Object or not.
For Example :- (It is a common problem.)
          Wrong - class PImageComponent
extends Component { }

           Right -  class PImageComponent extends Object { }

 
 Let me know if it works for you.


On Thu, Sep 13, 2012 at 12:27 PM, Serkan Sipahi <[email protected]> wrote:

Hello all,
>
>1.) CakePHP 2.2.2
>2.) PHP Version 5.3.3
>3.) OS Linux
>
>After uploading my Cake-Project to my Webserver i get a strange problem:
>
>Fatal error:  Default value for parameters with a class type hint can only be 
>NULL in 
>/var/www/web4/html/domain/app/Controller/Component/ErrorHandlerComponent.php 
>on line 35
>
>Fatal error:  Class declarations may not be nested in 
>/var/www/web4/html/domain/lib/Cake/Error/ExceptionRenderer.php on line 55
>
>What wrong? Its not my first Cake-Project! I need help, thnx.
>
>
> -- 
>You received this message because you are subscribed to the Google Groups 
>"CakePHP" group.
>To post to this group, send email to [email protected].
>To unsubscribe from this group, send email to 
>[email protected].
>Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
> 
> 
>
-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to