网站突然打不开了,程序错误?有谁遇到过这个问题吗
正常使用了两个月的ecshop昨天起突然页面打不开了。
服务器没问题,报错如下,应该是程序错误:
PHP Parse error: syntax error, unexpected T_ENDIF
in \templates\compiled\help.lbi.php on line 31
\templates\compiled\help.lbi.php 我打开以后,代码如下,第三十一行用红字显示:
<?php if ($this->_var['helps']): ?>
<div id="globalHelp" class="globalModule">
<h3>帮助中心</h3>
<table border="0" cellspacing="0">
<tr>
<?php $_from = $this->_var['helps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'help_cat');if (count($_from)):
foreach ($_from AS $this->_var['help_cat']):
?>
<th><?php echo $this->_var['help_cat']['cat_name']; ?></th>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tr>
<tr>
<?php $_from = $this->_var['helps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'help_cat');if (count($_from)):
foreach ($_from AS $this->_var['help_cat']):
?>
<td>
<?php $_from = $this->_var['help_cat']['article']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
<a href="<?php echo $this->_var['item']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['item']['title']); ?>"><?php echo $this->_var['item']['short_title']; ?></a><br />
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</td>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tr>
</table>
</div>
<?php endif; ?>p endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tr>
</table>
</div>
<?php endif; ?>
请帮忙看下,只是 line 31的问题吗还是有什么问题?该如何解决?