Ack! What am i doing wrong??

Discussion in 'Web Design and Development' started by amyweitron, Oct 15, 2006.

  1. amyweitron macrumors newbie

    Joined:
    Oct 15, 2006
    #1
    :eek: I keep getting this error message when I visit the iWeb site I have uploaded through Web Echo:

    Parse error: parse error, unexpected T_STRING in /home3/weitron/weitron-www/index.html on line 1

    What does it mean? Can anyone help? I appreciate it greatly!
     
  2. Shadow macrumors 68000

    Shadow

    Joined:
    Feb 17, 2006
    Location:
    Keele, United Kingdom
  3. Shadow macrumors 68000

    Shadow

    Joined:
    Feb 17, 2006
    Location:
    Keele, United Kingdom
    #4
    Is it uploaded onto .Mac?

    EDIT: To clafify, whats the host?
     
  4. ThunderLounge macrumors 6502

    ThunderLounge

    Joined:
    Sep 20, 2006
    #5
    Is there any php code in the file?

    Regular html won't throw an error like that.
     
  5. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #6
    php

    It was made on iWeb for an outside domain, www.weitron.com.

    I published the iWeb site to a folder. It generated an index.html and I put that on the server as well. Perhaps it's not meant to be in there?

    the host name is host21.apollohosting.com
     
  6. Shadow macrumors 68000

    Shadow

    Joined:
    Feb 17, 2006
    Location:
    Keele, United Kingdom
    #7
    If its not .Mac, its probably a MySQL/PHP error. If it is .Mac, Im stumped. Try checking your code (on line 1 :p). Infact, could you post the code here in CODE tags?
    Code:
    This is a code tag example.
     
  7. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #8
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= www.weitron.com/Home.html" /></head><body></body></html>
     
  8. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #9
    Code:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= www.weitron.com/Home.html" /></head><body></body></html>
     
  9. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #10
    GOD I'M SUCH A NOOOB - thank you so much for taking time to look!
     
  10. neoserver macrumors 6502

    Joined:
    Apr 24, 2003
    #11
    The host most likely has PHP configured to parse all files as PHP, even the .html files.

    the
    Code:
    <?xml....
    is causing PHP to croak since
    Code:
    <?
    is the short hand way of starting a PHP block.

    either ask the host to disable PHP short tags or remove the
    Code:
    <?xml
    tag.

    I had a similar problem when I was setting up my development server and had that <?xml tag in my code. I just disabled short tags.
     
  11. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #12
    tomorrow morning i will contact my host and report back.

    again, thanks so much!
     
  12. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #13
    I contacted my host's tech support and he said he turned off the PHP short tags...but same error occurs.

    What do I delete from the code if I want to delete the tag?
     
  13. neoserver macrumors 6502

    Joined:
    Apr 24, 2003
    #14
    Try clearing your cache in your browser and see if the error still occurs.

    Otherwise
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    at the beginning of the code should resolve the issue if you remove it.
     
  14. ThunderLounge macrumors 6502

    ThunderLounge

    Joined:
    Sep 20, 2006
    #15
    Hopefully they didn't turn it off serverwide... :eek:
    Might have some irritated folks.


    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    Just take that out. You're not sending xml code, so there isn't a reason to have it in there at all.
     
  15. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #16
    Now I get a 404 Not Found error. Requested URL not found on this server.

    he said he turned it off within our bit or something...eep hope i haven't brought things crumbling down.
     
  16. neoserver macrumors 6502

    Joined:
    Apr 24, 2003
    #17
    Your index.html is redirecting to /www.wietron.com/Home.html...

    Make sure your META refresh is doesn't have the www.wietron.com stuff in it
     
  17. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #18
    the original error says the problem is in

    /home3/weitron/weitron-www/index.html on line 1

    but i think it ought to be /home/, not /home3/. weird?
     
  18. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #19
    Code:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= www.weitron.com/Home.html" /></head><body></body></html>
     
  19. neoserver macrumors 6502

    Joined:
    Apr 24, 2003
    #20
    no leave it as /home3/ as that has something to do with your host.

    Change your META refresh to not have the www.wietron.com bit in it

    Then on all your other pages remove that <?xml bit as it appears as if all your pages will have that issue.
     
  20. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #21
    okay now the last part looks like this:

    Code:
    </title><meta http-equiv="refresh" content="0;url=" /></head><body></body></html>
    i will go to each .html page and remove that first <?xml tag.
     
  21. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
  22. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #23
    okay so it looks like there are some formatting issues to deal with...but at least the face of the site is finally Effing up.
     
  23. Aperture macrumors 68000

    Aperture

    Joined:
    Mar 19, 2006
    Location:
    PA
    #24
    Is it really fixed? I am still getting the:

    Code:
    Parse error: parse error, unexpected T_STRING in /home3/weitron/weitron-www/index.html on line 1

    Error.

    ??

    Kevin
     
  24. amyweitron thread starter macrumors newbie

    Joined:
    Oct 15, 2006
    #25
    Yeah i deleted all the bad tags manually, but now I'm updating it, so all the bad tags are back. But at least now I know how to get the site to show up.

    iWeb is so not one-click. Not even like, 20-click.
     

Share This Page