Excessive resource usage

2009-12-15 Thread Mauro Ribeiro
I'm getting lots of "Excessive resource usage" messages from my
server, like the one you can see below:

Time: Tue Dec 15 10:34:43 2009 -0500
Account:  ee
Resource: Virtual Memory Size
Exceeded: 103 > 100 (MB)
Executable:   /usr/bin/php
Command Line: /usr/bin/php /home/ee/public_html/app/webroot/index.php
PID:  24195
Killed:   No

It`s always the same webroot/index.php. I can`t figure out why it`s
using so much memory.

Debug level is already in 0.

Does someone know anything that can be happening?

Thanks in adv.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Email with unwanted white spaces and special characters

2009-12-10 Thread Mauro Ribeiro
Well guys. I`ve found the problem.

Cakephp have a lineLength param that breaks all lines when they reach
the param value max length.

By default it`s 70 characters. When it happens to break in a UTF8
character (like é, ã, ú), or "<", ">", "/", the email client (all of
them, yahoo, gmail, outlook), understand something they shouldn`t and
put some really strange char codes that the browsers understand to be
a whitespace.

So the sollution is to put no limit for this.

Thanks all for your help!

On 10 dez, 10:03, Mauro Ribeiro  wrote:
> Well. I`ve tried the php standard mail() function and it worked fine.
> I`m going to take a look in Email Component and see what`s going on
>
> On 10 dez, 09:47, Mauro Ribeiro  wrote:
>
> > I`m using it normaly, no extra features or anything.
>
> >         function sendMail($to, $subject, $message, $layout = 'default') {
> >                 $subject = '[noreply] ' . $subject;
>
> >                 $this->Email->to = $to;
> >                 $this->Email->subject =  $subject;
> >                 $this->Email->replyTo = 'no-re...@email.com.br';
> >                 $this->Email->from = 'No Reply';
> >                 $this->Email->sendAs = 'html';
> >                 $this->Email->layout = $layout;
>
> >                 return $this->Email->send($message);
> >         }
>
> > On 10 dez, 01:44, "Dr. Loboto"  wrote:
>
> > > How do you send email? I don't have such problems with $this->Email-
>
> > > >send() call (no params).
>
> > > On Dec 6, 7:57 pm, Mauro Ribeiro  wrote:
>
> > > > All I have in my template is the html/default.ctp:
>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
>
> > > > The message is being written in controller and sent by CakePHP Email
> > > > Component.
>
> > > > Even if I use the default text (text/default.ctp), I get the same
> > > > issue...
>
> > > > No idea on what what`s going on.
>
> > > > On 5 dez, 18:52, mike karthauser  wrote:
>
> > > > > Perhaps you could post the php inside your template so we could see  
> > > > > it? Also are you sanitizing your email addresses as perhaps there is  
> > > > > extra characters being captured that you are giving to your view?
>
> > > > > Mike Karthauser
> > > > > Brightstorm limited
> > > > > Tel: 07939252144
>
> > > > > On 5 Dec 2009, at 12:22, Mauro Ribeiro  wrote:
>
> > > > > > Hi all!
>
> > > > > > I`m using the CakePHP Email Component and the resulting email appear
> > > > > > with some not wanted whitespaces and special characters along the
> > > > > > HTML.
>
> > > > > > Sometimes this happens inside  tags and break the href
> > > > > > property.
>
> > > > > > Here is an example:
>
> > > > > > -
>
> > > > > > http://www.empreendemia.com.br/users/
> > > > > > create/
> > > > > > user.em...@gmail.com+/X" target="_blank">http://
> > > > > >www.empreendemia.com.br/users/create/user.em a...@gmail.com /X > > > > > a>
>
> > > > > > -
>
> > > > > > It appeared a "+" in href link and some whitespaces inside 
> > > > > > text
>
> > > > > > Does someone now what`s happening?
>
> > > > > > Thanks in advance,
> > > > > > Mauro
>
> > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 
> > > > > > 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+unsubscr...@googlegroups.com For more options, visit this  
> > > > > > group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Email with unwanted white spaces and special characters

2009-12-10 Thread Mauro Ribeiro
Well. I`ve tried the php standard mail() function and it worked fine.
I`m going to take a look in Email Component and see what`s going on

On 10 dez, 09:47, Mauro Ribeiro  wrote:
> I`m using it normaly, no extra features or anything.
>
>         function sendMail($to, $subject, $message, $layout = 'default') {
>                 $subject = '[noreply] ' . $subject;
>
>                 $this->Email->to = $to;
>                 $this->Email->subject =  $subject;
>                 $this->Email->replyTo = 'no-re...@email.com.br';
>                 $this->Email->from = 'No Reply';
>                 $this->Email->sendAs = 'html';
>                 $this->Email->layout = $layout;
>
>                 return $this->Email->send($message);
>         }
>
> On 10 dez, 01:44, "Dr. Loboto"  wrote:
>
> > How do you send email? I don't have such problems with $this->Email-
>
> > >send() call (no params).
>
> > On Dec 6, 7:57 pm, Mauro Ribeiro  wrote:
>
> > > All I have in my template is the html/default.ctp:
>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
>
> > > The message is being written in controller and sent by CakePHP Email
> > > Component.
>
> > > Even if I use the default text (text/default.ctp), I get the same
> > > issue...
>
> > > No idea on what what`s going on.
>
> > > On 5 dez, 18:52, mike karthauser  wrote:
>
> > > > Perhaps you could post the php inside your template so we could see  
> > > > it? Also are you sanitizing your email addresses as perhaps there is  
> > > > extra characters being captured that you are giving to your view?
>
> > > > Mike Karthauser
> > > > Brightstorm limited
> > > > Tel: 07939252144
>
> > > > On 5 Dec 2009, at 12:22, Mauro Ribeiro  wrote:
>
> > > > > Hi all!
>
> > > > > I`m using the CakePHP Email Component and the resulting email appear
> > > > > with some not wanted whitespaces and special characters along the
> > > > > HTML.
>
> > > > > Sometimes this happens inside  tags and break the href
> > > > > property.
>
> > > > > Here is an example:
>
> > > > > -
>
> > > > > http://www.empreendemia.com.br/users/
> > > > > create/
> > > > > user.em...@gmail.com+/X" target="_blank">http://
> > > > >www.empreendemia.com.br/users/create/user.em a...@gmail.com /X > > > > a>
>
> > > > > -
>
> > > > > It appeared a "+" in href link and some whitespaces inside text
>
> > > > > Does someone now what`s happening?
>
> > > > > Thanks in advance,
> > > > > Mauro
>
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 
> > > > > 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+unsubscr...@googlegroups.com For more options, visit this  
> > > > > group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Email with unwanted white spaces and special characters

2009-12-10 Thread Mauro Ribeiro
I`m using it normaly, no extra features or anything.

function sendMail($to, $subject, $message, $layout = 'default') {
$subject = '[noreply] ' . $subject;

$this->Email->to = $to;
$this->Email->subject =  $subject;
$this->Email->replyTo = 'no-re...@email.com.br';
$this->Email->from = 'No Reply';
$this->Email->sendAs = 'html';
$this->Email->layout = $layout;

return $this->Email->send($message);
}

On 10 dez, 01:44, "Dr. Loboto"  wrote:
> How do you send email? I don't have such problems with $this->Email-
>
> >send() call (no params).
>
> On Dec 6, 7:57 pm, Mauro Ribeiro  wrote:
>
> > All I have in my template is the html/default.ctp:
>
> > 
> > 
> > 
> > 
> > 
> > 
>
> > The message is being written in controller and sent by CakePHP Email
> > Component.
>
> > Even if I use the default text (text/default.ctp), I get the same
> > issue...
>
> > No idea on what what`s going on.
>
> > On 5 dez, 18:52, mike karthauser  wrote:
>
> > > Perhaps you could post the php inside your template so we could see  
> > > it? Also are you sanitizing your email addresses as perhaps there is  
> > > extra characters being captured that you are giving to your view?
>
> > > Mike Karthauser
> > > Brightstorm limited
> > > Tel: 07939252144
>
> > > On 5 Dec 2009, at 12:22, Mauro Ribeiro  wrote:
>
> > > > Hi all!
>
> > > > I`m using the CakePHP Email Component and the resulting email appear
> > > > with some not wanted whitespaces and special characters along the
> > > > HTML.
>
> > > > Sometimes this happens inside  tags and break the href
> > > > property.
>
> > > > Here is an example:
>
> > > > -
>
> > > > http://www.empreendemia.com.br/users/
> > > > create/
> > > > user.em...@gmail.com+/X" target="_blank">http://
> > > >www.empreendemia.com.br/users/create/user.em a...@gmail.com /X > > > a>
>
> > > > -
>
> > > > It appeared a "+" in href link and some whitespaces inside text
>
> > > > Does someone now what`s happening?
>
> > > > Thanks in advance,
> > > > Mauro
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 
> > > > 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+unsubscr...@googlegroups.com For more options, visit this  
> > > > group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Email with unwanted white spaces and special characters

2009-12-06 Thread Mauro Ribeiro
All I have in my template is the html/default.ctp:








The message is being written in controller and sent by CakePHP Email
Component.

Even if I use the default text (text/default.ctp), I get the same
issue...

No idea on what what`s going on.

On 5 dez, 18:52, mike karthauser  wrote:
> Perhaps you could post the php inside your template so we could see  
> it? Also are you sanitizing your email addresses as perhaps there is  
> extra characters being captured that you are giving to your view?
>
> Mike Karthauser
> Brightstorm limited
> Tel: 07939252144
>
> On 5 Dec 2009, at 12:22, Mauro Ribeiro  wrote:
>
> > Hi all!
>
> > I`m using the CakePHP Email Component and the resulting email appear
> > with some not wanted whitespaces and special characters along the
> > HTML.
>
> > Sometimes this happens inside  tags and break the href
> > property.
>
> > Here is an example:
>
> > -
>
> > http://www.empreendemia.com.br/users/
> > create/
> > user.em...@gmail.com+/X" target="_blank">http://
> >www.empreendemia.com.br/users/create/user.em a...@gmail.com /X > a>
>
> > -
>
> > It appeared a "+" in href link and some whitespaces inside text
>
> > Does someone now what`s happening?
>
> > Thanks in advance,
> > Mauro
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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+unsubscr...@googlegroups.com For more options, visit this  
> > group athttp://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en