Hacker News new | ask | show | jobs
by sho 6190 days ago
It's PHP, for what it's worth. I know because the first thing I do at any site is look at their error handling. Here's theirs, trying to load http://freescreencast.com/screencasts2:

  Missing controller
  
  You are seeing this error because controller Screencasts2Controller could not be found.
  
  Notice: If you want to customize this error message, create app/views/errors/missing_controller.thtml.
  
  Fatal: Create the class below in file : app/controllers/screencasts2_controller.php
  
  <?php
  class Screencasts2Controller extends AppController {
     var $name = 'Screencasts2';
  }
  ?>
Not a very professional effort IMO.

Here is the server string:

  Apache/2.0.63 (Unix) PHP/4.4.7 mod_ssl/2.0.63 OpenSSL/0.9.7e mod_fastcgi/2.4.2
And it's on a Dreamhost IP so probably debian (if I remember correctly?)

update: Man, I really don't like CakePHP's error messages. Check this one out:

   Fatal: Confirm you have created the file : /home/.quintuplet/prodfsc/freescreencast.com/app/views/pages/getstarteds.thtml
Great, now we know the dir structure. This is something that just should never be displayed. Doesn't CakePHP have "production mode"?
1 comments

Doesn't CakePHP have "production mode"?

Yes, its a matter of changing the debug value to 0 instead of 1 in /app/config/core.php. If this were set you'd be getting 404's instead of error messages.

@OP - This probably isn't the best place to sell your site, but you're going to need a lot more stats if you want to sell it anywhere. At the very least you need to show proof of revenue over time. A good place to start your asking price is 8 * monthly_profit.

6 hours later and debug mode still hasn't been turned off, even though you told him exactly how to, in his own thread. Unbelievable. Most of the web devs I know would have panicked, fixed the setting and redeployed within minutes of learning they'd screwed up in a visible and embarrassing way.

Inspire confidence this does not.