11 Replies Latest reply: Dec 12, 2009 9:38 AM by Egidio Leitao
teklife Level 1 (0 points)
Parse error: syntax error, unexpected T_STRING in /home/a8791534/public_html/index.html on line 1

that's the error i get after i uploaded my iweb created site, via ftp, to web hosting site. what does it mean and how do i resolve it?

i appreciate the help.

cheers,
ssameer

Message was edited by: teklife

macbook 2.1, Mac OS X (10.5.8)
  • Alancito Level 6 (11,095 points)
    teklife wrote:
    i uploaded my iweb created site, via ftp, to web hosting site.

    ssameer ~ It may be useful to indicate whether you used iWeb's built-in FTP app or another one. If you're using another one, indicate the name of the FTP app and confirm that you correctly uploaded both the Index folder and the folder(s) named as your site.

    Also, you can see the source of the page Safari is trying to load by clicking on the View menu in Safari and choosing +View Source+.

     ~ Alancito
  • teklife Level 1 (0 points)
    oh, ok; yes i did upload it via iweb's built in ftp app.
  • Alancito Level 6 (11,095 points)
    Okay, so how does the page look when you do View > View Source in Safari? ...If you don't mind, post your URL here so we can see how the source looks for ourselves.

     ~ Alancito
  • teklife Level 1 (0 points)
    thanks for your help alancito. here's the web address
    http://eatingupthefoodchain.com/

    and here it is on my laptops own server, if you want to see the source code on there. this is my first site, and it's just a rough draft, bang out job. really just an experiment to learn to make a website. it seems getting itonto a host server is a bit more complicated. anyway, here it is on my machine, which runs apache 2.2 just like the host server i'm trying to get it on.
    http://64.131.180.177
  • Alancito Level 6 (11,095 points)
    Looking at the source, it doesn't look like a valid page. Go to this page which was built in iWeb:

    http://iwebfaq.org/site/iWeb_FAQ.html

    ...and in Safari do +View > View Source+. Your page should look something like that.

    I don't have any further suggestions, but someone else probably will.

     ~ Alancito
  • teklife Level 1 (0 points)
    doh! sorry, the site on my server now looks as it should
  • Tom Gewecke Level 9 (77,205 points)
    Parse error: syntax error, unexpected T_STRING in /home/a8791534/public_html/index.html on line 1


    This is normally caused by a misconfigured server. For possible fixes, see

    http://homepage.mac.com/thgewecke/parsingerror.html
  • williamkarambelas Level 1 (0 points)
    this is a problem with your web host i think i found a answer (not sure) use www.l4rge.com as your host this has given me great hosting after 3 months of research. i do not garentee (soory no spell check) this soulution.
  • Dan Parnell Level 1 (90 points)
    This is a PHP error caused by a PHP script you're using. This isn't the fault of iWeb but rather whatever PHP script you have embedded in the page. If you remove the script, the site will work properly.

    If you can post the script here, we might be able to troubleshoot it for you.
  • Tom Gewecke Level 9 (77,205 points)
    This is a PHP error caused by a PHP script you're using. This isn't the fault of iWeb but rather whatever PHP script you have embedded in the page.


    iWeb sites don't normally have php scripts in them. The problem is almost always caused by server settings as mentioned in the earlier post to this thread:

    http://homepage.mac.com/thgewecke/parsingerror.html
  • Egidio Leitao Level 1 (25 points)
    I also had that same error when I created my podcast using Garage Band and iWeb. Though everything seemed correct, I couldn't get the web pages to show up on my site. So, after some troubleshooting, I discovered that removing this line

    <?xml version="1.0" encoding="UTF-8"?>

    from all iWeb documents solved my problem. That line appears in several documents that iWeb creates. The easiest way I found to get rid of it was using BBEdit. It can do a global search in all documents in the folder created by iWeb.

    I'm also going to talk with the syst analyst at my server side. From what I've read, it appears the error is on the server side.

    Hope this helps.