News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Preview just stopped working!

Started by Yonkey, September 20, 2005, 03:09:25 PM

Previous topic - Next topic

Yonkey

I just noticed my Preview button stopped working.  :'( I'm using SMF 1.1 Beta 3, but I'm pretty sure it was always working.  But now when I click the button, it just says Fetching Preview... and a JavaScript error occurs:

Line: 174
Char: 12
Error: 'getElementsByTagName(...).0' is null or not an object

The line it's referring to is:


var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];


I tried removing all my mods and even switching to another theme, but the error still occurs when I hit Preview. :-\

Yonkey

Argh.  Now the Insert Quote is getting screwy too.  It's scrolling to the top of the page, inserting and then giving the error:

Line: 547
Char 22
Error: Object required

The line 547 is the blank line after reqWin:

if (window.XMLHttpRequest)
getXMLDocument("http://www.kqix.com/forum/index.php?action=quotefast;quote=" + messageid + ";sesc=5e6a46efd79cb4da8c308fee3195ba78;xml", onDocReceived);
else
reqWin("http://www.kqix.com/forum/index.php?action=quotefast;quote=" + messageid + ";sesc=5e6a46efd79cb4da8c308fee3195ba78", 240, 90);

return true;

Yonkey

Ok, nevermind guys, I fixed both problems by uploading Subs.php again. 

I guess I accidentally screwed something up in there.  :P

Advertisement: