Print Page | Close Window

UBOUND error on profile page

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8734
Printed Date: 07 April 2026 at 9:38am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: UBOUND error on profile page
Posted By: zebi
Subject: UBOUND error on profile page
Date Posted: 10 January 2004 at 8:26am
Hi,
I stupidly installed the ?7.03 beta version and had to upgrade- i made all the database changes some morning and had a few niggles which i ironed out. Now the only thing thats not working is the pop up profile which gives the following error (when logged in)

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'UBound'

/niclubbing/forum/pop_up_profile.asp, line 182

the url for the disc forum is http://forum.niclubbing.com/ - http://forum.niclubbing.com/

I think it to do with the active users and this bit of code :

    'Get the users online status
    For intArrayPass = 1 To UBound(saryActiveUsers, 2)
        If saryActiveUsers(1, intArrayPass) = lngProfileNum Then blnIsUserOnline = True
    Next

Now the magical question: dies anyone know which part of the database ive screwed over?

Any helpful feedback would be appreciated.
Thanks!





Replies:
Posted By: tim_r
Date Posted: 10 January 2004 at 9:44am
I've got this error on version 7.7 just now.  Will diagnose and get back to you


Posted By: tim_r
Date Posted: 10 January 2004 at 10:38am

I'm a Java guy and new to asp so some of this might not be 100% accurate but you'll get the idea...

This occurs when you turn "Active Users List" off.  If it is off then includes/active_users_inc.asp is never run from common.asp and hence saryActiveUsers is never set up. 

Thus the profile page is trying to dispay the users online status but through Admin, we have configured it not to keep track of the online users. 

I am just doing a fix for my pop_up_profile.asp.  Will put it up here when done



Posted By: tim_r
Date Posted: 10 January 2004 at 11:02am

This is the fix I am going with.  It will always show offline if the administrator has configured the forum to not track online users

In pop_up_profile.asp replace

   'Get the users online status
    For intArrayPass = 1 To UBound(saryActiveUsers, 2)
        If saryActiveUsers(1, intArrayPass) = lngProfileNum Then  lnIsUserOnline = True
    Next

with

 'Get the users online status if we track them
 'Otherwise, just let it always display the OFFLINE text
 If blnActiveUsers Then
  For intArrayPass = 1 To UBound(saryActiveUsers, 2)
   If saryActiveUsers(1, intArrayPass) = lngProfileNum Then blnIsUserOnline = True
  Next
 End If

Hope this helps



Posted By: zebi
Date Posted: 10 January 2004 at 11:29am
Hi Tim,
Cheers for the quick fix and the response!

Zebi


Posted By: tim_r
Date Posted: 10 January 2004 at 11:31am
No worries mate


Posted By: Eftie
Date Posted: 10 January 2004 at 2:32pm

Hi Zebi,

This was posted yesterday already!
http://forums.webwiz.net/forum_posts.asp?TID=8644&TPN=4 - http://forums.webwiz.net/forum_posts.asp?TID=8644&a mp;TPN=4

And Tim, your solution is nicer than my 'comment it out'. Thanks!



-------------
Eftie



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net