News:

Wondering if this will always be free?  See why free is better.

Main Menu

Fetching Preview

Started by revwill, December 22, 2012, 05:08:58 PM

Previous topic - Next topic

revwill

For some reason, when I am wishing to preview my post prior to posting, in IE and firefox, it displays fetching preview and nothing happens.  This is the error that displays in IE8

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152; BRI/2; BOIE8;ENUS)
Timestamp: Sat, 22 Dec 2012 21:58:32 UTC


Message: 'getElementsByTagName(...).0' is null or not an object
Line: 1302
Char: 5
Code: 0
URI: http://divinemercy.heavenboundministry.com/friends/index.php?action=post;msg=165;topic=146.0

these are the mods installed or not installed

1. FancyPosts 0.4.1     
2. Add Twitter Tweet Button to Posts 1.1     
3. SMF 2.0.3 Update 1.0     
4. Stop Spammer 2.3.9  [ Install Mod ] [ List Files ] [ Delete ] 
5. Project Snow 1.2 1.2     
6. Related Topics 1.401     
7. Add Facebook Like to Posts 1.1     
8. Tagging System SMFSIMPLE 1.0     
9. Post Ratings 1.6     
10. Activity in Profile 1.1     
11. Wrap Text Around Image 1.0 
12. BBC [you] Tag 1.3     
13. SMFPacks Shoutbox 1.0.4     
14. Top On Boards by SMFSimple.com 1.0     
15. SMFSIMPLE Bookmarks 1.0     
16. Share This Topic 4.1.2     
17. PDF Tag 1.2     
18. Adk Blog 3.0     
19. ENotify 2.0.2  [ Install Mod ] [ List Files ] [ Delete ] 
20. SA Facebook 2.0.2     
21. Member NotePad 2.0.2     
22. SA Facebook 2.0 RC4 Rev58 
23. Search Focus Dropdown 1.6.1     
24. httpBL 2.5.1     
25. Wrap Text Around Image 1.3     
26. Admin Toolbox 1.0     
27. Quick Reply on Top 1.1     
28. PM Readed 1.1     
29. Advanced News 1.2     
30. audiblepm 1.5 2.0     
31. Board Registration Password 2.0  [ Install Mod ] [ List Files ] [ Delete ] 
32. Adk Menu Buttons 1.0     
33. Medal Honor For Years 1.0     
34. Guest Dialog 1.0.3     
35. Ohara YouTube Embed 1.0     
36. Ultimate Profile 0.9.1     
37. Calling Your twitter 3.0     
38. Country Flags 2.1     
39. Add Social Media Icons To Profiles 1.0.6     
40. Adk Gallery 2.0.1     
41. BK-SMF StatCounter 1.0     
42. Captcha on Reminder 1.3     
43. geoIP Location 1.1.1     


Thanks all

William

Kindred

I suspect some thing
Ike project snow may be interfering with the JavaScript used in the preview
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

revwill

Quote from: Kindred on December 23, 2012, 08:38:13 AM
I suspect some thing
Ike project snow may be interfering with the JavaScript used in the preview

Thank you Kindred, I uninstalled project snow and tested and the error was still there.  I however did not do as far as deleting the files, I also asked the mod creator and he doesn't think it comes from the mod itself.

By the way, not so sure how much it's been noticed but I do want to take mention here that I appreciate you helping.  One only needs to go through and see how active you are so Thank you for your assistance and I am sure eventually this thing will pass.  Ass all good bugs do, maybe a little help from Squash :)

Never the less, Happy Holidays and Thank you

William

Kindred

hmmm...  maybe fancy posts?  what does that one do?

Basically, what I think is happening is that some mod that got added is interfering with the javasccript used to generate the preview.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

revwill

Fancy Posts is a simple BBCode Mod, but when I installed it fetching was working correctly after also--cause I had err I wanted to test it out with several of the codes it adds and play.

You know, I wish we had a date and time stamp when we actually installed the code and when we update the mods as well.  Like a running history per mod.  This way it could be easier to recognize which were the last ones added.  I will keep testing and Thank you for assisting.  I hope you won't mind my popping in with a question for this until it gets resolved.

Thank you

William

revwill

#5
Still having this problem, but I have a little more information to show.  It seems to only happen when you modify a message.  If you preview a new message while editing it all works fine including preview...


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152; BRI/2; .NET4.0E; BOIE8;ENUS)
Timestamp: Mon, 28 Jan 2013 22:10:44 UTC


Message: 'getElementsByTagName(...).0' is null or not an object
Line: 1277
Char: 5
Code: 0
URI: http://divinemercy.heavenboundministry.com/friends/index.php?action=post;msg=285;topic=265.0

*** Source code below starting on line 1276 and the entire show preview section

// Show the preview section.
var preview = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('preview')[0];
setInnerHTML(document.getElementById('preview_subject'), preview.getElementsByTagName('subject')[0].firstChild.nodeValue);

var bodyText = '';
for (var i = 0, n = preview.getElementsByTagName('body')[0].childNodes.length; i < n; i++)
bodyText += preview.getElementsByTagName('body')[0].childNodes[i].nodeValue;

setInnerHTML(document.getElementById('preview_body'), bodyText);
document.getElementById('preview_body').className = 'post';


and in the smf error log it is logged here twice


Type of error: General 
http://divinemercy.heavenboundministry.com/friends/index.php?action=post;board=16.02: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passedFile: /home/guardian/public_html/divinemercy/friends/Themes/default/languages/SearchFocus.english-utf8.php (main sub template - eval?)
Line: 407 

http://divinemercy.heavenboundministry.com/friends/index.php?action=post;board=16.08: Undefined index: tags_newsFile: /home/guardian/public_html/divinemercy/friends/Themes/default/languages/SearchFocus.english-utf8.php (main sub template - eval?)
Line: 407 


I hope all those intelligent php folks or those really smart with smf can help...

Thank you in advance...

Kindred

Quote from: Kindred on December 24, 2012, 07:39:07 AM
Basically, what I think is happening is that some mod that got added is interfering with the javasccript used to generate the preview.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

revwill

Quote from: Kindred on January 29, 2013, 01:02:53 AM
Quote from: Kindred on December 24, 2012, 07:39:07 AM
Basically, what I think is happening is that some mod that got added is interfering with the javasccript used to generate the preview.

Thank you Kindred, is there a way you could pin point it maybe?  Was hoping maybe the more information I gave would help narrow it down some...

Thanks again for helping.  I sure do appreciate it.


Kindred

turn off "eval" in your smf admin > server settings
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

revwill

Quote from: Kindred on January 29, 2013, 07:26:38 AM
turn off "eval" in your smf admin > server settings

I just did thank you...  It is turned off now.


NanoSector

Let us know if it worked.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kindred

that won't FIX anything... what that will do is change the error message so that we see the real problem rather than the mask.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

revwill

Quote from: Kindred on January 30, 2013, 02:40:54 AM
that won't FIX anything... what that will do is change the error message so that we see the real problem rather than the mask.

Thank you again Kindred...

The browser error looks still the same

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET CLR 3.0.4506.2152; BRI/2; .NET4.0E; BOIE8;ENUS)
Timestamp: Thu, 31 Jan 2013 08:39:16 UTC


Message: 'getElementsByTagName(...).0' is null or not an object
Line: 1278
Char: 5
Code: 0
URI: http://divinemercy.heavenboundministry.com/friends/index.php?action=post;msg=58;topic=53.0


and errors in firefox console:


Timestamp: 1/31/2013 1:48:55 AM
Error: junk after document element
Source File: http://divinemercy.heavenboundministry.com/friends/index.php?action=post2;board=16;preview;xml
Line: 5, Column: 4
Source Code:
   <div class="tborder topic_table" id="messageindex">

-----
Timestamp: 1/31/2013 1:48:55 AM
Error: TypeError: XMLDoc.getElementsByTagName(...)[0] is undefined
Source File: http://divinemercy.heavenboundministry.com/friends/index.php?action=post;msg=60;topic=55.0
Line: 1277
var preview = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('preview')[0];


Hope this helps--Thank you Kindred...

Kindred

but what is the error in the SMF error log now?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

NanoSector

Quote from: Kindred on January 30, 2013, 02:40:54 AM
that won't FIX anything... what that will do is change the error message so that we see the real problem rather than the mask.
I'm sorry for misreading something... I thought you meant a different setting, geez. :-\
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

revwill

Quote from: Kindred on January 31, 2013, 07:17:49 AM
but what is the error in the SMF error log now?

Sorry for the delay.  There seems to be no error in the error log now since we made that change.  Just the browsers seeing the error is all.  I just checked again and tested and nothing is being recorded.


Advertisement: