Syntax error

7 posts by 2 authors in: Forums > CMS Builder
Last Post: February 17, 2008   (RSS)

I have just installed the CMS builder and published the standard staffBios.php page.
You can see at http://www.first4studio.com/indus/staffBios.php I get an error.
I have pasted the first few lines of the page and as you can see it is identical to the coding produced by the application. I am a little confised.

<?php echo "<?xml version='1.0'?>\n"; ?>
<!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="Content-Type" content="text/html;charset=UTF-8" />
<style type="text/css">
body { font-family: arial; }
.instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
</style>
</head>

Re: [Dave] Syntax error

Current PHP version: 4.4.8

Re: [Vaisoco] Syntax error

By Dave - February 17, 2008

It's very strange, the only code that I see there in the first 3 lines is the bit that prints the xml tag:

<?php echo "<?xml version='1.0'?>\n"; ?>

Does removing that first line (that prints the xml tag) make a difference?

I tested this on my local version of PHP 4 but couldn't reproduce yet. See if removing that line makes a difference (then we'll know the cause). If not, you could always send us login details (dave@interactivetools.com) and we can login and track it down for you.

Let me know if removing that lines makes a difference, and how we can best help get this resolved for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Syntax error

By Vaisoco - February 17, 2008 - edited: February 17, 2008

Thankyou Dave.

Your suggestion seemed to do the trick.
However I have just created another page http://www.first4studio.com/indus/offersPage.php
I removed the first line again but this time the error remains.

Please do take a look.

The files are in public_html/first4studio/indus~

My sincere thanks

Re: [Vaisoco] Syntax error

By Vaisoco - February 17, 2008 - edited: February 17, 2008

I also notice that when adding a field to a "Custom" section, the field doesn't show up in the list. Its actually necessary to come out of that section editor and go back in again.

Re: [Vaisoco] Syntax error

By Dave - February 17, 2008

It seemed to be working when I logged in and created a test field.

Which browser are you using? We develop and test with recent IE and Firefox. Can you check with either of those?
Dave Edis - Senior Developer
interactivetools.com