Preview stopped working on new posts

Started by priscilla, April 25, 2008, 08:45:21 PM

Previous topic - Next topic

priscilla

Using SMF 1.1.4 & default theme.

The preview for new postings no longer works. It says 'Fetching preview...' but never does. It worked fine before.

I don't know exactly when it stopped working but the most recent change was the addition of the BBC permission Mod.

Suggestions?

Thanks, pk

Oldiesmann

It's likely a javascript error. If you can provide a link to your forum along with a test account, we can look into this further.
Michael Eshom
Christian Metal Fans

priscilla


priscilla

Still need help with this.  The site is http://www.vintageidiot.biz/forum/ [nofollow]

I can setup the temp. account as Michael requested .... should it be an admin account?

Thank you,
pk

Rumbaar

No just a general test account with posting ability should be fine.  So can actively test the preview/post issue.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

priscilla


Rumbaar

Though your site is very slow (I even got a communication to the db error at one point).  I was able to successfully preview a post via the quick reply area, but once in Post area got the issue with preview.

But I hazard to guess the following code is your issue:
<script language="JavaScript">
// METATRAFFIC -- COPYRIGHT (C) 2002-2005, Metasun Software Corp.

var pagetitle = document.title; //INSERT CUSTOM PAGE NAME IN QUOTES
var action = ""; //ACTION CODE
var amount = "0"; //ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)
var order = ""; //INSERT UNIQUE ORDER NUMBER

var scriptlocation = "/metatraffic2/track.asp";

var pagedata = 'mtpt=' + escape(pagetitle) + '&mtac=' + escape(action) + '&mta=' + amount + '&mto=' + escape(order) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mti=1&mtz=' + Math.random();
document.write ('<img height=1 width=1 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '">');
</script>
<noscript><a href="http://www.metasun.com/" target="_blank">
<img src="/metatraffic2/track.asp?mtt=2&mti=1" alt="website analytics software" border=0></a>
</noscript>


It's rendered after the closing </HTML> tags.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

priscilla

Removed the script & that solved the preview problem.

When you said the site is very slow did you mean the forum in general or was this related to troubleshooting the preview problem?

Thanks for your help.

Rumbaar

I mean in general.  It might be my current location, but the site itself seemed to take a while to load and did get a communication error at one point.
You might want to turn on page loading times and run some tests yourself.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

priscilla

Thanks for the heads up. This is a new site & I'd like to get it going in the right direction early rather than later.

It's on a Windows server - I was told that a Unix server would be faster. But would it really make that much difference?

Rumbaar

It could, but it also could be whoever you are hosting with is overselling and their servers can't handle the load either way.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

priscilla

Appreciate the info & your comments.  I'll do some checking.

Advertisement: