网站突然打不开了,程序错误?有谁遇到过这个问题吗
[b]正常使用了两个月的ecshop昨天起突然页面打不开了。[/b][b]服务器没问题,报错如下,应该是程序错误:
[color=red]PHP Parse error: syntax error, unexpected T_ENDIF [/color][/b]
[b][color=red]in \templates\compiled\help.lbi.php on line 31[/color][/b]
[b]\templates\compiled\help.lbi.php 我打开以后,代码如下,第三十一行用红字显示:[/b]
<?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>
[color=red][b]<?php endif; ?>[/b][/color]
[color=black][/color]
[color=#000000]请帮忙看下,只是[/color][color=#333333][b] line 31[/b]的问题吗还是有什么问题?该如何解决?[/color] *** 作者被禁止或删除 内容自动屏蔽 *** [quote]原帖由 [i]mobiwa[/i] 于 2008-7-13 17:14 发表 [url=http://bbs.ecshop.com/redirect.php?goto=findpost&pid=210960&ptid=58392][img]http://bbs.ecshop.com/images/common/back.gif[/img][/url]
正常使用了两个月的ecshop昨天起突然页面打不开了。
服务器没问题,报错如下,应该是程序错误:
PHP Parse error: syntax error, unexpected T_ENDIF
in \templates\compiled\help.lbi.php on line 31
... [/quote]
後台清空緩存吧
自從升級到0707就常遇到這問題
您的也是0707版嗎?
页:
[1]
