...

View Full Version : [CODE] Error message



Power Storm
08-15-2012, 11:31 AM
To whom this may concern.

I'm not sure if I am posting in the correct section, however I need some help with correcting a problem with some code. Our usual guru is away on holidays and I only have some limited knowledge, however it is having an affect on our website/forum display.

We are getting the following message:

Parse error: syntax error, unexpected '}' in /home/weather/public_html/forum/cache/tpl_prosilver_overall_footer.html.php on line 27

Now I followed through our directory and I'm assuming found line 27, however I cannot for the life of me find the error. Here is the code:

<li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) { ?>

Is anyone able to help?

Thanks.

Jordann
08-15-2012, 11:37 AM
Can you give us the code to line 27 please?

Power Storm
08-15-2012, 11:49 AM
Yes sorry I did wonder if you needed more.

Here you go:


<?php if (!defined('IN_PHPBB')) exit; ?><br />
<center><br />
<img alt="" style="visibility: hidden; width: 0px; height: 0px" border="0" width="0" height="0" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNjgyMTI4MjQ1NzgmcHQ9MTI2ODIxMjg*MDYyNSZwPTMyMzAwMiZkPW1hcGxvY28mZz*xJm89ZTA4OTUxODIwZjVh/NGExMmI2MDU*ODJkYWM4ZjVlYTA=.gif" /><br />
<p align="center" class="style1"></p>
<h4><a title="" href="../../../../../mainpage.html">Link to the AWF weather forecasting services</a></h4>
<p align="center" class="style1"></p>
<h4><a href="../../../../../AWFthunderstormforecast.html" target="_blank" class="style2">THE AWF THUNDERSTORM FORECAST</a></h4>
<center>
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps/ms?hl=en&amp;vpsrc=6&amp;ctz=-660&amp;ie=UTF8&amp;msa=0&amp;msid=209306058639215611982.0004af00517f9c33c4c1e&amp;t=m&amp;ll=-36.967449,144.865723&amp;spn=8.423411,14.0625&amp;z=6&amp;output=embed"></iframe></center>
<div align="center">
<p>&nbsp;</p>
<div>
<p>&nbsp;</p>
<p align="center" class="style1"></p>
<h4 class="style2">THE AWF RAINFALL STATS 2012</h4>
<center>
<iframe width="900" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.berwickweather.info/awfrainfalllily.htm"> </iframe></center><br />
<a href="http://twitter.com/AusWeatherForum" target="_blank"><img src="http://www.twitterbuttons.com/upload/images/6bbfe7889cfollow-us-on-twitter.gif" title="Follow us on Twitter!" alt=" " width="75" height="75" /></a><br />
<div id="page-footer">
<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="linklist">
<li class="icon-home"><a href="<?php echo (isset($this->_rootref['U_INDEX'])) ? $this->_rootref['U_INDEX'] : ''; ?>" accesskey="h"><?php echo ((isset($this->_rootref['L_INDEX'])) ? $this->_rootref['L_INDEX'] : ((isset($user->lang['INDEX'])) ? $user->lang['INDEX'] : '{ INDEX }')); ?></a></li><?php if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_WATCH_FORUM_LINK']) { ?>

<li <!--="" if="" s_watching_forum="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['S_WATCH_FORUM_LINK'])) ? $this->_rootref['S_WATCH_FORUM_LINK'] : ''; ?>" title="<?php echo (isset($this->_rootref['S_WATCH_FORUM_TITLE'])) ? $this->_rootref['S_WATCH_FORUM_TITLE'] : ''; ?>"><?php echo (isset($this->_rootref['S_WATCH_FORUM_TITLE'])) ? $this->_rootref['S_WATCH_FORUM_TITLE'] : ''; ?></a></li><?php } if ($this->_rootref['U_WATCH_TOPIC']) { ?>

<li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) { ?>

Jordann
08-15-2012, 12:32 PM
line 27?


<li class="icon-home"><a href="<?php echo (isset($this->_rootref['U_INDEX'])) ? $this->_rootref['U_INDEX'] : ''; ?>" accesskey="h"><?php echo ((isset($this->_rootref['L_INDEX'])) ? $this->_rootref['L_INDEX'] : ((isset($user->lang['INDEX'])) ? $user->lang['INDEX'] : '{ INDEX }')); ?></a></li><?php if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_WATCH_FORUM_LINK']) { ?>

Power Storm
08-15-2012, 12:36 PM
Well according to the program I use that's line 23. I thought line 27 was further down? Sorry I'm not very good at all this.

Jordann
08-15-2012, 01:10 PM
Can you post line 27 for me please just line 27. Also when posting code stick the [CODE][ /CODE] Tags with out the space

Power Storm
08-15-2012, 01:22 PM
This is line 27 from what I can tell:


<li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) { ?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum