How to track the referer when error 404 happens?

2011-11-22 Thread heohni
Hi, I using this app_error handler: ?php class AppError extends ErrorHandler{ function __construct($method, $messages) { Configure::write('debug', 2); parent::__construct($method, $messages); } function _outputMessage($template) {

Re: How to track the referer when error 404 happens?

2011-11-22 Thread AD7six
On Tuesday, 22 November 2011 11:45:42 UTC+1, heohni wrote: Hi, I using this app_error handler: ?php class AppError extends ErrorHandler{ function __construct($method, $messages) { Configure::write('debug', 2); parent::__construct($method, $messages); }

Re: How to track the referer when error 404 happens?

2011-11-22 Thread euromark
I did that for while - after upgrading the application jesus christ. I can tell you. I would have gotten hundreds of mails per second With session token (and one email per session every HOUR) it went down to a lot ;) Anyway - the thing is, that a browser opens invalid urls all the time

Re: How to track the referer when error 404 happens?

2011-11-22 Thread heohni
Hi Mark, I am only dealing on a small project, so I don't get as much emails luckely :-) I will try your code, thanks a lot!! Bye On 22 Nov., 17:55, euromark dereurom...@googlemail.com wrote: I did that for while - after upgrading the application jesus christ. I can tell you. I would have

Problema de ruteo - error 404

2011-02-18 Thread joacake
muestra correctamente la página principal (acción index del controlador posts). El problema surge cuando trato de acceder a otro controlador u otra acción, muestra el mensaje de error 404. Por ejemplo si trato de acceder a www.mipagina.com/comments/ surge el error. ---CONFIGURACIONES

Re: Problema de ruteo - error 404

2011-02-18 Thread cricket
index.php. Cuando accedo a www.mipagina.com muestra correctamente la página principal (acción index del controlador posts). El problema surge cuando trato de acceder a otro controlador u otra acción, muestra el mensaje de error 404. Por ejemplo si trato de acceder a www.mipagina.com/comments

Error 404

2009-02-23 Thread jc_mich
write http://server/app/index?url=users/login, it looks fine. What I did wrong? Is there someone who had the same problem? Thanks -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22170947.html Sent from the CakePHP mailing list archive at Nabble.com

Re: Error 404

2009-02-23 Thread yusuf widi
had the same problem? Thanks -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22170947.html Sent from the CakePHP mailing list archive at Nabble.com. -- http://www.wmonou.com --~--~-~--~~~---~--~~ You received this message

Re: Error 404

2009-02-23 Thread jc_mich
? Thanks -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22170947.html Sent from the CakePHP mailing list archive at Nabble.com. -- http://www.wmonou.com -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22172352.html

Re: Error 404

2009-02-23 Thread brian
=users/login, it looks fine. What I did wrong? Is there someone who had the same problem? Thanks -- View this message in context: http://www.nabble.com/Error-404-tp22170947p22170947.html Sent from the CakePHP mailing list archive at Nabble.com

Re: error 404 throws blank page

2009-01-25 Thread Miles J
Perhaps set your debug to 2 and see if it throws an error why? On Jan 24, 11:53 pm, Nick nlof...@gmail.com wrote: I can't seem to figure out what I did wrong or where to fix it, but I've got my debug level set to 0 in my core.php file and saved the default cake 404 error message page into

Re: error 404 throws blank page

2009-01-25 Thread Nick
Exactly what I just did. Turns out it was an issue with using the Javascript helper in my default.ctp file. When it called error404.ctp the error controller didn't have javascript added as a helper and therefore threw a blank page. Once I added that I got my 404 error. Thanks for the quick

error 404 throws blank page

2009-01-24 Thread Nick
I can't seem to figure out what I did wrong or where to fix it, but I've got my debug level set to 0 in my core.php file and saved the default cake 404 error message page into app/views/errors/ but every time I go to an invalid controller url, I get a blank page instead of the 404 error message.

Im new to Cakephp... Need help for Cakephp Error 404

2008-10-21 Thread shaider
the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 pjs 10/21/08 21:30:55 Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6 ... i don't know why im having this problem in other

Re: Im new to Cakephp... Need help for Cakephp Error 404

2008-10-21 Thread clemos
folder to another server/pc.. i have this error... http://pjs/disciplines/ Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error

Re: Custom ERROR 404 layout

2008-08-19 Thread tomek lisiewicz
Hi, I've created error.php file in /app folder, which contains code as follows: ?php class AppError extends ErrorHandler { function error404($params) { $this-controller-layout = error; parent::error404($params); } } ? function error404 is

Re: Apache error 404 on AJAX POST on existing controller action

2008-01-23 Thread Hawk|
Hi, i found the problem, it was a bug in the 1.2 5985 release, now in the 1.2 beta it is working again. Sorry for making so much trouble. Now i only have to change all deprecated stuff. Greetings Hawk On Jan 22, 6:00 pm, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 3:01 AM, Hawk| [EMAIL

Apache error 404 on AJAX POST on existing controller action

2008-01-22 Thread Hawk|
Hi, i have a strange problem. i have an controller with an action add and edit If i call the controller action in the first place it works fine. I got my form and enter my data. After sending the data back to the controller action it never reaches the action in the contoller. It got somewhere

Re: Apache error 404 on AJAX POST on existing controller action

2008-01-22 Thread b logica
On Jan 22, 2008 3:01 AM, Hawk| [EMAIL PROTECTED] wrote: Hi, i have a strange problem. i have an controller with an action add and edit If i call the controller action in the first place it works fine. I got my form and enter my data. After sending the data back to the controller action

calling an Error 404 page from within the Controller

2007-12-11 Thread BoSc
Hi, I was wondering, what is the correct way to call a 404 Error from wihtin a controller? The situation is this: I use pretty urls (for SEO) to let the user navigate through my site. When the controller is called to show an appartment, 4 parameters are passed. The first thing I do is check

Re: calling an Error 404 page from within the Controller

2007-12-11 Thread snowdog
I use something like this (cake 1.2 prebeta): $this-cakeError('error404',array(array('url'='/'))); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: calling an Error 404 page from within the Controller

2007-12-11 Thread BoSc
Thanks snowdog... which class offers cakeError as a method? I couldn't find this in the API. Another question... is it possible to set a custom layout for the error404.thtml file? On 11 dec, 10:58, snowdog [EMAIL PROTECTED] wrote: I use something like this (cake 1.2 prebeta):

Re: calling an Error 404 page from within the Controller

2007-12-11 Thread powtac
If You create a custom 404 layout, take care that an 404 code by HTTP is provided. This can be done by header(http/1.0 404 not found); To prevent errors you can use something like this: if(!headers_sent) { header(http/1.0 404 not found); }

Re: calling an Error 404 page from within the Controller

2007-12-11 Thread BoSc
But how do I define the layout that CakePHP should use for the template error404.thtml On 11 dec, 12:37, powtac [EMAIL PROTECTED] wrote: If You create a custom 404 layout, take care that an 404 code by HTTP is provided. This can be done by header(http/1.0 404 not found); To prevent errors

Error 404 when using ACL $aro-create

2007-08-14 Thread [EMAIL PROTECTED]
Hello, i am trying the IBM tutorial no 2 and have a problem, when using the function $aro-create(...) in my register action. After clicking the register button, I get an Error 404. If I comment out the $aro-create() the redirect is successful. Here's the code: class UsersController extends

Action raising error 404 not found

2006-08-17 Thread Mathieu Gagnon
I was looking for a way to raise 404 inside controller actions but didnt found anything about it. Below is the solution i'm using right now but I have the feeling there must be a better way. I would like to know what people think, whats the proper way? class AppController extends Controller {