Re: Certain strings crashing CakePHP - where do I look first?

2009-08-24 Thread Brendon Kozlowski (Realm)

My apologies, Chris.  I didn't click on the "newer" link at the bottom
of the Google Group topic to see it had been resolved prior to sending
my last email.  Like I said in my direct email reply though, I am glad
you got everything working as it should be.

It's possible (and completely plausible) that your host had disabled
the ability for users to disable mod_security2 via htaccess.  This may
not be the case for everyone though, so it's still a viable option to
try first.  :)


On Aug 24, 10:05 am, Chris P  wrote:
> Hi Brendon
>
> Thank you SO much for helping me out with this - it was indeed a server
> issue - mod_security2 is the culprit and after a brief battle they
> agreed to turn it off.
>
> As mentioned on the weekend, I couldn't have ascertained this without
> your and everyone else's help to rule out my code and cake, and
> establish that the server was a feasible culprit.
>
> Thanks *hugely*,
> Chris
>
>
>
> Brendon Kozlowski (Realm) wrote:
> > I've been thinking about this over the weekend, and...to be honest, if
> > it's a server issue (you're testing with the same version of CakePHP
> > on both your development machine, and production server, right?), I
> > think you're probably going to have to resolve this with your host.
>
> > To see what options are available/running on your host within PHP, you
> > can use the phpinfo() function.  You simply run that on a page all of
> > its own and view the output (both production and development) and
> > compare the two results to see what might be different (other than
> > paths and Operating Systems).
>
> >  >     phpinfo();
> > ?>
>
> > On Aug 21, 7:57 pm, technicaltitch  wrote:
>
> >> You are such stars for helping me with this - its incredible thank you
> >> so much!
>
> >> I tried the new redirect method but got errors (missing arguments for
> >> AppController::redirect(), $status and $exit undefined) when I tried
> >> to log in, as this involved a redirect to the login form, so I logged
> >> in and then copied across the redirect override - to no avail - when I
> >> save the changes it redirects to the homepage, which contains no hint
> >> of the error. Also got the site working locally (was my PHP version
> >> thanks so much AD7six) - and can't repeat the defect. Do these point
> >> to Apache or PHP as the cause?
>
> >> I tried disabling mod_security using:
> >> 
> >>         SecFilterEngine Off
> >>         SecFilterScanPOST Off
> >> 
> >> in every .htaccess file in my site, but it didn't make any difference
> >> (I sanitize everything, and it can't be this as it doesn't happen
> >> locally - unless it could be that local is Windows and host is Linux -
> >> seems very unlikely).
>
> >> I'd really appreciate any tips if anything's obvious about resolving
> >> the redirect override - or does the fact that it works locally mean
> >> this is unlikely to reveal anything?
>
> >> Tried creating a test subdirectory but suspected it wouldn't work - I
> >> get a 500 error probably related to my non-standard directory layout
> >> (so that my cake and app directories are outside my public_html
> >> directory - seemed safer).
>
> >> My reason for another site is in case the forum software has somehow
> >> added this filtering site-wide - it seems to be a server setting, (its
> >> only $11). I do get this error when I try the text in any table in the
> >> system (including tables that are nothing to do with tinyMCE and very
> >> little to do with the rest of the code). Will try baking an unrelated
> >> table to see if I can repeat it there but I very much expect to as it
> >> seems platform related.
>
> >> As far as I can tell, I don't have access to PHP settings - just
> >> CPanel on a shared hosting platform.
>
> >> Am I right in suspecting Apache or PHP? If so any ideas where I can
> >> look? I can't find anything likely by googling filters for either.
> >> Does Cake automatically use certain PHP filters on all POST and GET
> >> submissions or something?
>
> >> Thanks HUGELY, I'll be so incredibly happy when I/we crack this
> >> Chris/tt
>
> >> On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>
> >>  wrote:
>
> >>> I like archF6's suggestion, it's easy to test, and if it doesn't solve
> >>> it, continue from there.  It might work, it might not.  I don't think
> >>> a 500 server error would automatically redirect (but instead stop
> >>> execution).  Regardless, it's about a 20 second test.  With Dreamhost
> >>> I can enable/disable mod_security, I'm not sure if you would be able
> >>> to test that on your host or not.  To be clear - I don't know why
> >>> mod_security would mess with this, but it can't hurt to take a look if
> >>> you're able to make such changes.
>
> >>> On Aug 17, 11:23 am, technicaltitch  wrote:
>
>  App was built Oct 2007 but it's taken the organization this long to
>  find funding for someone to test and work on it, (hence I'm struggling
>  to get my head round stuff again).
>
>  I will have a go at creating a test s

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-24 Thread Chris P
Hi Brendon

Thank you SO much for helping me out with this - it was indeed a server 
issue - mod_security2 is the culprit and after a brief battle they 
agreed to turn it off.

As mentioned on the weekend, I couldn't have ascertained this without 
your and everyone else's help to rule out my code and cake, and 
establish that the server was a feasible culprit.

Thanks *hugely*,
Chris


Brendon Kozlowski (Realm) wrote:
> I've been thinking about this over the weekend, and...to be honest, if
> it's a server issue (you're testing with the same version of CakePHP
> on both your development machine, and production server, right?), I
> think you're probably going to have to resolve this with your host.
>
> To see what options are available/running on your host within PHP, you
> can use the phpinfo() function.  You simply run that on a page all of
> its own and view the output (both production and development) and
> compare the two results to see what might be different (other than
> paths and Operating Systems).
>
>  phpinfo();
> ?>
>
> On Aug 21, 7:57 pm, technicaltitch  wrote:
>   
>> You are such stars for helping me with this - its incredible thank you
>> so much!
>>
>> I tried the new redirect method but got errors (missing arguments for
>> AppController::redirect(), $status and $exit undefined) when I tried
>> to log in, as this involved a redirect to the login form, so I logged
>> in and then copied across the redirect override - to no avail - when I
>> save the changes it redirects to the homepage, which contains no hint
>> of the error. Also got the site working locally (was my PHP version
>> thanks so much AD7six) - and can't repeat the defect. Do these point
>> to Apache or PHP as the cause?
>>
>> I tried disabling mod_security using:
>> 
>> SecFilterEngine Off
>> SecFilterScanPOST Off
>> 
>> in every .htaccess file in my site, but it didn't make any difference
>> (I sanitize everything, and it can't be this as it doesn't happen
>> locally - unless it could be that local is Windows and host is Linux -
>> seems very unlikely).
>>
>> I'd really appreciate any tips if anything's obvious about resolving
>> the redirect override - or does the fact that it works locally mean
>> this is unlikely to reveal anything?
>>
>> Tried creating a test subdirectory but suspected it wouldn't work - I
>> get a 500 error probably related to my non-standard directory layout
>> (so that my cake and app directories are outside my public_html
>> directory - seemed safer).
>>
>> My reason for another site is in case the forum software has somehow
>> added this filtering site-wide - it seems to be a server setting, (its
>> only $11). I do get this error when I try the text in any table in the
>> system (including tables that are nothing to do with tinyMCE and very
>> little to do with the rest of the code). Will try baking an unrelated
>> table to see if I can repeat it there but I very much expect to as it
>> seems platform related.
>>
>> As far as I can tell, I don't have access to PHP settings - just
>> CPanel on a shared hosting platform.
>>
>> Am I right in suspecting Apache or PHP? If so any ideas where I can
>> look? I can't find anything likely by googling filters for either.
>> Does Cake automatically use certain PHP filters on all POST and GET
>> submissions or something?
>>
>> Thanks HUGELY, I'll be so incredibly happy when I/we crack this
>> Chris/tt
>>
>> On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>>
>>
>>
>>  wrote:
>> 
>>> I like archF6's suggestion, it's easy to test, and if it doesn't solve
>>> it, continue from there.  It might work, it might not.  I don't think
>>> a 500 server error would automatically redirect (but instead stop
>>> execution).  Regardless, it's about a 20 second test.  With Dreamhost
>>> I can enable/disable mod_security, I'm not sure if you would be able
>>> to test that on your host or not.  To be clear - I don't know why
>>> mod_security would mess with this, but it can't hurt to take a look if
>>> you're able to make such changes.
>>>   
>>> On Aug 17, 11:23 am, technicaltitch  wrote:
>>>   
 App was built Oct 2007 but it's taken the organization this long to
 find funding for someone to test and work on it, (hence I'm struggling
 to get my head round stuff again).
 
 I will have a go at creating a test subdirectory and adding that debug
 code- fantastic fantastic ideas thanks - probably blindingly obvious
 to PHPers but not to me (a decade working with C, Java and .NET but
 only ever used PHP on volunteer projects).
 
 Is it possible that a phpBB install may have had this as a side-
 effect? Ie, can filters be set up on all form input for a given space
 on a shared CPanel server?
 
 I have commented out my controller method and seen the error, so I'm
 assuming the redirect is called elsewhere, where do I put the redirect
 override code pls?
 
 As

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-24 Thread Brendon Kozlowski (Realm)

I've been thinking about this over the weekend, and...to be honest, if
it's a server issue (you're testing with the same version of CakePHP
on both your development machine, and production server, right?), I
think you're probably going to have to resolve this with your host.

To see what options are available/running on your host within PHP, you
can use the phpinfo() function.  You simply run that on a page all of
its own and view the output (both production and development) and
compare the two results to see what might be different (other than
paths and Operating Systems).



On Aug 21, 7:57 pm, technicaltitch  wrote:
> You are such stars for helping me with this - its incredible thank you
> so much!
>
> I tried the new redirect method but got errors (missing arguments for
> AppController::redirect(), $status and $exit undefined) when I tried
> to log in, as this involved a redirect to the login form, so I logged
> in and then copied across the redirect override - to no avail - when I
> save the changes it redirects to the homepage, which contains no hint
> of the error. Also got the site working locally (was my PHP version
> thanks so much AD7six) - and can't repeat the defect. Do these point
> to Apache or PHP as the cause?
>
> I tried disabling mod_security using:
> 
>         SecFilterEngine Off
>         SecFilterScanPOST Off
> 
> in every .htaccess file in my site, but it didn't make any difference
> (I sanitize everything, and it can't be this as it doesn't happen
> locally - unless it could be that local is Windows and host is Linux -
> seems very unlikely).
>
> I'd really appreciate any tips if anything's obvious about resolving
> the redirect override - or does the fact that it works locally mean
> this is unlikely to reveal anything?
>
> Tried creating a test subdirectory but suspected it wouldn't work - I
> get a 500 error probably related to my non-standard directory layout
> (so that my cake and app directories are outside my public_html
> directory - seemed safer).
>
> My reason for another site is in case the forum software has somehow
> added this filtering site-wide - it seems to be a server setting, (its
> only $11). I do get this error when I try the text in any table in the
> system (including tables that are nothing to do with tinyMCE and very
> little to do with the rest of the code). Will try baking an unrelated
> table to see if I can repeat it there but I very much expect to as it
> seems platform related.
>
> As far as I can tell, I don't have access to PHP settings - just
> CPanel on a shared hosting platform.
>
> Am I right in suspecting Apache or PHP? If so any ideas where I can
> look? I can't find anything likely by googling filters for either.
> Does Cake automatically use certain PHP filters on all POST and GET
> submissions or something?
>
> Thanks HUGELY, I'll be so incredibly happy when I/we crack this
> Chris/tt
>
> On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>
>
>
>  wrote:
> > I like archF6's suggestion, it's easy to test, and if it doesn't solve
> > it, continue from there.  It might work, it might not.  I don't think
> > a 500 server error would automatically redirect (but instead stop
> > execution).  Regardless, it's about a 20 second test.  With Dreamhost
> > I can enable/disable mod_security, I'm not sure if you would be able
> > to test that on your host or not.  To be clear - I don't know why
> > mod_security would mess with this, but it can't hurt to take a look if
> > you're able to make such changes.
>
> > On Aug 17, 11:23 am, technicaltitch  wrote:
>
> > > App was built Oct 2007 but it's taken the organization this long to
> > > find funding for someone to test and work on it, (hence I'm struggling
> > > to get my head round stuff again).
>
> > > I will have a go at creating a test subdirectory and adding that debug
> > > code- fantastic fantastic ideas thanks - probably blindingly obvious
> > > to PHPers but not to me (a decade working with C, Java and .NET but
> > > only ever used PHP on volunteer projects).
>
> > > Is it possible that a phpBB install may have had this as a side-
> > > effect? Ie, can filters be set up on all form input for a given space
> > > on a shared CPanel server?
>
> > > I have commented out my controller method and seen the error, so I'm
> > > assuming the redirect is called elsewhere, where do I put the redirect
> > > override code pls?
>
> > > As far as I can tell it isn't my code requesting the redirect but
> > > perhaps I'm missing something obvious? I commented out my controller
> > > method, route.php just has the default page specified. Tried debug
> > > level 1 and 2 and nothing is displayed about the error, or anything
> > > preceding the current page.
>
> > > Thanks SO much for your help - this is all so useful and despite my
> > > wandering off-subject, absolutely exactly how I hoped people would
> > > help me and I'm massively grateful,
> > > Chris- Hide quoted text -
>
> - Show quoted text -
--~--~-~--

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-23 Thread Bert Van den Brande

I'm glad it's solved :)

On Sun, Aug 23, 2009 at 3:38 PM, technicaltitch wrote:
>
> After a small struggle with my budget hosts, they've told me my text
> was triggering a mod_security2 rule and are willing to disable it for
> my site (if I assure them I'm on the case re security). As far as I
> can tell you cannot disable this in .htaccess files.
>
> Thanks SO MUCH for helping me eliminate my code and CakePHP - I
> couldn't approach my hosts until I was confident that it wasn't my
> code or CakePHP, and that blaming the Apache config was plausible,
> which I couldn't have done without the generous assistance of everyone
> here.
>
> A HUGE thank you (from me and the charity Comunidad Inti Wara Yassi)
>
>
> On Aug 22, 1:36 am, technicaltitch  wrote:
>> I submitted a ticket about this to my host's server admin, and
>> includinghttp://geocities.com/in the request caused:
>>
>> Not Acceptable
>> An appropriate representation of the requested resource /pdesk.cgi
>> could not be found on this server.
>> Additionally, a 404 Not Found error was encountered while trying to
>> use an ErrorDocument to handle the request.
>> HTTPD Server Server atwww.getsomesupport.comPort 443
>>
>> Removing those few characters allowed the ticket to submit
>> successfully.
>>
>> On Aug 22, 12:57 am, technicaltitch  wrote:
>>
>>
>>
>> > You are such stars for helping me with this - its incredible thank you
>> > so much!
>>
>> > I tried the new redirect method but got errors (missing arguments for
>> > AppController::redirect(), $status and $exit undefined) when I tried
>> > to log in, as this involved a redirect to the login form, so I logged
>> > in and then copied across the redirect override - to no avail - when I
>> > save the changes it redirects to the homepage, which contains no hint
>> > of the error. Also got the site working locally (was my PHP version
>> > thanks so much AD7six) - and can't repeat the defect. Do these point
>> > to Apache or PHP as the cause?
>>
>> > I tried disabling mod_security using:
>> > 
>> >         SecFilterEngine Off
>> >         SecFilterScanPOST Off
>> > 
>> > in every .htaccess file in my site, but it didn't make any difference
>> > (I sanitize everything, and it can't be this as it doesn't happen
>> > locally - unless it could be that local is Windows and host is Linux -
>> > seems very unlikely).
>>
>> > I'd really appreciate any tips if anything's obvious about resolving
>> > the redirect override - or does the fact that it works locally mean
>> > this is unlikely to reveal anything?
>>
>> > Tried creating a test subdirectory but suspected it wouldn't work - I
>> > get a 500 error probably related to my non-standard directory layout
>> > (so that my cake and app directories are outside my public_html
>> > directory - seemed safer).
>>
>> > My reason for another site is in case the forum software has somehow
>> > added this filtering site-wide - it seems to be a server setting, (its
>> > only $11). I do get this error when I try the text in any table in the
>> > system (including tables that are nothing to do with tinyMCE and very
>> > little to do with the rest of the code). Will try baking an unrelated
>> > table to see if I can repeat it there but I very much expect to as it
>> > seems platform related.
>>
>> > As far as I can tell, I don't have access to PHP settings - just
>> > CPanel on a shared hosting platform.
>>
>> > Am I right in suspecting Apache or PHP? If so any ideas where I can
>> > look? I can't find anything likely by googling filters for either.
>> > Does Cake automatically use certain PHP filters on all POST and GET
>> > submissions or something?
>>
>> > Thanks HUGELY, I'll be so incredibly happy when I/we crack this
>> > Chris/tt
>>
>> > On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>>
>> >  wrote:
>> > > I like archF6's suggestion, it's easy to test, and if it doesn't solve
>> > > it, continue from there.  It might work, it might not.  I don't think
>> > > a 500 server error would automatically redirect (but instead stop
>> > > execution).  Regardless, it's about a 20 second test.  With Dreamhost
>> > > I can enable/disable mod_security, I'm not sure if you would be able
>> > > to test that on your host or not.  To be clear - I don't know why
>> > > mod_security would mess with this, but it can't hurt to take a look if
>> > > you're able to make such changes.
>>
>> > > On Aug 17, 11:23 am, technicaltitch  wrote:
>>
>> > > > App was built Oct 2007 but it's taken the organization this long to
>> > > > find funding for someone to test and work on it, (hence I'm struggling
>> > > > to get my head round stuff again).
>>
>> > > > I will have a go at creating a test subdirectory and adding that debug
>> > > > code- fantastic fantastic ideas thanks - probably blindingly obvious
>> > > > to PHPers but not to me (a decade working with C, Java and .NET but
>> > > > only ever used PHP on volunteer projects).
>>
>> > > > Is it possible that a phpBB install may have had this as a si

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-23 Thread technicaltitch

After a small struggle with my budget hosts, they've told me my text
was triggering a mod_security2 rule and are willing to disable it for
my site (if I assure them I'm on the case re security). As far as I
can tell you cannot disable this in .htaccess files.

Thanks SO MUCH for helping me eliminate my code and CakePHP - I
couldn't approach my hosts until I was confident that it wasn't my
code or CakePHP, and that blaming the Apache config was plausible,
which I couldn't have done without the generous assistance of everyone
here.

A HUGE thank you (from me and the charity Comunidad Inti Wara Yassi)


On Aug 22, 1:36 am, technicaltitch  wrote:
> I submitted a ticket about this to my host's server admin, and
> includinghttp://geocities.com/in the request caused:
>
> Not Acceptable
> An appropriate representation of the requested resource /pdesk.cgi
> could not be found on this server.
> Additionally, a 404 Not Found error was encountered while trying to
> use an ErrorDocument to handle the request.
> HTTPD Server Server atwww.getsomesupport.comPort 443
>
> Removing those few characters allowed the ticket to submit
> successfully.
>
> On Aug 22, 12:57 am, technicaltitch  wrote:
>
>
>
> > You are such stars for helping me with this - its incredible thank you
> > so much!
>
> > I tried the new redirect method but got errors (missing arguments for
> > AppController::redirect(), $status and $exit undefined) when I tried
> > to log in, as this involved a redirect to the login form, so I logged
> > in and then copied across the redirect override - to no avail - when I
> > save the changes it redirects to the homepage, which contains no hint
> > of the error. Also got the site working locally (was my PHP version
> > thanks so much AD7six) - and can't repeat the defect. Do these point
> > to Apache or PHP as the cause?
>
> > I tried disabling mod_security using:
> > 
> >         SecFilterEngine Off
> >         SecFilterScanPOST Off
> > 
> > in every .htaccess file in my site, but it didn't make any difference
> > (I sanitize everything, and it can't be this as it doesn't happen
> > locally - unless it could be that local is Windows and host is Linux -
> > seems very unlikely).
>
> > I'd really appreciate any tips if anything's obvious about resolving
> > the redirect override - or does the fact that it works locally mean
> > this is unlikely to reveal anything?
>
> > Tried creating a test subdirectory but suspected it wouldn't work - I
> > get a 500 error probably related to my non-standard directory layout
> > (so that my cake and app directories are outside my public_html
> > directory - seemed safer).
>
> > My reason for another site is in case the forum software has somehow
> > added this filtering site-wide - it seems to be a server setting, (its
> > only $11). I do get this error when I try the text in any table in the
> > system (including tables that are nothing to do with tinyMCE and very
> > little to do with the rest of the code). Will try baking an unrelated
> > table to see if I can repeat it there but I very much expect to as it
> > seems platform related.
>
> > As far as I can tell, I don't have access to PHP settings - just
> > CPanel on a shared hosting platform.
>
> > Am I right in suspecting Apache or PHP? If so any ideas where I can
> > look? I can't find anything likely by googling filters for either.
> > Does Cake automatically use certain PHP filters on all POST and GET
> > submissions or something?
>
> > Thanks HUGELY, I'll be so incredibly happy when I/we crack this
> > Chris/tt
>
> > On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>
> >  wrote:
> > > I like archF6's suggestion, it's easy to test, and if it doesn't solve
> > > it, continue from there.  It might work, it might not.  I don't think
> > > a 500 server error would automatically redirect (but instead stop
> > > execution).  Regardless, it's about a 20 second test.  With Dreamhost
> > > I can enable/disable mod_security, I'm not sure if you would be able
> > > to test that on your host or not.  To be clear - I don't know why
> > > mod_security would mess with this, but it can't hurt to take a look if
> > > you're able to make such changes.
>
> > > On Aug 17, 11:23 am, technicaltitch  wrote:
>
> > > > App was built Oct 2007 but it's taken the organization this long to
> > > > find funding for someone to test and work on it, (hence I'm struggling
> > > > to get my head round stuff again).
>
> > > > I will have a go at creating a test subdirectory and adding that debug
> > > > code- fantastic fantastic ideas thanks - probably blindingly obvious
> > > > to PHPers but not to me (a decade working with C, Java and .NET but
> > > > only ever used PHP on volunteer projects).
>
> > > > Is it possible that a phpBB install may have had this as a side-
> > > > effect? Ie, can filters be set up on all form input for a given space
> > > > on a shared CPanel server?
>
> > > > I have commented out my controller method and seen the error, so I'm
> >

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-21 Thread technicaltitch

I submitted a ticket about this to my host's server admin, and
including http://geocities.com/ in the request caused:

Not Acceptable
An appropriate representation of the requested resource /pdesk.cgi
could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
HTTPD Server Server at www.getsomesupport.com Port 443

Removing those few characters allowed the ticket to submit
successfully.

On Aug 22, 12:57 am, technicaltitch  wrote:
> You are such stars for helping me with this - its incredible thank you
> so much!
>
> I tried the new redirect method but got errors (missing arguments for
> AppController::redirect(), $status and $exit undefined) when I tried
> to log in, as this involved a redirect to the login form, so I logged
> in and then copied across the redirect override - to no avail - when I
> save the changes it redirects to the homepage, which contains no hint
> of the error. Also got the site working locally (was my PHP version
> thanks so much AD7six) - and can't repeat the defect. Do these point
> to Apache or PHP as the cause?
>
> I tried disabling mod_security using:
> 
>         SecFilterEngine Off
>         SecFilterScanPOST Off
> 
> in every .htaccess file in my site, but it didn't make any difference
> (I sanitize everything, and it can't be this as it doesn't happen
> locally - unless it could be that local is Windows and host is Linux -
> seems very unlikely).
>
> I'd really appreciate any tips if anything's obvious about resolving
> the redirect override - or does the fact that it works locally mean
> this is unlikely to reveal anything?
>
> Tried creating a test subdirectory but suspected it wouldn't work - I
> get a 500 error probably related to my non-standard directory layout
> (so that my cake and app directories are outside my public_html
> directory - seemed safer).
>
> My reason for another site is in case the forum software has somehow
> added this filtering site-wide - it seems to be a server setting, (its
> only $11). I do get this error when I try the text in any table in the
> system (including tables that are nothing to do with tinyMCE and very
> little to do with the rest of the code). Will try baking an unrelated
> table to see if I can repeat it there but I very much expect to as it
> seems platform related.
>
> As far as I can tell, I don't have access to PHP settings - just
> CPanel on a shared hosting platform.
>
> Am I right in suspecting Apache or PHP? If so any ideas where I can
> look? I can't find anything likely by googling filters for either.
> Does Cake automatically use certain PHP filters on all POST and GET
> submissions or something?
>
> Thanks HUGELY, I'll be so incredibly happy when I/we crack this
> Chris/tt
>
> On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>
>
>
>  wrote:
> > I like archF6's suggestion, it's easy to test, and if it doesn't solve
> > it, continue from there.  It might work, it might not.  I don't think
> > a 500 server error would automatically redirect (but instead stop
> > execution).  Regardless, it's about a 20 second test.  With Dreamhost
> > I can enable/disable mod_security, I'm not sure if you would be able
> > to test that on your host or not.  To be clear - I don't know why
> > mod_security would mess with this, but it can't hurt to take a look if
> > you're able to make such changes.
>
> > On Aug 17, 11:23 am, technicaltitch  wrote:
>
> > > App was built Oct 2007 but it's taken the organization this long to
> > > find funding for someone to test and work on it, (hence I'm struggling
> > > to get my head round stuff again).
>
> > > I will have a go at creating a test subdirectory and adding that debug
> > > code- fantastic fantastic ideas thanks - probably blindingly obvious
> > > to PHPers but not to me (a decade working with C, Java and .NET but
> > > only ever used PHP on volunteer projects).
>
> > > Is it possible that a phpBB install may have had this as a side-
> > > effect? Ie, can filters be set up on all form input for a given space
> > > on a shared CPanel server?
>
> > > I have commented out my controller method and seen the error, so I'm
> > > assuming the redirect is called elsewhere, where do I put the redirect
> > > override code pls?
>
> > > As far as I can tell it isn't my code requesting the redirect but
> > > perhaps I'm missing something obvious? I commented out my controller
> > > method, route.php just has the default page specified. Tried debug
> > > level 1 and 2 and nothing is displayed about the error, or anything
> > > preceding the current page.
>
> > > Thanks SO much for your help - this is all so useful and despite my
> > > wandering off-subject, absolutely exactly how I hoped people would
> > > help me and I'm massively grateful,
> > > Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group,

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-21 Thread technicaltitch

Sorry for my lack of clarity - simple version:

The redirect override caused errors, but didn't seem to be called when
I repeated the error anyway - I get a completely normal homepage
rather than a Save confirmation when I save anything with any field
containing http://geocities.com/

Same code locally does not exhibit this error - only difference is
MySQL version, that its Windows-based, and the server configuration.

Disabling mod_security did not solve the error.

Test subdirectory under public_html returned a 500 error.

Unrelated tables in the system still exhibit the error.

Does this point to Apache or PHP? And if so any diagnosis ideas?

THANK YOU ALL!

On Aug 22, 12:57 am, technicaltitch  wrote:
> You are such stars for helping me with this - its incredible thank you
> so much!
>
> I tried the new redirect method but got errors (missing arguments for
> AppController::redirect(), $status and $exit undefined) when I tried
> to log in, as this involved a redirect to the login form, so I logged
> in and then copied across the redirect override - to no avail - when I
> save the changes it redirects to the homepage, which contains no hint
> of the error. Also got the site working locally (was my PHP version
> thanks so much AD7six) - and can't repeat the defect. Do these point
> to Apache or PHP as the cause?
>
> I tried disabling mod_security using:
> 
>         SecFilterEngine Off
>         SecFilterScanPOST Off
> 
> in every .htaccess file in my site, but it didn't make any difference
> (I sanitize everything, and it can't be this as it doesn't happen
> locally - unless it could be that local is Windows and host is Linux -
> seems very unlikely).
>
> I'd really appreciate any tips if anything's obvious about resolving
> the redirect override - or does the fact that it works locally mean
> this is unlikely to reveal anything?
>
> Tried creating a test subdirectory but suspected it wouldn't work - I
> get a 500 error probably related to my non-standard directory layout
> (so that my cake and app directories are outside my public_html
> directory - seemed safer).
>
> My reason for another site is in case the forum software has somehow
> added this filtering site-wide - it seems to be a server setting, (its
> only $11). I do get this error when I try the text in any table in the
> system (including tables that are nothing to do with tinyMCE and very
> little to do with the rest of the code). Will try baking an unrelated
> table to see if I can repeat it there but I very much expect to as it
> seems platform related.
>
> As far as I can tell, I don't have access to PHP settings - just
> CPanel on a shared hosting platform.
>
> Am I right in suspecting Apache or PHP? If so any ideas where I can
> look? I can't find anything likely by googling filters for either.
> Does Cake automatically use certain PHP filters on all POST and GET
> submissions or something?
>
> Thanks HUGELY, I'll be so incredibly happy when I/we crack this
> Chris/tt
>
> On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
>
>
>
>  wrote:
> > I like archF6's suggestion, it's easy to test, and if it doesn't solve
> > it, continue from there.  It might work, it might not.  I don't think
> > a 500 server error would automatically redirect (but instead stop
> > execution).  Regardless, it's about a 20 second test.  With Dreamhost
> > I can enable/disable mod_security, I'm not sure if you would be able
> > to test that on your host or not.  To be clear - I don't know why
> > mod_security would mess with this, but it can't hurt to take a look if
> > you're able to make such changes.
>
> > On Aug 17, 11:23 am, technicaltitch  wrote:
>
> > > App was built Oct 2007 but it's taken the organization this long to
> > > find funding for someone to test and work on it, (hence I'm struggling
> > > to get my head round stuff again).
>
> > > I will have a go at creating a test subdirectory and adding that debug
> > > code- fantastic fantastic ideas thanks - probably blindingly obvious
> > > to PHPers but not to me (a decade working with C, Java and .NET but
> > > only ever used PHP on volunteer projects).
>
> > > Is it possible that a phpBB install may have had this as a side-
> > > effect? Ie, can filters be set up on all form input for a given space
> > > on a shared CPanel server?
>
> > > I have commented out my controller method and seen the error, so I'm
> > > assuming the redirect is called elsewhere, where do I put the redirect
> > > override code pls?
>
> > > As far as I can tell it isn't my code requesting the redirect but
> > > perhaps I'm missing something obvious? I commented out my controller
> > > method, route.php just has the default page specified. Tried debug
> > > level 1 and 2 and nothing is displayed about the error, or anything
> > > preceding the current page.
>
> > > Thanks SO much for your help - this is all so useful and despite my
> > > wandering off-subject, absolutely exactly how I hoped people would
> > > help me and I'm massivel

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-21 Thread technicaltitch

You are such stars for helping me with this - its incredible thank you
so much!

I tried the new redirect method but got errors (missing arguments for
AppController::redirect(), $status and $exit undefined) when I tried
to log in, as this involved a redirect to the login form, so I logged
in and then copied across the redirect override - to no avail - when I
save the changes it redirects to the homepage, which contains no hint
of the error. Also got the site working locally (was my PHP version
thanks so much AD7six) - and can't repeat the defect. Do these point
to Apache or PHP as the cause?

I tried disabling mod_security using:

SecFilterEngine Off
SecFilterScanPOST Off

in every .htaccess file in my site, but it didn't make any difference
(I sanitize everything, and it can't be this as it doesn't happen
locally - unless it could be that local is Windows and host is Linux -
seems very unlikely).

I'd really appreciate any tips if anything's obvious about resolving
the redirect override - or does the fact that it works locally mean
this is unlikely to reveal anything?

Tried creating a test subdirectory but suspected it wouldn't work - I
get a 500 error probably related to my non-standard directory layout
(so that my cake and app directories are outside my public_html
directory - seemed safer).

My reason for another site is in case the forum software has somehow
added this filtering site-wide - it seems to be a server setting, (its
only $11). I do get this error when I try the text in any table in the
system (including tables that are nothing to do with tinyMCE and very
little to do with the rest of the code). Will try baking an unrelated
table to see if I can repeat it there but I very much expect to as it
seems platform related.

As far as I can tell, I don't have access to PHP settings - just
CPanel on a shared hosting platform.

Am I right in suspecting Apache or PHP? If so any ideas where I can
look? I can't find anything likely by googling filters for either.
Does Cake automatically use certain PHP filters on all POST and GET
submissions or something?

Thanks HUGELY, I'll be so incredibly happy when I/we crack this
Chris/tt



On Aug 18, 5:11 pm, "Brendon Kozlowski (Realm)"
 wrote:
> I like archF6's suggestion, it's easy to test, and if it doesn't solve
> it, continue from there.  It might work, it might not.  I don't think
> a 500 server error would automatically redirect (but instead stop
> execution).  Regardless, it's about a 20 second test.  With Dreamhost
> I can enable/disable mod_security, I'm not sure if you would be able
> to test that on your host or not.  To be clear - I don't know why
> mod_security would mess with this, but it can't hurt to take a look if
> you're able to make such changes.
>
> On Aug 17, 11:23 am, technicaltitch  wrote:
>
>
>
> > App was built Oct 2007 but it's taken the organization this long to
> > find funding for someone to test and work on it, (hence I'm struggling
> > to get my head round stuff again).
>
> > I will have a go at creating a test subdirectory and adding that debug
> > code- fantastic fantastic ideas thanks - probably blindingly obvious
> > to PHPers but not to me (a decade working with C, Java and .NET but
> > only ever used PHP on volunteer projects).
>
> > Is it possible that a phpBB install may have had this as a side-
> > effect? Ie, can filters be set up on all form input for a given space
> > on a shared CPanel server?
>
> > I have commented out my controller method and seen the error, so I'm
> > assuming the redirect is called elsewhere, where do I put the redirect
> > override code pls?
>
> > As far as I can tell it isn't my code requesting the redirect but
> > perhaps I'm missing something obvious? I commented out my controller
> > method, route.php just has the default page specified. Tried debug
> > level 1 and 2 and nothing is displayed about the error, or anything
> > preceding the current page.
>
> > Thanks SO much for your help - this is all so useful and despite my
> > wandering off-subject, absolutely exactly how I hoped people would
> > help me and I'm massively grateful,
> > Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-18 Thread Brendon Kozlowski (Realm)

I like archF6's suggestion, it's easy to test, and if it doesn't solve
it, continue from there.  It might work, it might not.  I don't think
a 500 server error would automatically redirect (but instead stop
execution).  Regardless, it's about a 20 second test.  With Dreamhost
I can enable/disable mod_security, I'm not sure if you would be able
to test that on your host or not.  To be clear - I don't know why
mod_security would mess with this, but it can't hurt to take a look if
you're able to make such changes.

On Aug 17, 11:23 am, technicaltitch  wrote:
> App was built Oct 2007 but it's taken the organization this long to
> find funding for someone to test and work on it, (hence I'm struggling
> to get my head round stuff again).
>
> I will have a go at creating a test subdirectory and adding that debug
> code- fantastic fantastic ideas thanks - probably blindingly obvious
> to PHPers but not to me (a decade working with C, Java and .NET but
> only ever used PHP on volunteer projects).
>
> Is it possible that a phpBB install may have had this as a side-
> effect? Ie, can filters be set up on all form input for a given space
> on a shared CPanel server?
>
> I have commented out my controller method and seen the error, so I'm
> assuming the redirect is called elsewhere, where do I put the redirect
> override code pls?
>
> As far as I can tell it isn't my code requesting the redirect but
> perhaps I'm missing something obvious? I commented out my controller
> method, route.php just has the default page specified. Tried debug
> level 1 and 2 and nothing is displayed about the error, or anything
> preceding the current page.
>
> Thanks SO much for your help - this is all so useful and despite my
> wandering off-subject, absolutely exactly how I hoped people would
> help me and I'm massively grateful,
> Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-18 Thread Bert Van den Brande

The redirect method belongs to Controller in /cake/libs/controller.php .
That's the cake lib file, you don't want to edit that one.

You can either :
* define a new class or edit the existing class named 'AppController'
in /app/app_controller.php
* simply overwrite the 'redirect' function in your own controller
class, though I'm not sure this will be sufficient since we are in
doubt that Cake ever arrives at your own controller code

Good luck with it :)

On Mon, Aug 17, 2009 at 5:23 PM, technicaltitch wrote:
>
> App was built Oct 2007 but it's taken the organization this long to
> find funding for someone to test and work on it, (hence I'm struggling
> to get my head round stuff again).
>
> I will have a go at creating a test subdirectory and adding that debug
> code- fantastic fantastic ideas thanks - probably blindingly obvious
> to PHPers but not to me (a decade working with C, Java and .NET but
> only ever used PHP on volunteer projects).
>
> Is it possible that a phpBB install may have had this as a side-
> effect? Ie, can filters be set up on all form input for a given space
> on a shared CPanel server?
>
> I have commented out my controller method and seen the error, so I'm
> assuming the redirect is called elsewhere, where do I put the redirect
> override code pls?
>
> As far as I can tell it isn't my code requesting the redirect but
> perhaps I'm missing something obvious? I commented out my controller
> method, route.php just has the default page specified. Tried debug
> level 1 and 2 and nothing is displayed about the error, or anything
> preceding the current page.
>
>
> Thanks SO much for your help - this is all so useful and despite my
> wandering off-subject, absolutely exactly how I hoped people would
> help me and I'm massively grateful,
> Chris
> >
>

--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread archF6

Also worth mentioning, if SecFilterScanPOST Off doesn't do it, or
causes new 500 server errors, you can rebuild apache (easily if you
have easyApache!), just be sure to not include the Security Mod module.
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread archF6

I experienced a very similar problem, but with textile, not TinyMCE.
Basically in certain circumstances, upon submission of a textarea
field, I received a 500 internal server error (I also had issues with
the word 'from').  This only happened on production, which, per
foldiman's post, suggests it is a server config issue.  By adding
SecFilterScanPOST Off to the .htaccess file, I was able to resolve the
issue.  Hope that helps.



On Aug 17, 11:23 am, technicaltitch  wrote:
> App was built Oct 2007 but it's taken the organization this long to
> find funding for someone to test and work on it, (hence I'm struggling
> to get my head round stuff again).
>
> I will have a go at creating a test subdirectory and adding that debug
> code- fantastic fantastic ideas thanks - probably blindingly obvious
> to PHPers but not to me (a decade working with C, Java and .NET but
> only ever used PHP on volunteer projects).
>
> Is it possible that a phpBB install may have had this as a side-
> effect? Ie, can filters be set up on all form input for a given space
> on a shared CPanel server?
>
> I have commented out my controller method and seen the error, so I'm
> assuming the redirect is called elsewhere, where do I put the redirect
> override code pls?
>
> As far as I can tell it isn't my code requesting the redirect but
> perhaps I'm missing something obvious? I commented out my controller
> method, route.php just has the default page specified. Tried debug
> level 1 and 2 and nothing is displayed about the error, or anything
> preceding the current page.
>
> Thanks SO much for your help - this is all so useful and despite my
> wandering off-subject, absolutely exactly how I hoped people would
> help me and I'm massively grateful,
> Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread technicaltitch

App was built Oct 2007 but it's taken the organization this long to
find funding for someone to test and work on it, (hence I'm struggling
to get my head round stuff again).

I will have a go at creating a test subdirectory and adding that debug
code- fantastic fantastic ideas thanks - probably blindingly obvious
to PHPers but not to me (a decade working with C, Java and .NET but
only ever used PHP on volunteer projects).

Is it possible that a phpBB install may have had this as a side-
effect? Ie, can filters be set up on all form input for a given space
on a shared CPanel server?

I have commented out my controller method and seen the error, so I'm
assuming the redirect is called elsewhere, where do I put the redirect
override code pls?

As far as I can tell it isn't my code requesting the redirect but
perhaps I'm missing something obvious? I commented out my controller
method, route.php just has the default page specified. Tried debug
level 1 and 2 and nothing is displayed about the error, or anything
preceding the current page.


Thanks SO much for your help - this is all so useful and despite my
wandering off-subject, absolutely exactly how I hoped people would
help me and I'm massively grateful,
Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread AD7six



On Aug 17, 4:26 pm, "Brendon Kozlowski (Realm)"
 wrote:
> If AD7six says not to upgrade a Cake 1.1 app to Cake 1.2, then I
> apologize.  I didn't think there'd be that many upgrade changes from
> 1.1 to 1.2 (my memory must be getting bad - oops).

It's not that it's a bad idea (it's a very good idea) it's just not
likely to be relevant - and would further delay or distract
(especially given the type of issues raised) from whatever the real
issue is.

Hope that clears the motives for that statement.

AD
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread Brendon Kozlowski (Realm)

If AD7six says not to upgrade a Cake 1.1 app to Cake 1.2, then I
apologize.  I didn't think there'd be that many upgrade changes from
1.1 to 1.2 (my memory must be getting bad - oops).

Anyway, as far as baking from a different table, I did not mean to
create an entirely different app.  You can simply add a test table to
the current database you're using for your project ('tests') and test
your erroring strings (i.e.: http://www.geocities.com) in a simple,
newly built, untouched CRUD interface to verify if it's a bug with
your version of Cake, or with your code.  All you'd need to do is add
a new model, controller, and view for the tests table within the same
project - as it wouldn't be linked to your CMS by default, I don't
think it'd cause any issues.

However, I'd recommend taking AD7six's advice.

On Aug 17, 9:04 am, foldiman  wrote:
> The original post about problem strings and TinyMCE reminds me of a
> problem I recently had. Search for "500.shtml error? What is this?
> Help!?" in this group.
>
> But I had built a basic CMS that allowed an admin to change text in
> specific views. Whenever the text contained "from" or other specific
> words, submitting the form would redirect the browser to a page that
> did not exist. Removing TinyMCE allowed the text to submit without a
> problem. However, TinyMCE was a requirement.
>
> It turns out the server admin had set the mod_security settings to
> protect against sql injection. Once he removed the mod_security
> settings site-wide, the problem went away. I made sure I was using
> Cake's sanitize function as a sql injection protection.
>
> I hope this helps.
>
> On Aug 16, 6:12 am, AD7six  wrote:
>
>
>
> > On Aug 16, 12:03 pm, AD7six  wrote:
>
> > > On Aug 16, 11:36 am, technicaltitch  wrote:
>
> > PS "By 404 I mean that when I press submit, it redirects to the
> > homepage, which is exactly what it does if I type in a non-existent
> > URL."
>
> > Is that your entire basis for thinking that cake is treating certain
> > strings as if they were blank? That's a pretty far fetched assumption
> > - especially as it's your own code requesting the redirect (directly,
> > or indirectly).
>
> > Overriding redirect, and setting debug to != 0 should help you find
> > the reason.
>
> > AD- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread foldiman

The original post about problem strings and TinyMCE reminds me of a
problem I recently had. Search for "500.shtml error? What is this?
Help!?" in this group.

But I had built a basic CMS that allowed an admin to change text in
specific views. Whenever the text contained "from" or other specific
words, submitting the form would redirect the browser to a page that
did not exist. Removing TinyMCE allowed the text to submit without a
problem. However, TinyMCE was a requirement.

It turns out the server admin had set the mod_security settings to
protect against sql injection. Once he removed the mod_security
settings site-wide, the problem went away. I made sure I was using
Cake's sanitize function as a sql injection protection.

I hope this helps.


On Aug 16, 6:12 am, AD7six  wrote:
> On Aug 16, 12:03 pm, AD7six  wrote:
>
> > On Aug 16, 11:36 am, technicaltitch  wrote:
>
> PS "By 404 I mean that when I press submit, it redirects to the
> homepage, which is exactly what it does if I type in a non-existent
> URL."
>
> Is that your entire basis for thinking that cake is treating certain
> strings as if they were blank? That's a pretty far fetched assumption
> - especially as it's your own code requesting the redirect (directly,
> or indirectly).
>
> Overriding redirect, and setting debug to != 0 should help you find
> the reason.
>
> AD
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-16 Thread AD7six



On Aug 16, 12:03 pm, AD7six  wrote:
> On Aug 16, 11:36 am, technicaltitch  wrote:

PS "By 404 I mean that when I press submit, it redirects to the
homepage, which is exactly what it does if I type in a non-existent
URL."

Is that your entire basis for thinking that cake is treating certain
strings as if they were blank? That's a pretty far fetched assumption
- especially as it's your own code requesting the redirect (directly,
or indirectly).

Overriding redirect, and setting debug to != 0 should help you find
the reason.

AD
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-16 Thread AD7six



On Aug 16, 11:36 am, technicaltitch  wrote:
> I know - I'm sorry about the drift in subject - I feel like I'm going
> backwards at the moment so thanks hugely for any pointers.
>
> I'm running Apache 2.2.11 and PHP 5.2.8 on the live site and 5.3.0
> locally - should I downgrade? As I understand it, CakePHP 1.2 requires
> an upgrade to my code (especially database searches) and at the moment
> I'd rather rewrite the CMS without Cake as that'd remove the big black
> impenetrable box for me. I haven't yet tried baking a new app because
> I don't suspect I'll find the problem on my local machine on a vanilla
> app - although I'm considering renting an identical 'production'
> server space and trying it there.
>
> Error reporting is set to E_ALL but I have tried E_ERROR and got only
> slightly fewer errors. I am using the same version of CakePHP locally
> (1.1.17.5612) as I want to get the site working locally before
> upgrading and testing.

1.1 ..  when was this app originally built? You should definitely not
upgrade your cake version to anything other than 1.1.x.

PHP 5.2.8 is not the same as php 5.3, I'm guessing that means you
installed wamp - which with 1.1 will almost certainly not work without
tweaks.

Cakephp is still php - meaning it's php files you can edit and put
things like debug('here'); in it (it's worrying that the concept of
debugging code seems alien).

Your main question seems to be "why does my own code redirect me with
certain input" - so why not override the redirect method and find out?

meaning:

function redirect($url, $status, $exit) {
 $this->log($url, 'aname');
 $this->log($this->here, 'aname');
 $this->log($this->data, 'aname');
 $this->log($_POST, 'aname'); // should be ~identical to $this->data
 $this->log(debug_backtrace(), 'aname');
 //return parent::redirect($url, $status, $exit);
 debug(__FILE__.':'.__LINE__); // <- move or copy to anywhere you want
 die(__FILE__.':'.__LINE__);
}

Also, why rent another server, instead of just copying your app setup
in its entirety into a (protected with a password if you want)
subfolder of your app webroot and test away yourself?

meaning:

app
webroot
testing
app
app_controller.php <- with debug code in it
...
cake

http://mysever.com/testing/  <- your 'personal' debugging space.

hth,

AD
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-16 Thread technicaltitch

I know - I'm sorry about the drift in subject - I feel like I'm going
backwards at the moment so thanks hugely for any pointers.

I'm running Apache 2.2.11 and PHP 5.2.8 on the live site and 5.3.0
locally - should I downgrade? As I understand it, CakePHP 1.2 requires
an upgrade to my code (especially database searches) and at the moment
I'd rather rewrite the CMS without Cake as that'd remove the big black
impenetrable box for me. I haven't yet tried baking a new app because
I don't suspect I'll find the problem on my local machine on a vanilla
app - although I'm considering renting an identical 'production'
server space and trying it there.

Error reporting is set to E_ALL but I have tried E_ERROR and got only
slightly fewer errors. I am using the same version of CakePHP locally
(1.1.17.5612) as I want to get the site working locally before
upgrading and testing.

Thanks hugely for everyone's support
Chris


On Aug 14, 4:23 pm, "Brendon Kozlowski (Realm)"
 wrote:
> Wow wow wow.  This question has quickly become about 8 separate
> questions, none of which still seem to directly pertain to the
> original.  ;)  Your NOTICE, WARNING, and DEPRECATED error messages are
> PHP-related, due to the settings in php.ini.  I thought CakePHP
> usually overrides that setting, but if the local server isn't yet 100%
> working properly, perhaps Cake itself isn't running properly.
>
> - Which version of PHP are you running on your local server (hopefully
> not 5.3 quite yet, but a 5.2.x version)?
> - Which version of CakePHP did you just upgrade to?  CakePHP 1.3 is
> for PHP 5.3, but still has a few lingering issues. 1.2.4 is the most
> recent stable version that I would recommend while trying to fix
> unknown issues.
> - What is your php.ini's error_reporting set to?  You'll probably want
> it set to E_ALL & ~E_NOTICE
> - Did you try creating a simple baked model, controller, and view in
> your other site and test saving the URL and text data, or did you skip
> to upgrading as you felt it'd be better anyway?
>
> On Aug 13, 8:38 pm, technicaltitch  wrote:
>
>
>
> > Sorry again - ignore the last two posts - they were because I'd added
> > AddModule mod_rewrite.c to Apache 2
>
> > On Aug 14, 1:32 am, technicaltitch  wrote:
>
> > > By they don't 'work', I mean the browser says "Not Found. The
> > > requested URL /users/admin_index was not found on this server."
>
> > > On Aug 14, 1:29 am, technicaltitch  wrote:
>
> > > > Sorry forgot to say - that is the homepage, which route.php seems to
> > > > be successfully redirecting to the articles_controller
> > > > volunteer_animal_refuge method. I can't get the direct URLs to work,
> > > > eg,http://localhost:8080/users/admin_indexorhttp://localhost:8080/public...
>
> > > > On Aug 14, 1:24 am, technicaltitch  wrote:
>
> > > > > These are the error messages on my local setup:
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > > > on line 84
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > > > on line 107
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > > line 308
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > > line 347
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > > line 535
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > > line 805
>
> > > > > Deprecated: Assigning the return value of new by reference is
> > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
> > > > > line 125
>
> > > > > Deprecated: Assigning the retur

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-14 Thread Brendon Kozlowski (Realm)

Wow wow wow.  This question has quickly become about 8 separate
questions, none of which still seem to directly pertain to the
original.  ;)  Your NOTICE, WARNING, and DEPRECATED error messages are
PHP-related, due to the settings in php.ini.  I thought CakePHP
usually overrides that setting, but if the local server isn't yet 100%
working properly, perhaps Cake itself isn't running properly.

- Which version of PHP are you running on your local server (hopefully
not 5.3 quite yet, but a 5.2.x version)?
- Which version of CakePHP did you just upgrade to?  CakePHP 1.3 is
for PHP 5.3, but still has a few lingering issues. 1.2.4 is the most
recent stable version that I would recommend while trying to fix
unknown issues.
- What is your php.ini's error_reporting set to?  You'll probably want
it set to E_ALL & ~E_NOTICE
- Did you try creating a simple baked model, controller, and view in
your other site and test saving the URL and text data, or did you skip
to upgrading as you felt it'd be better anyway?

On Aug 13, 8:38 pm, technicaltitch  wrote:
> Sorry again - ignore the last two posts - they were because I'd added
> AddModule mod_rewrite.c to Apache 2
>
> On Aug 14, 1:32 am, technicaltitch  wrote:
>
>
>
> > By they don't 'work', I mean the browser says "Not Found. The
> > requested URL /users/admin_index was not found on this server."
>
> > On Aug 14, 1:29 am, technicaltitch  wrote:
>
> > > Sorry forgot to say - that is the homepage, which route.php seems to
> > > be successfully redirecting to the articles_controller
> > > volunteer_animal_refuge method. I can't get the direct URLs to work,
> > > eg,http://localhost:8080/users/admin_indexorhttp://localhost:8080/public...
>
> > > On Aug 14, 1:24 am, technicaltitch  wrote:
>
> > > > These are the error messages on my local setup:
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > > on line 84
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > > on line 107
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > line 308
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > line 347
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > line 535
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > > line 805
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
> > > > line 125
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687
>
> > > > Deprecated: Assigning the return value of new by reference is
> > > > deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55
>
> > > > Warning: call_user_func_array() expects parameter 2 to be array, null
> > > > given in C:\wamp\www\cake\cake\dispatcher.php on line 263
>
> > > > Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views
> > > > \layouts\public_site.thtml on line 42
>
> > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > > \articles\volunteer_animal_refuge.thtml on line 2
>
> > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > > > \articles\volunteer_animal_refuge.thtml on line 2
>
> > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > > \elements\LangsAndMotto.thtml on line 13
>
> > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > > > \elements\LangsAndMotto.thtml on line 16
>
> > > > Warning: Invalid argument supplied for foreac

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread technicaltitch

Sorry again - ignore the last two posts - they were because I'd added
AddModule mod_rewrite.c to Apache 2

On Aug 14, 1:32 am, technicaltitch  wrote:
> By they don't 'work', I mean the browser says "Not Found. The
> requested URL /users/admin_index was not found on this server."
>
> On Aug 14, 1:29 am, technicaltitch  wrote:
>
>
>
> > Sorry forgot to say - that is the homepage, which route.php seems to
> > be successfully redirecting to the articles_controller
> > volunteer_animal_refuge method. I can't get the direct URLs to work,
> > eg,http://localhost:8080/users/admin_indexorhttp://localhost:8080/public...
>
> > On Aug 14, 1:24 am, technicaltitch  wrote:
>
> > > These are the error messages on my local setup:
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > on line 84
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > > on line 107
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > line 308
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > line 347
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > line 535
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > > line 805
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
> > > line 125
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687
>
> > > Deprecated: Assigning the return value of new by reference is
> > > deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55
>
> > > Warning: call_user_func_array() expects parameter 2 to be array, null
> > > given in C:\wamp\www\cake\cake\dispatcher.php on line 263
>
> > > Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views
> > > \layouts\public_site.thtml on line 42
>
> > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 2
>
> > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 2
>
> > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > \elements\LangsAndMotto.thtml on line 13
>
> > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > > \elements\LangsAndMotto.thtml on line 16
>
> > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > > \app\views\elements\HtmlBlock.thtml on line 8
> > > Html Block motto_esp not found.
>
> > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 27
>
> > > Notice: Undefined variable: main_menu in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 27
>
> > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > > \app\views\elements\Menu.thtml on line 8
>
> > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 30
>
> > > Notice: Undefined variable: sub_menu in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 30
>
> > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > > \app\views\elements\Menu.thtml on line 8
>
> > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 33
>
> > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > > \articles\volunteer_animal_refuge.thtml on line 36
>
> > > Warning: Invalid argu

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread technicaltitch

By they don't 'work', I mean the browser says "Not Found. The
requested URL /users/admin_index was not found on this server."

On Aug 14, 1:29 am, technicaltitch  wrote:
> Sorry forgot to say - that is the homepage, which route.php seems to
> be successfully redirecting to the articles_controller
> volunteer_animal_refuge method. I can't get the direct URLs to work,
> eg,http://localhost:8080/users/admin_indexorhttp://localhost:8080/public_html/users/admin_index
>
> On Aug 14, 1:24 am, technicaltitch  wrote:
>
>
>
> > These are the error messages on my local setup:
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > on line 84
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> > on line 107
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > line 308
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > line 347
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > line 535
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> > line 805
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
> > line 125
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687
>
> > Deprecated: Assigning the return value of new by reference is
> > deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55
>
> > Warning: call_user_func_array() expects parameter 2 to be array, null
> > given in C:\wamp\www\cake\cake\dispatcher.php on line 263
>
> > Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views
> > \layouts\public_site.thtml on line 42
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 2
>
> > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 2
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \elements\LangsAndMotto.thtml on line 13
>
> > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > \elements\LangsAndMotto.thtml on line 16
>
> > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > \app\views\elements\HtmlBlock.thtml on line 8
> > Html Block motto_esp not found.
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 27
>
> > Notice: Undefined variable: main_menu in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 27
>
> > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > \app\views\elements\Menu.thtml on line 8
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 30
>
> > Notice: Undefined variable: sub_menu in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 30
>
> > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > \app\views\elements\Menu.thtml on line 8
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 33
>
> > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on line 36
>
> > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> > \app\views\elements\HtmlBlock.thtml on line 8
> > Html Block main_menu_blurb_esp not found.
> > [admin click here]
>
> > Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> > \articles\volunteer_animal_refuge.thtml on lin

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread technicaltitch

Sorry forgot to say - that is the homepage, which route.php seems to
be successfully redirecting to the articles_controller
volunteer_animal_refuge method. I can't get the direct URLs to work,
eg, http://localhost:8080/users/admin_index or
http://localhost:8080/public_html/users/admin_index

On Aug 14, 1:24 am, technicaltitch  wrote:
> These are the error messages on my local setup:
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> on line 84
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
> on line 107
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> line 308
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> line 347
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> line 535
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
> line 805
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
> line 125
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687
>
> Deprecated: Assigning the return value of new by reference is
> deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55
>
> Warning: call_user_func_array() expects parameter 2 to be array, null
> given in C:\wamp\www\cake\cake\dispatcher.php on line 263
>
> Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views
> \layouts\public_site.thtml on line 42
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 2
>
> Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 2
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \elements\LangsAndMotto.thtml on line 13
>
> Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> \elements\LangsAndMotto.thtml on line 16
>
> Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> \app\views\elements\HtmlBlock.thtml on line 8
> Html Block motto_esp not found.
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 27
>
> Notice: Undefined variable: main_menu in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 27
>
> Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> \app\views\elements\Menu.thtml on line 8
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 30
>
> Notice: Undefined variable: sub_menu in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 30
>
> Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> \app\views\elements\Menu.thtml on line 8
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 33
>
> Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 36
>
> Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
> \app\views\elements\HtmlBlock.thtml on line 8
> Html Block main_menu_blurb_esp not found.
> [admin click here]
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 59
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 74
>
> Notice: Undefined variable: article in C:\wamp\www\cake\app\views
> \articles\volunteer_animal_refuge.thtml on line 77
>
> Notice: Undefined variable: news_menu in C:\wamp\www\cake\app\views
> \articles

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread technicaltitch

Definitely possible to upgrade CakePHP - will try when I get my dev
version working.

Realised I had phpBB and phpMyChat installed, have uninstalled
phpMyChat to no avail but not phpBB as we want to keep it.

Tried a higher debug level but the page displayed is just the homepage
with no trace of the failed save in. It was previously level 1 but
thanks for the tip Bert!

Having trouble installing a local version - currently the images
appear fine but the Cake variables are all undeclared. I've just
grabbed the code on the server and put it in the Apache www folder
(installed using Wamp). I've duplicated the database setup and
directory structure so database.php and index.php are still valid
(index.php is all relative to __FILE__). I've checked .htaccess, added
mod-rewrite in httpd.conf, changed to port 8080 so it doesn't clash
with IIS. My directory structure is:
root->cake->cake and root->cake->app and root->public_html and I've
changed the Apache DocRoot to root->public_html and ensured
AllowOverride All

Sorry for the stupid questions
Chris

On Aug 13, 10:54 am, Bert Van den Brande  wrote:
> Are you working in CakePHP debug mode ? I would advise setting the
> debug level to 2 , this would output performed sql queries which can
> be usefull in this case to find the cause of the error.
>
> Also, come to think of it ... I think Cake gives 404 errors when in
> production mode (debug level 0), thus hiding the real error message.
>
> Good luck !
>
> On Wed, Aug 12, 2009 at 12:45 PM,
>
>
>
> technicaltitch wrote:
>
> > Thanks hugely delocalizer and bert and anyone else who reads this. I
> > am trying to get the site working on Apache locally (I did have it but
> > the hard disk crashed a couple months ago and I'm struggling hence the
> > delay).
>
> > I hadn't come across debugging PHP before - sounds very useful. What
> > is the generally recommended setup for debugging PHP? I've found a
> > couple Eclipse plugins - EclipsePDT based on xdebug and PHPeclipse
> > which seems more basic.
>
> > The string length does not seem relevant - the two strings currently
> > isolated are:
>
> >http://geocities.com/      [ed: this is not a link - this is the text
> > I enter into the text field that creates the error]
>
> > and the two Spanish sentences in my original post starting "Los
> > animales silvestres..." - either of the sentences on its own does not
> > crash, just the pair together.
>
> > I don't specify the string length in the CakePHP, and it happens to
> > both varchar(255) and blob database fields (mysql 5).
>
> > By 404 I mean that when I press submit, it redirects to the homepage,
> > which is exactly what it does if I type in a non-existent URL. I'm not
> > sure what is doing this but if I can figure it out I'll create a 404
> > page to confirm.
>
> > Thanks hugely
> > Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread technicaltitch

These are the error messages on my local setup:

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
on line 84

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php
on line 107

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
line 308

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
line 347

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
line 535

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on
line 805

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on
line 125

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687

Deprecated: Assigning the return value of new by reference is
deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55

Warning: call_user_func_array() expects parameter 2 to be array, null
given in C:\wamp\www\cake\cake\dispatcher.php on line 263

Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views
\layouts\public_site.thtml on line 42


Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 2

Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 2

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\elements\LangsAndMotto.thtml on line 13

Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
\elements\LangsAndMotto.thtml on line 16

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
\app\views\elements\HtmlBlock.thtml on line 8
Html Block motto_esp not found.


Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 27

Notice: Undefined variable: main_menu in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 27

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
\app\views\elements\Menu.thtml on line 8

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 30

Notice: Undefined variable: sub_menu in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 30

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
\app\views\elements\Menu.thtml on line 8

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 33

Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 36

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
\app\views\elements\HtmlBlock.thtml on line 8
Html Block main_menu_blurb_esp not found.
[admin click here]


Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 59

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 74

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 77

Notice: Undefined variable: news_menu in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 77

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\elements\NewsMenu.thtml on line 11
Noticias:

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake
\app\views\elements\NewsMenu.thtml on line 24

Notice: Undefined variable: article in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 82

Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views
\articles\volunteer_animal_refuge.thtml on line 85

Warning: Invalid a

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-13 Thread Bert Van den Brande

Are you working in CakePHP debug mode ? I would advise setting the
debug level to 2 , this would output performed sql queries which can
be usefull in this case to find the cause of the error.

Also, come to think of it ... I think Cake gives 404 errors when in
production mode (debug level 0), thus hiding the real error message.

Good luck !

On Wed, Aug 12, 2009 at 12:45 PM,
technicaltitch wrote:
>
> Thanks hugely delocalizer and bert and anyone else who reads this. I
> am trying to get the site working on Apache locally (I did have it but
> the hard disk crashed a couple months ago and I'm struggling hence the
> delay).
>
> I hadn't come across debugging PHP before - sounds very useful. What
> is the generally recommended setup for debugging PHP? I've found a
> couple Eclipse plugins - EclipsePDT based on xdebug and PHPeclipse
> which seems more basic.
>
> The string length does not seem relevant - the two strings currently
> isolated are:
>
> http://geocities.com/       [ed: this is not a link - this is the text
> I enter into the text field that creates the error]
>
> and the two Spanish sentences in my original post starting "Los
> animales silvestres..." - either of the sentences on its own does not
> crash, just the pair together.
>
> I don't specify the string length in the CakePHP, and it happens to
> both varchar(255) and blob database fields (mysql 5).
>
> By 404 I mean that when I press submit, it redirects to the homepage,
> which is exactly what it does if I type in a non-existent URL. I'm not
> sure what is doing this but if I can figure it out I'll create a 404
> page to confirm.
>
> Thanks hugely
> Chris
>
>
> >
>

--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-12 Thread Brendon Kozlowski (Realm)

My first thought, is "would it be possible to upgrade to CakePHP
v1.2.4 to possibly remove any lingering effects of an older code
base?"  My second thought is, "If upgrading is out of the question,
did you try 'baking' a very simple MVC based on a test table in your
DB that you can attempt to duplicate the issue?"

Both of these suggestions I would recommend doing on a development
machine, not on the server.


On Aug 12, 6:45 am, technicaltitch  wrote:
> Thanks hugely delocalizer and bert and anyone else who reads this. I
> am trying to get the site working on Apache locally (I did have it but
> the hard disk crashed a couple months ago and I'm struggling hence the
> delay).
>
> I hadn't come across debugging PHP before - sounds very useful. What
> is the generally recommended setup for debugging PHP? I've found a
> couple Eclipse plugins - EclipsePDT based on xdebug and PHPeclipse
> which seems more basic.
>
> The string length does not seem relevant - the two strings currently
> isolated are:
>
> http://geocities.com/      [ed: this is not a link - this is the text
> I enter into the text field that creates the error]
>
> and the two Spanish sentences in my original post starting "Los
> animales silvestres..." - either of the sentences on its own does not
> crash, just the pair together.
>
> I don't specify the string length in the CakePHP, and it happens to
> both varchar(255) and blob database fields (mysql 5).
>
> By 404 I mean that when I press submit, it redirects to the homepage,
> which is exactly what it does if I type in a non-existent URL. I'm not
> sure what is doing this but if I can figure it out I'll create a 404
> page to confirm.
>
> Thanks hugely
> Chris
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-12 Thread technicaltitch

Thanks hugely delocalizer and bert and anyone else who reads this. I
am trying to get the site working on Apache locally (I did have it but
the hard disk crashed a couple months ago and I'm struggling hence the
delay).

I hadn't come across debugging PHP before - sounds very useful. What
is the generally recommended setup for debugging PHP? I've found a
couple Eclipse plugins - EclipsePDT based on xdebug and PHPeclipse
which seems more basic.

The string length does not seem relevant - the two strings currently
isolated are:

http://geocities.com/   [ed: this is not a link - this is the text
I enter into the text field that creates the error]

and the two Spanish sentences in my original post starting "Los
animales silvestres..." - either of the sentences on its own does not
crash, just the pair together.

I don't specify the string length in the CakePHP, and it happens to
both varchar(255) and blob database fields (mysql 5).

By 404 I mean that when I press submit, it redirects to the homepage,
which is exactly what it does if I type in a non-existent URL. I'm not
sure what is doing this but if I can figure it out I'll create a 404
page to confirm.

Thanks hugely
Chris


--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-07 Thread delocalizer

Hi tt;
How long are these strings? What datatype are you using to store these
strings in the db? b.t.w. the links in your post to the examples don't
appear to go anywhere useful... :(

On Aug 6, 8:23 pm, technicaltitch  wrote:
> Dear all,
>
> Please I'm desperate - if you had a simple CakePHP app, and certain
> strings in any text field caused it to give up without any error and
> display the default homepage, where could you look? I'm not asking for
> possible solutions as I realise this is too obscure for that, but I've
> absolutely no idea what part of the server could possibly have this
> effect. Anything that has anything to do with looking at form strings
> site-wide.
>
> I have removed all my controller code, I have removed the TinyMCE
> controllers and seen the bug in plain text inputs as well as
> textareas, I have tried GET and POST forms, I have tried entering the
> text via phpMyAdmin, or on a non-CakePHP site hosted on the same
> infrastructure and they work fine.
>
> Entering this string into any text field causes the 
> error:http://geocities.com/
> but entering this doesn't:http://geocities.com(ie, without the last
> character). Similarly for the string in Spanish in my original post -
> each sentence on it's own doesn't, but the two together does cause
> this error.
>
> Please ANY tip would be hugely appreciated - my PHP isn't at a level
> where I can trace through the Cake code, I've spent nearly a week on
> this, my next step is to rewrite the CMS in plain PHP which is several
> weeks' unpaid work I've no idea how I'll fit in.
>
> Thanks for any time or help whatsoever,
> Chris
>
> www.intiwarayassi.org
>
> On Aug 1, 4:20 pm, technicaltitch  wrote:
>
> > Dear all,
>
> > Thanks for your time. I've written a simple CakePHP+TinyMCE CMS and
> > I'm having a horrendous time tracking a very strange error. Specific
> > strings in any of the text fields are causing my website to do
> > something that looks like a 404 error.
>
> > These are the strings I have found so far - I can paste these into any
> > of my text fields on the site and it causes a complete failure:
>
> > "http://geocities.com/"; or
>
> > "Los animales silvestres del refugio fueron sacados de los circos, de
> > los mercados y de las jaulas inhumanas, o fueron una vez de mascotas
> > que muchos fueron muy maltratados por el amo. El proyecto consiste en
> > la rehabilitación y la restauracion de nuevas especies para luego ser
> > devueltos a su hábitat natural"
>
> > (and several others I'm painstakingly tracking down). If I remove even
> > just part of the string it works perfectly. The behaviour is 100%
> > predictable once you isolate the string. If I put a space in the
> > middle, or delete the end '/', the problem disappears.
>
> > I have commented out all of my controller code including the save and
> > redirect and I still get the error. It happens whether or not model
> > validation is taking place. I am doing nothing clever - just a simple
> > POST form, 'edit' method and redirect to an index/admin page. I can
> > find no error messages anywhere. Where do I start?
>
> > I'm using CakePHP version 1.1.17.5612 on a standard CPanel-based host.
>
> > Massive thanks for any tips whatsoever, I am completely lost on this,
> > Chris
>
> > The website is herewww.intiwarayassi.org-I'm a professional
> > developer but did this for free
--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-06 Thread Bert Van den Brande

What exactly do you mean with 'to do something that looks like a 404 error' ?

Can you reproduce the bug on a local development machine ?

In any case I would suggest to setup PHP debugging and step through
the code so you can detect what exactly causes the error ...


Friendly greetings,
Bert


On Thu, Aug 6, 2009 at 12:23 PM, technicaltitch wrote:
>
> Dear all,
>
> Please I'm desperate - if you had a simple CakePHP app, and certain
> strings in any text field caused it to give up without any error and
> display the default homepage, where could you look? I'm not asking for
> possible solutions as I realise this is too obscure for that, but I've
> absolutely no idea what part of the server could possibly have this
> effect. Anything that has anything to do with looking at form strings
> site-wide.
>
> I have removed all my controller code, I have removed the TinyMCE
> controllers and seen the bug in plain text inputs as well as
> textareas, I have tried GET and POST forms, I have tried entering the
> text via phpMyAdmin, or on a non-CakePHP site hosted on the same
> infrastructure and they work fine.
>
> Entering this string into any text field causes the error: 
> http://geocities.com/
> but entering this doesn't: http://geocities.com (ie, without the last
> character). Similarly for the string in Spanish in my original post -
> each sentence on it's own doesn't, but the two together does cause
> this error.
>
> Please ANY tip would be hugely appreciated - my PHP isn't at a level
> where I can trace through the Cake code, I've spent nearly a week on
> this, my next step is to rewrite the CMS in plain PHP which is several
> weeks' unpaid work I've no idea how I'll fit in.
>
> Thanks for any time or help whatsoever,
> Chris
>
> www.intiwarayassi.org
>
>
>
>
> On Aug 1, 4:20 pm, technicaltitch  wrote:
>> Dear all,
>>
>> Thanks for your time. I've written a simple CakePHP+TinyMCE CMS and
>> I'm having a horrendous time tracking a very strange error. Specific
>> strings in any of the text fields are causing my website to do
>> something that looks like a 404 error.
>>
>> These are the strings I have found so far - I can paste these into any
>> of my text fields on the site and it causes a complete failure:
>>
>> "http://geocities.com/"; or
>>
>> "Los animales silvestres del refugio fueron sacados de los circos, de
>> los mercados y de las jaulas inhumanas, o fueron una vez de mascotas
>> que muchos fueron muy maltratados por el amo. El proyecto consiste en
>> la rehabilitación y la restauracion de nuevas especies para luego ser
>> devueltos a su hábitat natural"
>>
>> (and several others I'm painstakingly tracking down). If I remove even
>> just part of the string it works perfectly. The behaviour is 100%
>> predictable once you isolate the string. If I put a space in the
>> middle, or delete the end '/', the problem disappears.
>>
>> I have commented out all of my controller code including the save and
>> redirect and I still get the error. It happens whether or not model
>> validation is taking place. I am doing nothing clever - just a simple
>> POST form, 'edit' method and redirect to an index/admin page. I can
>> find no error messages anywhere. Where do I start?
>>
>> I'm using CakePHP version 1.1.17.5612 on a standard CPanel-based host.
>>
>> Massive thanks for any tips whatsoever, I am completely lost on this,
>> Chris
>>
>> The website is herewww.intiwarayassi.org- I'm a professional
>> developer but did this for free
> >
>

--~--~-~--~~~---~--~~
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: Certain strings crashing CakePHP - where do I look first?

2009-08-06 Thread technicaltitch

Dear all,

Please I'm desperate - if you had a simple CakePHP app, and certain
strings in any text field caused it to give up without any error and
display the default homepage, where could you look? I'm not asking for
possible solutions as I realise this is too obscure for that, but I've
absolutely no idea what part of the server could possibly have this
effect. Anything that has anything to do with looking at form strings
site-wide.

I have removed all my controller code, I have removed the TinyMCE
controllers and seen the bug in plain text inputs as well as
textareas, I have tried GET and POST forms, I have tried entering the
text via phpMyAdmin, or on a non-CakePHP site hosted on the same
infrastructure and they work fine.

Entering this string into any text field causes the error: http://geocities.com/
but entering this doesn't: http://geocities.com (ie, without the last
character). Similarly for the string in Spanish in my original post -
each sentence on it's own doesn't, but the two together does cause
this error.

Please ANY tip would be hugely appreciated - my PHP isn't at a level
where I can trace through the Cake code, I've spent nearly a week on
this, my next step is to rewrite the CMS in plain PHP which is several
weeks' unpaid work I've no idea how I'll fit in.

Thanks for any time or help whatsoever,
Chris

www.intiwarayassi.org




On Aug 1, 4:20 pm, technicaltitch  wrote:
> Dear all,
>
> Thanks for your time. I've written a simple CakePHP+TinyMCE CMS and
> I'm having a horrendous time tracking a very strange error. Specific
> strings in any of the text fields are causing my website to do
> something that looks like a 404 error.
>
> These are the strings I have found so far - I can paste these into any
> of my text fields on the site and it causes a complete failure:
>
> "http://geocities.com/"; or
>
> "Los animales silvestres del refugio fueron sacados de los circos, de
> los mercados y de las jaulas inhumanas, o fueron una vez de mascotas
> que muchos fueron muy maltratados por el amo. El proyecto consiste en
> la rehabilitación y la restauracion de nuevas especies para luego ser
> devueltos a su hábitat natural"
>
> (and several others I'm painstakingly tracking down). If I remove even
> just part of the string it works perfectly. The behaviour is 100%
> predictable once you isolate the string. If I put a space in the
> middle, or delete the end '/', the problem disappears.
>
> I have commented out all of my controller code including the save and
> redirect and I still get the error. It happens whether or not model
> validation is taking place. I am doing nothing clever - just a simple
> POST form, 'edit' method and redirect to an index/admin page. I can
> find no error messages anywhere. Where do I start?
>
> I'm using CakePHP version 1.1.17.5612 on a standard CPanel-based host.
>
> Massive thanks for any tips whatsoever, I am completely lost on this,
> Chris
>
> The website is herewww.intiwarayassi.org- I'm a professional
> developer but did this for free
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---