NoName Mobile
NoName » Project Parasy » 关于状态统计 关于状态统计
by cyong at 2007-10-5 17:11
统计图表显示总是失败
提示说"error loading file: now_api.php?...."
请教SAI.谢谢!
# 1 - Sai at 2007-10-5 18:19
直接访问
论坛路径/now/用户名/stats/xml
和
论坛路径/now/用户名/stats/xml/set
看看显示的是什么(查看源文件)
# 2 - cyong at 2007-10-5 19:11
我是根据你的.htaccess 做了个反转换,now_stats.htm中的这三行代码 so.addVariable("path", "$bbsdir/images/now/");
so.addVariable("settings_file",escape("$bbsdir/now/$author_encode/stats/xml/set"));
so.addVariable("data_file", escape("$bbsdir/now/$author_encode/stats/xml"));
改成了:
so.addVariable("path", "images/now/");
so.addVariable("settings_file", escape("now_api.php?action=stats_xml&type=setting&author=$author_encode"));
so.addVariable("data_file", escape("now_api.php?action=stats_xml&type=data&author=$author_encode"));
这三行改得有问题吗?插件程序其他部分修改后运行都正常.谢谢.
# 3 - Sai at 2007-10-5 20:33
那么就直接运行
now_api.php?action=stats_xml&type=setting&author=用户名
看返回的结果
# 4 - cyong at 2007-10-5 21:27
# 5 - Sai at 2007-10-5 21:39
到模板目录中看看now_stats_xml.htm,now_stats_xml_setting.htm是不是utf-8编码
在now_api.php <?php后加入
error_reporting(E_ALL);
看看有没有报错
# 6 - cyong at 2007-10-5 22:52
now_stats_xml.htm,now_stats_xml_setting.htm正常,在now_api.php <?php后加入error_reporting(E_ALL);
还是一样,空白,
麻烦了,
我自己再查查吧.
# 7 - cyong at 2007-10-6 09:13
搞定啦
© 2007 NoNameMagazine