phpFox:切换服务器后 ShoutBox 停止工作
我将 phpFox 站点移至另一台服务器,但shoutbox 停止工作。根据 Chrome 调试器:
Uncaught ReferenceError: xajax_addShoutOut is not defined
(anonymous function)community:451
onsubmit
我注意到新站点的 中缺少几行,但我不知道它们去了哪里。
有什么想法吗?
I moved a phpFox site to a different server and the shoutbox stopped working. According to the Chrome debugger:
Uncaught ReferenceError: xajax_addShoutOut is not defined
(anonymous function)community:451
onsubmit
I noticed that a few lines were missing from the new site's <head>
, but I have no idea where they go.
var xajaxRequestUri="http://domain.com/community/public/";
var xajaxDebug=false;
var xajaxStatusMessages=false;
var xajaxWaitCursor=false;
var xajaxDefinedGet=0;
var xajaxDefinedPost=1;
var xajaxLoaded=false;
function xajax_latestVideos(){return xajax.call("latestVideos", arguments, 1);}
function xajax_getShoutboxMessages(){return xajax.call("getShoutboxMessages", arguments, 1);}
function xajax_addShoutOut(){return xajax.call("addShoutOut", arguments, 1);}
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将它们添加到旧服务器上的位置。如果您不记得了,请检查 archive.org 或 Google/Bing 页面的搜索缓存。
Add them where they were on the old server. If you don't remember, check archive.org or Google/Bing's search cache of your page.
看起来 xajax 不在新服务器上,或者位于不同的位置。查看您的 php 脚本中是否包含“xajax.inc.php”,这就是它期望找到 xajax 的位置。
head 中缺少的那些行是由 xajax 生成的,您不需要自己添加它们。
在 php 脚本中需要生成定义“xajax_addShoutOut”所需的 JavaScript
It looks like xajax isn't on the new server, or it's in a different location. Have a look in your php scripts for an include 'xajax.inc.php' that's where it's expecting to find xajax.
Those lines missing from head are generated by xajax, you don't add them yourself.
Is required in the php script to generate the JavaScript needed to define 'xajax_addShoutOut'