error_log 很多错误, 求解
By
eddie01001
at 2016-02-25 • 0人收藏 • 1676人看过
[24-Feb-2016 19:10:37 America/Denver] PHP Notice: Undefined variable: CurProtocol in /home2/mydomain/public_html/bbs/styles/default/template/layout.php on line 18 ------------------------------------------- <?php if($Config['MobileDomainName']){ ?> <meta http-equiv="mobile-agent" content="format=xhtml; url=<?php echo $CurProtocol . $Config['MobileDomainName'] . $RequestURI; ?>" /> <?php }
======================
[24-Feb-2016 18:16:29 America/Denver] PHP Notice: Undefined variable: CurProtocol in /home2/mydomain/public_html/bbs/styles/mobile/template/layout.php on line 63 ------------------------------------------- if($Config['MobileDomainName']){ ?> <meta http-equiv="mobile-agent" content="format=xhtml; url=<?php echo $CurProtocol . $Config['MobileDomainName'] . $RequestURI; ?>" /> <?php } ?>
======================
[24-Feb-2016 16:10:41 America/Denver] PHP Parse error: syntax error, unexpected 'version' (T_STRING) in /home2/mydomain/public_html/bbs/open_search.php on line 5 ------------------------------------------- header("Content-Type: text/xml"); //https://developer.mozilla.org/en-US/docs/Creating_MozSearch_plugins ?><?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz=" <a href="http://www.mozilla.org/2006/browser/search/">" _src="http://www.mozilla.org/2006/browser/search/">">http://www.mozilla.org/2006/browser/search/">
都是这三个重复错误
3 个回复 | 最后更新于 2016-02-26
登录后方可回帖
同样还是部分服务器上的open tag的设置导致的,将对应文件替换为以下版本即可。
https://github.com/lincanbin/Carbon-Forum/blob/master/open_search.php