PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Mon Mar 12, 2007 11:03 am Reply with quote Back to top

Im sure this is specific to 2.1, as it was working dandy before the upgrade.

Shoutbox.js doesnt want to scroll anymore Crying or Very sad I have done no work on the site, apart from the standard RN upgrade.
View user's profile Send private message Visit poster's website AIM Address
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Mon Mar 12, 2007 1:23 pm Reply with quote Back to top

I don't use it so I am at a loss. Have you checked your server Error Log? Is their a yellow triangle at the bottom left corner of your browser? If so, double click on it to see what it says. Lastly, please do a View Source and look for an indication of an error in the source.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Mon Mar 12, 2007 1:33 pm Reply with quote Back to top

Cheers Raven

I do have a yellow triangle, in IE.

the exact error msg is..

Line: 302
Char: 1
Error: 'SBtext' is undefined
Code: 0

SB is a reference to Shoutbox

Ok so, line 302, in what file? mainfile.php or config.php i assume. And what does it mean by 'SBtext' is undefined?
View user's profile Send private message Visit poster's website AIM Address
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Mon Mar 12, 2007 1:54 pm Reply with quote Back to top

Line 302 in the total source code. Please zip it (view source) up and email it to me.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Mon Mar 12, 2007 4:23 pm Reply with quote Back to top

SBtext is not in the View Source file that you sent me. SBtxt is. However, SBtxt, as the error says, is not defined anywhere. Are you missing a <link> tag or something that is supposed to include some JavaScript code?


Last edited by Raven on Tue Mar 13, 2007 10:20 am; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7456
Location: Arizona

PostPosted: Tue Mar 13, 2007 6:28 am Reply with quote Back to top

Yeah, sounds like you may have overwritten a file or when you merged, you may have missed a line.
View user's profile Send private message Visit poster's website
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 7:48 am Reply with quote Back to top

I will check the ourscripts docs, for any mainfile edits. Post back later..
View user's profile Send private message Visit poster's website AIM Address
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 8:20 am Reply with quote Back to top

ok ive re-installed everything to do with Shoutbox..still no cigar

Edit: I have also turned off all my other .js blocks
View user's profile Send private message Visit poster's website AIM Address
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 616
Location: Vancouver Island

PostPosted: Tue Mar 13, 2007 9:08 am Reply with quote Back to top

Is your shoutblock history there? ie: post a shout, click on history and see the shout?
View user's profile Send private message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 9:17 am Reply with quote Back to top

Yes it is populated, the tables are intact, people are still posting.
The block window just appears blank..As per normal when it first loads, then the shouts should start scrolling through.
View user's profile Send private message Visit poster's website AIM Address
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 616
Location: Vancouver Island

PostPosted: Tue Mar 13, 2007 9:32 am Reply with quote Back to top

ouch ... been there, had to turn off the shoutblock on one site last week.

The block isn't loading a js function. I just can't remember which one.

And the sad part is that I've fixed this before ... while upgrading big shoutblock needed site from 6.9 to RN 2.02 ... did I take any notes? I thought for sure I did, but they've gone missing and the neurons required to fix it again are missing too.

Raven posted this same problem at ourscripts.


Last edited by CodyG on Tue Mar 13, 2007 9:37 am; edited 1 time in total
View user's profile Send private message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 9:33 am Reply with quote Back to top

yup..same here Embarassed
View user's profile Send private message Visit poster's website AIM Address
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Mar 13, 2007 9:34 am Reply with quote Back to top

One of the annoying things about javascript is if there is any error at all, everything stops working. Firefox has a nice tool that shows you javascript errors and warnings. Try loading your page with that turned on. I think IE7 has something similar too, not sure.

I use that shout box too so I'll be eager to see what happens when I upgrade (hopefully this weekend).

Were there core file edits for that block? It has been so long since I installed it that I can't remember.
View user's profile Send private message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 9:38 am Reply with quote Back to top

Well after Raven posted, alarm bells were ringing of an include in the mainfile, or something like that, as it stopped just after the upgrade. But ive checked the Shoutbox package, and i cant see anywhere where it says 'edit this file'
So i guess not.
I have AOL, IE7 and Seamonkey, does seamonkey have the same debugging features?
View user's profile Send private message Visit poster's website AIM Address
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 616
Location: Vancouver Island

PostPosted: Tue Mar 13, 2007 9:41 am Reply with quote Back to top

Did you copy /include files from an backup/archive or do a fresh install of Shoutblock?

There are js type files in the /includes dir. I'd do a file compare from a backup where it did work, with a new rn install.
View user's profile Send private message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 9:49 am Reply with quote Back to top

ok ignore my last Q Gremmie, i have found the seamonkey error console.

I get several errors with the 'SBtext' undefined, basically every page that loads, has this error.

CodyG I basically, over-wrote the shoutbox install, from my originally downloaded package, and i re-did the sql import.
View user's profile Send private message Visit poster's website AIM Address
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Tue Mar 13, 2007 10:06 am Reply with quote Back to top

Error: SBtxt is not defined
Source File:
Only registered users can see links on this board!
Get registered or login to the forums!

Line: 267

The astute among you, will know that the standard RN 2.1 index.php only has 98 lines.
View user's profile Send private message Visit poster's website AIM Address
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Mar 13, 2007 10:21 am Reply with quote Back to top

The line number is probably referring to the generated HTML output, not the php file.
View user's profile Send private message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Tue Mar 13, 2007 10:22 am Reply with quote Back to top

Thats because the js files ad lines, and the browser is counting them. It can be rather annoying.

Open the shoutbox.js, I forget what the last line is but try replacing it with:
Code:
if(window.addEventListener)
    window.addEventListener("load",allonloads,false);
else if (window.attachEvent)
    window.attachEvent("onload", allonloads);
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Tue Mar 13, 2007 10:23 am Reply with quote Back to top

As I said yesterday, that's not referring to a line in a file. It's referring to the expanded source code. Your issue is with at least 1 file not getting loaded that defines SBtxt.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Mar 13, 2007 10:25 am Reply with quote Back to top

I just checked my site. I have a file called shoutbox.js in the same directory as index.php (my root directory) --- not in the modules/Shout_Box directory. This file has the definition for SBtxt. Do you have this file?

(BTW - I don't know why they did that, it is very easy to generate the HTML for the s~cript tag to point into the modules/Shout_Box directory)
View user's profile Send private message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Tue Mar 13, 2007 10:32 am Reply with quote Back to top

Its the window.onload it's being over written I bet. What I posted should fix the problem.

They did alot of things wrong with the module. I rewrote alot of it because its horribly inefficient. I cut the load time by 2/3.
View user's profile Send private message
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 616
Location: Vancouver Island

PostPosted: Tue Mar 13, 2007 10:52 am Reply with quote Back to top

The line is:
window.onload=allonloads;

not working yet
View user's profile Send private message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

PostPosted: Tue Mar 13, 2007 11:14 am Reply with quote Back to top

So, you changed the line?
View user's profile Send private message
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 616
Location: Vancouver Island

PostPosted: Tue Mar 13, 2007 11:23 am Reply with quote Back to top

yes to your code above

nothing changed
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum