分析导致网站崩溃

时间:2011-05-20 作者:user5544

好的,我是网站管理员http://www.detroitdungeon.com 最近出现了一些分析问题。我安装了google analytics插件,它在相当长的一段时间内运行良好。页面加载后,插件突然导致IE用户崩溃。因此,我决定不使用插件,而是使用谷歌提供给我的代码,并将其放在网站的页脚。这样做会导致网页在所有浏览器中崩溃。将代码放入页脚后,源代码将读取

<b>Parse error</b>: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting \',\' or \';\' in <b>/home/content/36/5385336/html/detroitdungeon/wp-content/themes/delighted_black2/footer.php</b> on line <b>5</b>
这是页脚。php

<?php 

include(\'footer_content.php\');$delight_mainfont = get_option(\'delight_mainfont\');echo \'<div id="footcopy"><span class="left"><a href="http://zenverse.net/delighted-black-wordpress-theme/">Delighted Black</a> designed by <a href="http://yourchristianspace.com">Christian Myspace</a> & <a href="http://www.digitaldesignzmedia.com">Designed By: Digital Designz Media Group</a></span><span class="right">In conjunction with <a href="http://pingler.com">Ping Services</a>   <span style="font-family:tahoma;">|</span>   <a href="http://frenchteacherjobs.com">French Teacher Jobs</a>   <span style="font-family:tahoma;">|</span>   <a href="http://mathsteacherjobs.com">Maths Teacher Jobs</a> </span>
<div class="clear"></div></div></div>

<!--/page-->

<script type="text/JavaScript">var TFN=\'\';var TFA=\'\';var TFI=\'0\';var TFL=\'0\';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16;c=s;v=5";document.write(unescape(\'%3Cscript type="text/JavaScript" src="\'+tf_ScrServer+\'">%3C/script>\'));</script><noscript><img src="http://rt.trafficfacts.com/ns.php?k=254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16" height="1" width="1" alt=""/></noscript>

</body></html>\';

?>
我尝试使用godaddy analytics,但同样的问题正在发生。任何帮助都将不胜感激。

2 个回复
最合适的回答,由SO网友:xLRDxREVENGEx 整理而成
<?php 

include(\'footer_content.php\');$delight_mainfont = get_option(\'delight_mainfont\');echo \'<div id="footcopy"><span class="left"><a href="http://zenverse.net/delighted-black-wordpress-theme/">Delighted Black</a> designed by <a href="http://yourchristianspace.com">Christian Myspace</a> & <a href="http://www.digitaldesignzmedia.com">Designed By: Digital Designz Media Group</a></span><span class="right">In conjunction with <a href="http://pingler.com">Ping Services</a>   <span style="font-family:tahoma;">|</span>   <a href="http://frenchteacherjobs.com">French Teacher Jobs</a>   <span style="font-family:tahoma;">|</span>   <a href="http://mathsteacherjobs.com">Maths Teacher Jobs</a></span>
<div class="clear"></div></div></div>
<!--/page-->
\';?>
<script type="text/JavaScript">var TFN=\'\';var TFA=\'\';var TFI=\'0\';var TFL=\'0\';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16;c=s;v=5";document.write(unescape(\'%3Cscript type="text/JavaScript" src="\'+tf_ScrServer+\'">%3C/script>\'));</script><noscript><img src="http://rt.trafficfacts.com/ns.php?k=254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16" height="1" width="1" alt=""/></noscript>
</body></html>
SO网友:user27901

我最近在我们的网站上遇到了同样的问题,所以我做了以下事情。

转到我们的控制面板并启动(单击托管)

  • 单击文件和;FTP选项卡单击了文件管理器,单击了目录左侧的域名(不要单击文件或域名旁边的+),单击了名称wp内容,单击了插件,单击了google analytics for wordpress旁边的框,然后单击了顶部的重命名,将文件夹重命名为google-analytics-for-wordpress(仅在末尾添加了1)
  • 单击“重命名”删除了结尾处的1(google analytics for wordpress没有结尾处的1)
  • 返回到我的网站www.henpublishing。它与google analytics的合作完好无损,可能会再次崩溃,不确定,但目前仍在继续。也许,谷歌或WordPress很快就会解决这个问题。希望这有帮助
  • 结束