Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php hell-p


fszone

Recommended Posts

Parse error: syntax error, unexpected '}' in /home/.pazzo/ustma/ustma.com/templates/prototype2/index.php on line 68 is the error I'm getting, have removed the small line of code I added before I broke it...... line 68 reads "<?php } ?>" without the quotes have no idea of how to fix any help is appreciated in advanced

Link to comment
Share on other sites

Parse error: syntax error, unexpected '}' in /home/.pazzo/ustma/ustma.com/templates/prototype2/index.php on line 68 is the error I'm getting, have removed the small line of code I added before I broke it...... line 68 reads "<?php } ?>" without the quotes have no idea of how to fix any help is appreciated in advanced

Your error says there is an unexpected curly brace

}

 

Your line 68 shows a brace between a beginning php tag and an ending php tag. Delete the curly brace. From the looks of it, you can probably delete the entire line as you have nothing else between beginning php and ending php. That is my best guess with no more code to see than the one line.

 

Tim

Link to comment
Share on other sites

Your error says there is an unexpected curly brace

}

 

Your line 68 shows a brace between a beginning php tag and an ending php tag. Delete the curly brace. From the looks of it, you can probably delete the entire line as you have nothing else between beginning php and ending php. That is my best guess with no more code to see than the one line.

 

Tim

 

 

thnx, that was the first thing I did, I don't know php but I can read most code. when I delete either the curly brace or the entire line I then get the same error referencing line 130 which only has a closing html tag.

 

thnx for the speedy response and any other light you can shed if you like I can post the entire index.php, it's not that long, actually here.....

 

 

<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml">

 

<head>

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

<?php mosShowHead(); ?>

 

<?php if ( $my->id ) { initEditor(); } ?>

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

<link href="<?php echo $mosConfig_live_site; ?>/templates/prototype2/css/template_css.css" rel="stylesheet" type="text/css" />

 

<?php if(file_exists($mosConfig_absolute_path."/modules/mod_lxmenu/css_lxmenu.css")){ ?>

<link href="<?php echo $mosConfig_live_site; ?>/modules/mod_lxmenu/css_lxmenu.css" rel="stylesheet" type="text/css"/>

<?php } ?>

 

<?

 

$banner_class = "bann_main";

if($_GET["id"] == 20 && $_GET["option"] == "com_content") { // CCREW Webpage

$banner_class = "bann_ccrew";

}

if($_GET["id"] == 21 && $_GET["option"] == "com_content") { // SJuniors Webpage

$banner_class = "bann_sjuniors";

}

?>

</head>

 

<body>

<div id="mainheader">

<div id="header" class="<?php echo $banner_class; ?>">

<ul style="display:none;">

<li><a href="#" class="home" title="home">home</a></li>

<li><a href="#" class="user" title="user">login</a></li>

<li><a href="#" class="contact" title="contact">contact</a></li>

</ul>

<ul style="display:none;" class="free">

<li><a class="call">800-555-1111 444-555-6666</a></li>

</ul>

<?php if (mosCountModules( "top" )) { mosLoadModules ( 'top',-3); } ?>

<!-- <ul class="navi">

<li><a href="#">Home</a></li>

<li><a href="#">About</a></li>

<li><a href="#">Teams</a></li>

<li><a href="#">Programs</a></li>

<li><a href="#">Kcootw</a></li>

<li><a href="#">Media</a></li>

<li class="li1"><a href="#">Contact</a></li>

</ul> -->

<!--<img src="images/ustma-logo.gif" alt="appleweb" width="124" height="138" title="ustma" />-->

</div>

</div>

<div id="mainbody">

<div id="body">

<?php mosMainBody(); ?>

 

<!-- <h2>Welcome</h2>

<p>U.S. Tae Kwon Do Martial Arts Academy established in 1987 is one of the premiere martial arts training facilities in Northern Virginia. Our three locations serve a diverse mix of communities and students. USTMA offers traditional and Olympic style Tae Kwon Do, martial arts weapons training, Tuk Kong Moo Sool, and Hap Ki Do.</p>

<p>Grand Master Eung Gil Choi has been a lifelong student of Tae Kwon Do with over 35 years teaching experience. An accomplished 8th degree black belt, his philosophy is to not only teach Tae Kwon Do as self-defense or as a sport, but also as a way of life.</p>

<p>His belief is that the self confidence, self discipline, and physical fitness that comes with martial arts training can lead to a healthier and happier way of life for the practitioner.</p>

<p>Tae Kwon Do is a great way to help children gain self confidence, self discipline, and respect. If you are interested in becoming a martial arts student, please contact us for a trial lesson.</p>-->

 

<?php } ?> <!-- THIS IS LINE 68 --!>

<!--latest event start -->

<?php if (mosCountModules( "firstcol" )) { ?>

<div id="latest-news">

<h2>latest news<!--<span>on 02nd october 2006</span>--></h2>

<?php mosLoadModules ( 'firstcol',-3); ?>

</div>

<?php } ?>

<!--latest event end -->

<!--newsletter start -->

<?php if (mosCountModules( "secondcol" )) { ?>

<div id="newsletter">

<h2>newsletter<!--<span>Nulla pede sapien,</span>--></h2>

<?php mosLoadModules ( 'secondcol',-3); ?>

</div>

<?php } ?>

<!-- newsletter end -->

<!--specials start -->

<?php if (mosCountModules( "thirdcol" )) { ?>

<div id="specials">

<h2>specials</h2>

<?php mosLoadModules ( 'thirdcol',-3); ?>

</div>

<!--specials end -->

<br class="blankbr" />

</div>

</div>

<div id="mainfooter">

<div id="footer">

<!--footer navigation start -->

<ul>

<li><a href="http://www.ustma.com" class="mg">Home</a>|</li>

<li><a href="http://www.ustma.com/content/view/13/45/">About</a>|</li>

<li><a href="http://www.ustma.com/content/view/20/35/">Teams</a>|</li>

<li><a href="http://www.ustma.com/content/view/27/42/">Programs</a>|</li>

<li><a href="http://www.ustma.com/content/view/12/26/">Cancer Benefit</a>|</li>

<li><a href="http://www.ustma.com/content/view/30/53/">Media</a>|</li>

<li><a href="http://www.ustma.com/component/option,com_contact/Itemid,3/">Contact</a></li>

</ul>

<ul id="secondary">

<li><a href="index.php?option=com_content&task=blogcategory&id=22&Itemid=54">News</a>|</li>

<li><a href="index.php?option=com_letterman">Newsletters</a>|</li>

<li><a href="index.php?option=com_content&task=blogcategory&id=14&Itemid=55">Specials</a>|</li>

<li style="display:none"><a href="java script:void(null);">Sitemap</a></li>

</ul>

 

<ul class="ad">

<li><a>409 Vandiver Drive Columbia, MO</a></li>

<li class="nobor1"><a><span>ph:</span> 800-444-5555 333-444-5555</a></li>

<li class="nobor"><a><span>fax:</span> 222-333-4444 800-888-9999</a></li>

</ul>

<span><a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ustma.com%2F" title="Validate this page"><img src="<?php echo $mosConfig_live_site; ?>/templates/prototype2/images/valid-w3c-xhtml.gif" alt="validate this page" width="56" height="15" /></a></span>

<span><a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ustma.com%2F" title="Validate the CSS stylesheet used on this page"><img src="<?php echo $mosConfig_live_site; ?>/templates/prototype2/images/valid-w3c-css.gif" alt="validate the CSS stylesheet used on this page" width="43" height="15" /></a></span>

<!-- <p>© pab. All rights reserved.</p> -->

<!--<p class="de">Designed by: <a href="http://www.bosterphoto.com/">Boster Studios Web</a></p>-->

<div class="copyright">Copyright © U.S. Tae Kwon Do Academy. All rights reserved.</div>

</div>

 

<!--footer navigation end -->

</div>

<?php mosLoadModules( 'debug', -1 );?>

</body>

</html> <!-- THIS IS LINE 130 --!>

Link to comment
Share on other sites

Looks like you have 2 syntax errors on this page.

 

First: Extra closing bracket on line 68. There is no starting curly bracket for this. Remove

 

<?php } ?> <!-- THIS IS LINE 68 --!>

 

 

Second: Missing closing bracket for if code on line number 86.

 <?php if (mosCountModules( "thirdcol" )) { ?>

 

Looks like this if displays third column and is commented within

<!--specials start -->
<?php if (mosCountModules( "thirdcol" )) { ?>
<div id="specials">
<h2>specials</h2>
<?php mosLoadModules ( 'thirdcol',-3); ?>
</div>
								  ------------------------------------------ Missing closing bracket
<!--specials end -->

 

So we can assume the this if terminates within these comments so to fix this just add closing bracket before closing comments <!--specials end -->, something like this

 

<?php } ?>
<!--specials end -->

 

Hopefully this will fix your problem

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...