After deploying a simple application baked with the bake script I noticed a strange effect: requesting the index or edit action caused the following error: “Not found - The requested address internalerror.html was not found on this server.”. And the error log of Apache contained this error: “Premature end of script headers: php5.cgi”. Strange, it worked fine on my local server…

After some debugging I could locate the line which caused the problem:

<?php echo $html->link(__('Delete', true), array('action'=>'delete', $entry['Entry']['id']), null, __(’Are you sure you want to delete’, true).’ #’ . $entry['Entry']['id']); ?>

Or more precisely:

__('Are you sure you want to delete', true)

Don’t ask me why that doesn’t work on Dreamhost ;-)

As I don’t need multi-language support, the workaround is simple:

<?php echo $html->link(__('Delete', true), array('action'=>'delete', $entry['Entry']['id']), null, ‘Are you sure you want to delete #’ . $entry['Entry']['id']); ?>

Maybe this will help someone…