HELP ME! I have made a huge mess of a friend's expensive website.

Discussion in 'PHP' started by cosmicmama, Oct 22, 2008.

  1. #1
    A friend and his business partners spent thousands of $$$ on a professional website, and were unhappy because it had no SEO and no traffic. They asked (begged) me to help them and I said I would dabble with it because I have done my own personal websites in the past and have gotten them good placement on Google. Problem...the company that did their website gave them a User ID and password to an FTP server, which is Greek to me. I read for a few hours and then tried playing with it in Frontpage. I changed the index file to include some keywords (which it didn't have before), but now the home page is just a bunch of html! Go look at it!

    http://thehomeenergycompany.com

    I just want to put it back the way it was so I can admit that I figure out how to do it. I know nothing about ftp, php, tcp, or any of that stuff but I thought I could teach myself like I always have with everything else. Can somebody please tell me how to get the page back the way it was????

    PLEASE, I'M DESPERATE! It it were my own, it would be no big deal but I have screwed up someone else's bread and butter!!!!!

    Post replies here, or email me at jennifer@tarborolife.com
     
    cosmicmama, Oct 22, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    relax.. do you have a yahoo account? you can pm me
     
    bartolay13, Oct 22, 2008 IP
  3. cosmicmama

    cosmicmama Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, emailing you now!
     
    cosmicmama, Oct 22, 2008 IP
  4. DaveMM

    DaveMM Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Don't panic it should be easy to fix... worst case the webhost should have a backup made every night
     
    DaveMM, Oct 22, 2008 IP
  5. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Lol oh lol.

    Sorry, prolly not too funny on your end, but check out this link: http://thehomeenergycompany.com/index.php

    Interesting that your server is sending the wrong file. That's what I would have to say it is- as the link: http://thehomeenergycompany.com/ loads as if it is a txt file- the browser does not parse the code. I would check out the file structure of your htdocs. As much as I can tell you without ftp access- good luck =]
     
    ToddMicheau, Oct 23, 2008 IP
  6. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Maybe you have uploaded an index.html, and html files have a higher priority than .php files.
    That means, that your .php file is not shown when browsing the root ;) Simply delete the index.html/index.htm file then. :)

    And hey.. Don't open their files in frontpage, it screws up the code.
     
    elias_sorensen, Oct 23, 2008 IP
  7. cosmicmama

    cosmicmama Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Bartolay13 is the bomb! Thanks for spending so much time trying to help me. I guess my know-it-all self got knocked down a notch or two. I'll think twice before daring to tread where I don't know what the heck I'm doing next time.
     
    cosmicmama, Oct 23, 2008 IP
  8. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #8
    ToddMicheau, Oct 23, 2008 IP
  9. DaveMM

    DaveMM Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Basically he uploaded a index.html which overrode the index.php that the site needed.


    epic ftp fail lol :D
     
    DaveMM, Oct 23, 2008 IP
  10. salahsoftware

    salahsoftware Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Remember to check index.html and index.htm before you upload index.php. It depends upon the lookup setting of the webserver, about which file to fetch first.
     
    salahsoftware, Oct 23, 2008 IP
  11. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #11
    Lawl, well good thing it wasn't quite a huge mess then, eh? xD
     
    ToddMicheau, Oct 23, 2008 IP
  12. cosmicmama

    cosmicmama Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Well, NOW all the pages are the same. I don't know why? I only added some keywords to the index file and changed the page title, I didn't touch anything else! Is it possible the frontpage overrode EVERY page file with the index file, so all links go back to the index page? Can someone look at it and see if they can find a problem?

    What software do you all suggest I use for this? Obviously Frontpage was the wrong choice.
     
    cosmicmama, Oct 23, 2008 IP
  13. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #13
    frontpage sucks, and you seem not to know what you are doing. That seems to be the problem. But no, frontpage probably didn't overwrite every page
     
    Kyosys, Oct 23, 2008 IP
  14. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #14
    Frontpage- as far as I know- is not meant for php work. Your php script references a get variable to find the page, so to fix it the php script itself would need to be looked at. A program I suggest for doing this is Notepad++, but if you don't know php then don't change anything, you will end up breaking things again.

    Private message me if you need a good php developer to take a look at it. =]
     
    ToddMicheau, Oct 23, 2008 IP
  15. cosmicmama

    cosmicmama Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yes, I admit it, I don't know what I am doing. In the past I have always figured things out on my own. I guess my 150 IQ makes me a little cocky. I'm pretty good with HTML, but this php stuff escapes me.

    Anyway, I went to google and found all the cached pages for the site, copied the source code from all of them to give me at least a starting point if I have to start over.

    I hope I have a slow enough night at the hospital tonight to sit down and read these forums, which is what I should have done in the first place.
     
    cosmicmama, Oct 23, 2008 IP
  16. Scifipie Guy

    Scifipie Guy Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I am not a programmer, but I do know basic html. This may not be helping either.

    From view source: <link rel="shortcut icon" href="file:///C:/Documents and Settings/Jennifer/My Documents/My Webs/hei/skin/images/favicon.ico" type="image/x-icon" />

    Also, the site says at the bottom: Copyright© 2008 TheHomeEnergyCompany.com | Site hosted and designed by the Wilmington Design Company.

    I see in the meta tags this troubling code also: <META NAME="Author" CONTENT="<A href="mailto:jennifer@tarborolife.com"><meta">jennifer@tarborolife.com"><meta http-equiv="keywords" name="keywords" content=""/>

    When validating code for http://validator.w3.org/, the <meta tags do not validate in CAPS.

    I know this is off the main issue, but, who is the real author? The way view source reads now, you're claiming all that content is your own. Is it yours or what? I doubt it from what you said in your posts above.

    Get the hosting company to revert to a backup copy of the site, or tell your friends you messed it up and they need to pay a professional to fix it.

    I never used front page but it looks as if the rel link got re-written to your documents and that may be the source of your problems as far as the pages displaying the same thing over and over, even tho' the url path is supposed to be different.

    I have seen something similar to this happen using Dreamweaver when it asks if you want to update links, it overwrites to My Documents. I caught it in time then, and just reversed the edit.

    Good luck, you need it.

    P.S. You shouldn't claim someone else's work as your own, ever. I hope that this helps you in the future.
     
    Scifipie Guy, Oct 23, 2008 IP
    vishwaa likes this.
  17. Scifipie Guy

    Scifipie Guy Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Further research reveals a major problem.

    I viewed the source and studied it for a bit and you have no base href listed for the short urls.

    In the head, before the body, you need this meta tag here: <base href="http://www.thehomeeenergycompany.com/" /> All the absolute urls that are in the index.php work if you copy and paste them in the address bar. Therefore, you either need to add the base href, or make the url a full url such as <li class='current'><a href='http://www.thehomeenergycompany.com/index.php?c=index' title='Home'>Home</a></li>

    Also, look for this slice of code also:<link rel="shortcut icon" href="file:///C:/Documents and Settings/Jennifer/My Documents/My Webs/hei/skin/images/favicon.ico" type="image/x-icon" /> and make it read this way here: <link rel="shortcut icon" href="/skin/images/favicon.ico" type="image/x-icon" />

    This "should" fix your page display problems.

    Also, in the sidenav menu on the left, all the links like this have single quotes on the source code. <li><a href='index.php?c=about' title='About'>About</a></li>. Now, I'm not 100% sure on this, but on my sites, the php generated pages have double quotes around links. This "May" be part of the problem as well.

    Good luck.
     
    Scifipie Guy, Oct 24, 2008 IP
  18. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #18
    You just had to mention your 150 IQ, didn't you?

    If your IQ is that high, then why did you fail to make backups before screwing something up? Why did you try to do something you have no idea about? Why do you think using cached pages is a good idea, when the PHP on these pages is obviously nonexistant because they're cached
     
    Kyosys, Oct 24, 2008 IP
  19. Bind

    Bind Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Intelligent Quotient has nothing to do with rationale, common sense, or (a lack of) knowledge from selective experiences they may not have experienced previously.

    He/She mentioned IQ to feel a little better about his/her-self ... that's all.

    It's obvious the OP is in strange waters here, but he/she admitted fault and are trying to mitigate that feeling of being knocked down a notch or two.

    I think its refreshing to see someone admit their mistakes (although the IQ statement should have not been posted for it's lack of relevence) ...

    none one knows everything about everything.
     
    Bind, Oct 25, 2008 IP
  20. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #20
    i was just picking on them because they were obviously showing off. I don't care what their IQ is, no one here does. We help everyone, even those who are barely literate (which are a lot of people, sadly)
     
    Kyosys, Oct 25, 2008 IP