Re: Lots of cakephp warnings in the log

2010-09-03 Thread Thunderstriker
ok i looked in to this a bit more
this only happens when I'm not in debug mode

and this is becous in the error handling function fron debugger there
is this:
if (error_reporting() == 0 || $code === 2048 || $code === 8192) {
return;
}

and in the normal production error handling:
if ($code === 2048 || $code === 8192) {
return;
}

so in production it doesn't check if error_reporting() is suppressed

On Aug 25, 10:15 am, Thunderstriker thunders...@gmail.com wrote:
 ok i digged a bit deeper and found that even when i remove all queries
 (-find, uses, ..) and i check in debug mode the only connection to
 the db it makes is for my sessions becous i save my sessions to the db
 and i still get thesewarningsbut only wen debug is turned of

 then i switched the sessions to php and the errors where gone  but as
 soon as i added any model-find they were back

 any ideas?

 On Aug 24, 9:56 pm, Jeremy Burns | Class Outfit

 jeremybu...@classoutfit.com wrote:
  I'd guess that model-query is your culprit. If it were me I'd want to find 
  out what's awry because I'd need to know the impact and fix it.

  Jeremy Burns
  Class Outfit

  jeremybu...@classoutfit.comhttp://www.classoutfit.com

  On 24 Aug 2010, at 20:49, Thunderstriker wrote:

   there are no errors poping up when debug set to 2 and everiting is
   working fine
   i am only using the model-find() and model-query() functions

   On 24 aug, 21:26, j.blotus j.blo...@gmail.com wrote:
   is there a reason you are running those ms sql functions directly
   instead of using model-find() etc?

   On Aug 24, 9:41 am, Thunderstriker thunders...@gmail.com wrote:

   i get a lot ofwarningsin my logs like:
   2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
   argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
   \libs\model\datasources\dbo\dbo_mssql.php, line 468]
   2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
   supplied argument is not a valid MS SQL-result resource in [C:\xampp
   \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
   2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
   supplied argument is not a valid MS SQL-result resource in [C:\xampp
   \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]

   thesewarningsjust overun my log files and make them almost useless.
   i looked up the lines and they used the @ sign to suppress these
   errors like:
   @mssql_free_result($this-results);

   and still the show up in my log is there anyway to really suppress
   them without changing the cake code?

   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: Lots of cakephp warnings in the log

2010-08-25 Thread Thunderstriker
ok i digged a bit deeper and found that even when i remove all queries
(-find, uses, ..) and i check in debug mode the only connection to
the db it makes is for my sessions becous i save my sessions to the db
and i still get these warnings but only wen debug is turned of

then i switched the sessions to php and the errors where gone  but as
soon as i added any model-find they were back

any ideas?

On Aug 24, 9:56 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
 I'd guess that model-query is your culprit. If it were me I'd want to find 
 out what's awry because I'd need to know the impact and fix it.

 Jeremy Burns
 Class Outfit

 jeremybu...@classoutfit.comhttp://www.classoutfit.com

 On 24 Aug 2010, at 20:49, Thunderstriker wrote:

  there are no errors poping up when debug set to 2 and everiting is
  working fine
  i am only using the model-find() and model-query() functions

  On 24 aug, 21:26, j.blotus j.blo...@gmail.com wrote:
  is there a reason you are running those ms sql functions directly
  instead of using model-find() etc?

  On Aug 24, 9:41 am, Thunderstriker thunders...@gmail.com wrote:

  i get a lot of warnings in my logs like:
  2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
  argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
  \libs\model\datasources\dbo\dbo_mssql.php, line 468]
  2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
  supplied argument is not a valid MS SQL-result resource in [C:\xampp
  \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
  2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
  supplied argument is not a valid MS SQL-result resource in [C:\xampp
  \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]

  these warnings just overun my log files and make them almost useless.
  i looked up the lines and they used the @ sign to suppress these
  errors like:
  @mssql_free_result($this-results);

  and still the show up in my log is there anyway to really suppress
  them without changing the cake code?

  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


Lots of cakephp warnings in the log

2010-08-24 Thread Thunderstriker
i get a lot of warnings in my logs like:
2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
\libs\model\datasources\dbo\dbo_mssql.php, line 468]
2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
supplied argument is not a valid MS SQL-result resource in [C:\xampp
\htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
supplied argument is not a valid MS SQL-result resource in [C:\xampp
\htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]

these warnings just overun my log files and make them almost useless.
i looked up the lines and they used the @ sign to suppress these
errors like:
@mssql_free_result($this-results);

and still the show up in my log is there anyway to really suppress
them without changing the cake code?

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: Lots of cakephp warnings in the log

2010-08-24 Thread Jeremy Burns | Class Outfit
Rather than trying to mask them, are you certain there isn't a genuine error 
going on somewhere? Does having debug set to 2 throw anything up?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 24 Aug 2010, at 14:41, Thunderstriker wrote:

 i get a lot of warnings in my logs like:
 2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
 argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
 \libs\model\datasources\dbo\dbo_mssql.php, line 468]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
 
 these warnings just overun my log files and make them almost useless.
 i looked up the lines and they used the @ sign to suppress these
 errors like:
 @mssql_free_result($this-results);
 
 and still the show up in my log is there anyway to really suppress
 them without changing the cake code?
 
 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

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: Lots of cakephp warnings in the log

2010-08-24 Thread j.blotus
is there a reason you are running those ms sql functions directly
instead of using model-find() etc?

On Aug 24, 9:41 am, Thunderstriker thunders...@gmail.com wrote:
 i get a lot of warnings in my logs like:
 2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
 argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
 \libs\model\datasources\dbo\dbo_mssql.php, line 468]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]

 these warnings just overun my log files and make them almost useless.
 i looked up the lines and they used the @ sign to suppress these
 errors like:
 @mssql_free_result($this-results);

 and still the show up in my log is there anyway to really suppress
 them without changing the cake code?

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: Lots of cakephp warnings in the log

2010-08-24 Thread Thunderstriker
there are no errors poping up when debug set to 2 and everiting is
working fine
i am only using the model-find() and model-query() functions

On 24 aug, 21:26, j.blotus j.blo...@gmail.com wrote:
 is there a reason you are running those ms sql functions directly
 instead of using model-find() etc?

 On Aug 24, 9:41 am, Thunderstriker thunders...@gmail.com wrote:

  i get a lot of warnings in my logs like:
  2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
  argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
  \libs\model\datasources\dbo\dbo_mssql.php, line 468]
  2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
  supplied argument is not a valid MS SQL-result resource in [C:\xampp
  \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
  2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
  supplied argument is not a valid MS SQL-result resource in [C:\xampp
  \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]

  these warnings just overun my log files and make them almost useless.
  i looked up the lines and they used the @ sign to suppress these
  errors like:
  @mssql_free_result($this-results);

  and still the show up in my log is there anyway to really suppress
  them without changing the cake code?

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: Lots of cakephp warnings in the log

2010-08-24 Thread Jeremy Burns | Class Outfit
I'd guess that model-query is your culprit. If it were me I'd want to find out 
what's awry because I'd need to know the impact and fix it.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 24 Aug 2010, at 20:49, Thunderstriker wrote:

 there are no errors poping up when debug set to 2 and everiting is
 working fine
 i am only using the model-find() and model-query() functions
 
 On 24 aug, 21:26, j.blotus j.blo...@gmail.com wrote:
 is there a reason you are running those ms sql functions directly
 instead of using model-find() etc?
 
 On Aug 24, 9:41 am, Thunderstriker thunders...@gmail.com wrote:
 
 i get a lot of warnings in my logs like:
 2010-08-24 09:34:01 Warning: Warning (2): mssql_num_rows(): supplied
 argument is not a valid MS SQL-result resource in [C:\xampp\htdocs\cake
 \libs\model\datasources\dbo\dbo_mssql.php, line 468]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
 2010-08-24 09:34:01 Warning: Warning (2): mssql_free_result():
 supplied argument is not a valid MS SQL-result resource in [C:\xampp
 \htdocs\cake\libs\model\datasources\dbo\dbo_mssql.php, line 180]
 
 these warnings just overun my log files and make them almost useless.
 i looked up the lines and they used the @ sign to suppress these
 errors like:
 @mssql_free_result($this-results);
 
 and still the show up in my log is there anyway to really suppress
 them without changing the cake code?
 
 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

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