Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    9
    Plugin Contributions
    0

    Default I think I broke it!

    yeah... i think i broke my store! I'm VERY new to this website stuff. Like REALLY new with code etc. I was following the tutorial for editing the footer in Zen version 1.3.8a

    Here is the footer text (after I replaced my woops)

    define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');


    I removed this part - '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>'


    When I hit save and refreshed my store to see if it worked, the entire storefront turned white. No content at all showed up. So, I went back in and added that info back to the code. I know the CODE is right, not sure of spacing tho?! When I try to save I keep getting this error message -


    This webpage is not available.

    The webpage at http://host352.hostmonster.com:2082/.../savefile.html might be temporarily down or it may have moved permanently to a new web address.

    More information on this error


    My website www.swirlydoos.com/store is still showing as a white page... please help!?


    eta - this code is in the Languages/english.php file. THANKS!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: I think I broke it!

    What are you using to edit the file, and what are you using to save it?

    The server control panel (cPanel or whatever) is not good for editing PHP files.

  3. #3
    Join Date
    Jan 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: I think I broke it!

    Glenn,

    Yes, I've been using the Cpanel for my server - Hostmonster to make all the changes on my website....

  4. #4
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    1

    Default Re: I think I broke it!

    a couple of tips about editing files:
    when you make a change Always
    save the file (eg. filename orginal.ext.)before you
    mess up that way you can go back.

    download a editor for code that way you won't get some weird
    charcater or extra line when you save your file
    its not funny to up load and have your site
    break due to a extra blankline at the end of a file
    you just worked on.

    find a html or css site for referance.

    and the </a> needs to be at the end of your <a herf
    it "closes" the command you started with the <a herf

  5. #5
    Join Date
    Jan 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: I think I broke it!

    Can someone tell me please, what I should be using to edit and save my php files? And if this can be fixed?

  6. #6
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    1

    Default Re: I think I broke it!

    i like alleycode
    it has http, php and css code right in it
    if you can't find it id send you a copy if you want

  7. #7
    Join Date
    Jan 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: I think I broke it!

    thanks for the tip Scooter. I found alleycode and dl it. Now, to see about maybe fixing this?

  8. #8
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    1

    Default Re: I think I broke it!

    the key is here ,you said:
    I removed this part - '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>'


    you should only remove the '</a>
    from here is what you want to remove.
    . Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>'

    do you have a backup,un altered copy of the file you changed ?

  9. #9
    Join Date
    Jan 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: I think I broke it!

    no.......... oh good Lord I feel like a dip. And before I started posting here tonight i was saving original code on windows notebook. (not the ++ notebook either!)

    All I did was save a copy of the code I removed - '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>'

    in case I needed to put it back.

  10. #10
    Join Date
    Oct 2007
    Location
    Fairbanks, Alaska
    Posts
    426
    Plugin Contributions
    0

    Idea or Suggestion Re: I think I broke it!

    in case you mess up.

    just unzip a copy of zen cart the same version that you are using and get the file you are looking for, you could then compare the two files with a file compare program like "beyond compare 2" or just replace the file with the original from the unziped zen cart files

    pete
    Last edited by colemanpa; 7 Jan 2009 at 07:33 AM. Reason: changed something

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 I think I broke it and can't figure it out.
    By samisoaps in forum Basic Configuration
    Replies: 2
    Last Post: 28 Dec 2015, 04:50 AM
  2. v151 I need some help! I think I broke something!
    By DannyVarley in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jan 2014, 11:05 AM
  3. Uh Oh, I think I broke my site...
    By cdnbride in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2010, 02:34 AM
  4. cross_sell_1.3.0.it.es.en - I think I broke my site :(
    By Green333 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Oct 2008, 05:06 AM
  5. Help needed - I think I broke it - no page displaying
    By brakepad in forum General Questions
    Replies: 1
    Last Post: 12 Oct 2008, 01:06 AM

Posting Permissions

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