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) {
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);
}
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
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
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
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
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
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
?
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
=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
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
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
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.
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
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
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
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
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
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
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
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
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):
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);
}
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
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
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
{
26 matches
Mail list logo