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.
Any ideas?
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.
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.
$xajax = new xajax();
$xajax->getJavascript();
Is required in the php script to generate the JavaScript needed to define 'xajax_addShoutOut'
精彩评论