Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Thanked 0 Times in 0 Posts

    Unhappy Kohona **** up! Please help - urgent assistance required by very stressed lady!

    EEk I have been editing title tags for someone and have managed to overwrite their template.php in application/classes/controller/ of Kohona - does anyone know how to help restore it please?? I made a backup but it is corrupted... very sad & immensely stressed out now...

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    If the software comes with an installer, PHP's clear text interpretation will allow you to extract the file from the installer. Not sure why you are performing modifications on a production machine though.

    Also, in the future choose a more suitable (and less... vocal) title for your threads.

  • #3
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Philadelphia, PA, USA
    Thanked 258 Times in 254 Posts
    Quote Originally Posted by Fou-Lu View Post
    Not sure why you are performing modifications on a production machine though.
    Agreed, NEVER edit the live site, only overwrite it with approved changes.

    I always utilize three separate environments during development: dev, staging, and live.

    The client never sees the dev environment. When dev is ready for client review, push it to staging where the client can view and approve. If any changes are needed, do them in dev and push to staging for further client review. Throughout this whole process, live is never even touched.

    When the client approves staging, back up live and push staging to live.

    So staging and live are NEVER edited, only overwritten.

    I know this doesn't help your current situation... honestly, little can be done. But hopefully it will help in future projects!

    If this is a client you've taken on temporarily... always back up EVERYTHING to your local machine before doing any work. I'd just create a local folder named after the site's domain, and literally drag down the root public folder.
    Last edited by kbluhm; 05-16-2011 at 11:06 PM.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts