osCmax v2.5 User Manual
Results 1 to 7 of 7

URGENT! I edited one line of one file and now my site won't load!

This is a discussion on URGENT! I edited one line of one file and now my site won't load! within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I edited one line of templates/fallback/content/advanced_search_result.tpl.php from this... <td class="pageHeading"><?php echo HEADING_TITLE_2; ?></td> to this... <td class="pageHeading"><?php echo strtoupper($keywords) . ...

      
  1. #1
    Member Shortbus's Avatar
    Join Date
    Jul 2010
    Posts
    56
    Rep Power
    2


    Default URGENT! I edited one line of one file and now my site won't load!

    I edited one line of templates/fallback/content/advanced_search_result.tpl.php from this...

    <td class="pageHeading"><?php echo HEADING_TITLE_2; ?></td>

    to this...

    <td class="pageHeading"><?php echo strtoupper($keywords) . " -- " . HEADING_TITLE_2; ?></td>

    and it disabled my entire site! My site has been running perfectly since 4am and when I made this edit about 10 minutes ago, the entire site stopped and will load only a blank screen. I returned the edit back to the default oscmax setting, but my site is still gone!

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Exclamation Re: URGENT! I edited one line of one file and now my site won't load!

    "templates/fallback/content/advanced_search_result.tpl.php"
    I've coded it so that anyone who dares to change anything in the fallback template, gets a blank screen. (I wish!)
    If you restore the original file and clear your browser cache, then you should be back to normal.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Member Shortbus's Avatar
    Join Date
    Jul 2010
    Posts
    56
    Rep Power
    2


    Default Re: URGENT! I edited one line of one file and now my site won't load!

    I had tried all those and unfortunately they did nothing.

    Even my brother in another state said my site isn't loading.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: URGENT! I edited one line of one file and now my site won't load!

    Then take a deep breath and check your error logs. Or change the setting in application_top.php to display all errors on the screen. That will tell you what the problem is.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Member Shortbus's Avatar
    Join Date
    Jul 2010
    Posts
    56
    Rep Power
    2


    Default Re: URGENT! I edited one line of one file and now my site won't load!

    I've searched high and low on how to "change the setting in application_top.php to display all errors". Unfortunately it's not very intuitive so I've no idea how to do that. I found this, but don't know how to use it...

    // set the level of error reporting
    error_reporting(E_ALL & ~E_NOTICE & ~'E_DEPRECATED');

    The cPanel error log has rows and rows of "file does not exist" like so...

    [Sat Feb 12 21:22:39 2011] [error] [client 220.181.108.140] File does not exist: /home/my_site/public_html/oscmax

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: URGENT! I edited one line of one file and now my site won't load!

    You can show error messages in your store by simply commenting out the line suppressing the errors. You have found the right bit - now just put // in front of it as per the line above.
    // set the level of error reporting
    //error_reporting(E_ALL & ~E_NOTICE & ~'E_DEPRECATED');
    You will then see the error - post it here and we will help you undo the mistake.

    Regards,
    pgmarshall
    _______________________________

  7. #7
    Member Shortbus's Avatar
    Join Date
    Jul 2010
    Posts
    56
    Rep Power
    2


    Default Re: URGENT! I edited one line of one file and now my site won't load!

    Quote Originally Posted by pgmarshall View Post
    You can show error messages in your store by simply commenting out the line suppressing the errors. You have found the right bit - now just put // in front of it as per the line above.


    You will then see the error - post it here and we will help you undo the mistake.

    Regards,
    Sorry, I never got an email notice that you replied to this so I didn't put your recommendation to the test. What I did was re-upload the entire /includes/ directory and all was working again.

Similar Threads

  1. can´t figured out fine line going around a site page - example
    By websi in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 11-29-2009, 05:54 PM
  2. I can't get my ssl cerificates to load
    By JKZ33@AOL.COM in forum osCmax v2 Installation issues
    Replies: 9
    Last Post: 01-30-2008, 05:41 AM
  3. Which file to edit to change this line
    By onLoad in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 01-11-2008, 09:01 AM
  4. Which PayPal IPN to load?
    By DerekJ in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 04-04-2005, 02:32 AM
  5. One Page Will Not Load
    By annea03 in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 09-23-2003, 10:19 AM

Bookmarks

Posting Permissions

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