PDA

View Full Version : iWeb produced sites giving "syntax error"


turtle
2007-04-24, 14:43
Parse error: syntax error, unexpected T_STRING in /home/mydomain/public_html/index.html on line 1

This is the error I get on any site I have published through my host that iWeb created the site. Can some one point me in the right direction as to why I would get this error from anything iWeb created?

My WordPress site is fine, but I don't have anything else up for testing.

chucker
2007-04-24, 14:52
That's an error from PHP. Mind giving a code sample?

turtle
2007-04-24, 15:08
<?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= Welcome.html" /></head><body></body></html>

If I manually navigate to "Welcome.html" I get the same error. :\

Here's the code for "Welcome.html"
<?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" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta name="Generator" content="iWeb 1.1.2" />
<title>Welcome</title>
<link rel="stylesheet" type="text/css" media="screen" href="Welcome_files/Welcome.css" /><script type="text/javascript" src="Welcome_files/Welcome.js"></script>
</head>
<body style="background: #ffffff; margin: 0pt; " onload="onPageLoad();">
<div style="text-align: center; ">
<div style="margin-left: auto; margin-right: auto; overflow: hidden; position: relative; background: #ffffff; text-align: left; width: 700px; " id="body_content">
<div style="float: left; margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer">
<div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
</div>
<div style="float: left; height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer">
<div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
</div>
<div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer">
<div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
<div class="graphic_generic_title_textbox_style_default" style="height: 49px; left: 35px; position: absolute; top: 22px; width: 630px; z-index: 1; " id="id1">
<div>
<div class="graphic_shape_layout_style_default">
<div class="paragraph Title" style="line-height: 42px; padding-bottom: 0pt; padding-top: 0pt; ">Kelly International, Inc.</div>
</div>
</div>
</div>


<img src="Welcome_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 35px; position: absolute; top: 1px; width: 630px; z-index: 1; " />

<img src="Welcome_files/Kelly%20Red%201.png" alt="" id="id2" style="border: none; height: 412px; left: 35px; position: absolute; top: 88px; width: 630px; z-index: 1; " />
<div style="height: 1px; line-height: 1px; " class="tinyText"> </div>
<div class="graphic_generic_body_textbox_style_default" style="margin-left: 35px; margin-top: 458px; position: relative; width: 630px; z-index: 1; ">
<div>
<div style="padding: 4px; " class="Normal">
<div class="paragraph Heading_1" style="line-height: 25px; padding-top: 0pt; ">Welcome to Kelly International, Inc.</div>
<div class="paragraph Body" style="line-height: 20px; ">We are a new company that is here to serve your needs for the photographic world. Our site is currently under development and is expecting to be in full operation in the near future. </div>
<div class="paragraph Body" style="line-height: 20px; text-decoration: none;"> </div>
<div class="paragraph Body" style="line-height: 20px; padding-bottom: 0pt; ">Please check back with us regularly and see our improvements. If you would like to offer feedback or suggestions for product lines to carry, feel free to drop us a line by clicking the mailbox below to email our sales department.</div>
</div>
</div>
</div>
</div>
<div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer">
<div style="height: 0px; line-height: 0px; " class="tinyText"> </div>
<a href="mailto:sales@kellyinternationalinc.com?subject=Sal es%20Questions%20and%20Comments" title="mailto:sales@kellyinternationalinc.com?subject=Sal es%20Questions%20and%20Comments"><img src="Welcome_files/US%20Mailbox-002.png" alt="" id="id3" style="border: none; height: 70px; left: 445px; opacity: 1.00; position: absolute; top: 40px; width: 70px; z-index: 1; " /></a>
</div>
</div>
</div>
</body>
</html>

chucker
2007-04-24, 15:18
Does it happen when you leave out the <?xml version="1.0" encoding="UTF-8"?> line?

turtle
2007-04-24, 15:23
Ok, so that worked. Why would iWeb put something like that in the code if it isn't going to work? So much for "it just works." :\

chucker
2007-04-24, 15:27
iWeb is doing the right thing. Your webhost apparently has a broken PHP configuration.

turtle
2007-04-24, 15:30
Great, so what do I ask them? "Some one on my forums said your stuff was broken?" :D

Brad
2007-04-24, 15:36
Ask them:

- Why is the server trying to parse .html files as PHP files?
- Why is the server trying to parse <?xml ?> as <?php ?>?

chucker
2007-04-24, 15:40
Ask them to turn off allowing PHP parsing to occur between <? ?>, and to only have it occur between <?php ?>. That might do the trick.

PKIDelirium
2007-04-24, 15:52
They're running PHPSuExec, not sure if that would affect this.

Ask them to turn off allowing PHP parsing to occur between <? ?>, and to only have it occur between <?php ?>. That might do the trick.

Hope they don't do that on my server, too. All my scripts use <? ?>

turtle
2007-04-24, 21:31
I sent a trouble ticket in to see what it comes back with. Thanks for the input guys. I'll post my results here when they come in.

turtle
2007-04-24, 22:17
My first response came in:
I do not believe this should be occurring, can you provide a link to a page that is doing it, so we can troubleshoot further?


So I sent him a copy of index.html for all three of my domains and a description of how one only forwards to the other and one is standalone.....


New reply:
I will ask an admin to investigate this

Regards,

Phil

turtle
2007-04-25, 10:29
It's fixed. This morning I awoke to this:
We have solved the issue. The server was not able to parse the .html file. We have attached the snapshot of the three sites resolving.
Please inform us if you have any further issues.

Thanks for your help guys. I wouldn't have know who's issue it was otherwise. I kept uploading iWeb pages trying to get it right when I knew it *used* to work. :)