I've had a strange error on some of the views on a new 1.2
application. The errors only occurred when I uploaded them to my
shared hosting on Site5. It ran fine on my Gentoo Apache 2.2.6 server
but after uploading I noticed that any view that had any edit/add/
delete on it would error out with the following:
Not Found
"The requested address 500.shtml was not found on this server."
I fix the problem by changing my delete action on any of the views
that had them.
original code from baking:
<?php echo $html->link(__('Delete', true), array('action'=>'delete',
$webLink['WebLink']['id']), null, __('Are you sure you want to
delete', true).' #' . $webLink['WebLink']['id']); ?>
to:
<?php echo $html->link(__('Delete', true), array('action'=>'delete',
$webLink['WebLink']['id']), null, 'Are you sure you want to delete'.'
#' . $webLink['WebLink']['id']); ?>
I'm not sure what is causing this I just know taking the _() off
around the confirmation fixed it on all broken pages. Hopeful this
will save someone some time.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---