PDA

View Full Version : Unknown code showing up above thread in showthread.php


rc1320
Wed 30th Apr '08, 3:28am
I have a problem that I can't seem to solve. When I click a post from the forum home and am taken to something like /showthread.php?p=67049#post67049, I get the following code displaying just above the forum.

-1)) { fetch_object('currentPost').scrollIntoView(true); }">

I have also attached a screenshot.

Jose Amaral Rego
Wed 30th Apr '08, 3:37am
# template: SHOWTHREAD
# Search in Template (IE & FF) [ -1)) { fetch_object('currentPost').scrollIntoView(true); }"> ]

rc1320
Wed 30th Apr '08, 4:12am
I'm not quite sure what you mean. I have searched for this text and it doesn't come up anywhere?

Here is a living example. http://www.smartcarofamerica.com/forums/showthread.php?p=67316#post67316

Jose Amaral Rego
Wed 30th Apr '08, 4:31am
Try uploading original vBulletin version 3.7.0 non-image files in ASCII(Auto) mode (except install.php) to overwrite those on server

You can just try this to see if you have any files that do not belong or have not been overwritten from an upgrade.
Admin Control Panel > Maintenance > Diagnostics > Suspect File Versions

[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]


To disable the plugin/hook system completely without accessing the Admin CP options, you need to edit includes/config.php and add the following code after <?php in the next empty line:
define('DISABLE_HOOKS', true);



I would disable all modification first and see if that fixes the problem temporarily, then if not do the instructions above.

rc1320
Wed 30th Apr '08, 4:38am
Cool. Looks like it has to do with my vbcmps. Will investigate there.

modrobert
Wed 30th Apr '08, 9:03am
The problem appears to be this line from the source of the output:

<body onload="if (document.body.scrollIntoView && (window.location.href.indexOf('#') == -1 || window.location.href.indexOf('#post') > -1)) { fetch_object('currentPost').scrollIntoView(true); }">Check the character marked red in the line above, it ends the body tag.

I found it by validating a page from the vbulletin.com forum over at w3.org, test link below:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vbulletin.com%2Fforum%2 Fshowthread.php%3Fp%3D1551150%23post1551150&charset=%28detect+automatically%29&doctype=Inline&group=0

modrobert
Thu 1st May '08, 12:12am
This seems to be a bug in the vbulletin javascript code, can't find it in any templates.