Author Topic: Possible preview bug  (Read 1592 times)

Offline Ashron

  • Newbie
  • *
  • Posts: 3
Possible preview bug
« on: June 02, 2009, 02:20:25 PM »
    * Version(s) of SMF
          o 1.1.9/2.0 RC1-1
    * Your Setup:
          o List any Modifications you have installed
                + No Mods Installed
          o List any Themes you have installed
                + No Themes Installed
          o List any non-English Language packs you have installed
                + No packs installed
          o Are you using UTF-8? Not certain
          o Any other related information?
    * Server Software:
          o Apache/IIS version?:
          o PHP version?:
          o Database type and version:
          o Any other related server information?
    * Where the Error Occurred
          o File: index.php
          o Line: it says Line 133, but there's nothing there.  Instead, it's in the line generated by the PHP, I guess.
          o Any relevant errors in the SMF error log (if so please post them)?:
    * How to Reproduce this Error?:
          o When I go to the forum, type a new topic, and then click preview, it locks up and I get the following error message (when I click on the show error page) 'getElementByTagName(...) 0' is null or not an object.  This happens on any board I go to you.  You can reproduce the error by going to
    * Additional Information?
« Last Edit: June 02, 2009, 04:11:31 PM by regularexpression »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: Possible preview bug
« Reply #1 on: June 02, 2009, 04:11:01 PM »
I registered on your forum and can confirm your having this issue.
I don't get this in a default installation of smf 1.1.9.

Are there any errors in your smf error log?

Offline Rowdy

  • Jr. Member
  • **
  • Posts: 164
Re: Possible preview bug
« Reply #2 on: June 10, 2009, 03:35:24 PM »
I have this error on SMF 2RC1-1. Here is the info I get from firebug:

Any ideas why our post preview hangs forever saying "Fetching preview"? It started as soon as we upgraded from 1.19 to 2.1RC-1. Id really appreciate some help! :)

Firebug gives this information:

Code: [Select]
XMLDoc.getElementsByTagName("smf")[0] is undefined
onDocSent(Document ) (line 738)
onreadystatechange()()script.js?b1 (line 124)
[Break on this error] var i, preview = XMLDoc.getElementsB...)[0].getElementsByTagName("preview")[0];

and clicking on links in the above jumps to the code here:

Code: [Select]
Show the preview section.
var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];
setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);

Code: [Select]
if (sendDoc.responseXML != null && sendDoc.status == 200)
124, sendDoc.responseXML);

I have these mods installed:

1.     Attachments In Message      1.3.0      
2.    Aeva ~ Auto-Embed Video & Audio    6.9.99    
3.    Ad Managment    2.3.5    
4.    SMF Staff Page    1.6
5.    Sweet Profile Area    1.1    
6.    Reply Button in All Posts    1.1    
7.    Advanced Reputation System    1.7.4

Offline Rowdy

  • Jr. Member
  • **
  • Posts: 164
Re: Possible preview bug
« Reply #3 on: June 10, 2009, 05:10:03 PM »
I posted here because another post said to and this thread said * Version(s) of SMF
          o 1.1.9/2.0 RC1-1" at the top.

My post preview doesn't work in any major browser. I installed a fresh copy of default theme and sources and no change. The failed preview doesn't seem to generate any errors in the log.  My forum is bridged with mambo. Could it be a javascript conflict between mambo and SMF?