Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsUsers OnlineUsers OnlineCanCan't Instal UserOnline Module!
Previous
 
Next
New Post
1/16/2010 6:40 AM
 

The upgrade script for usersOnline module seems to interfere with another module. Moved to UOL forum, I am sure, Dave will be able to provide you with a solution.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/17/2010 2:24 AM
 

This one is a bit odd I must say!

It looks to me like a permission issue with go daddy and not being able to run the cores grant permissions for stored procedures code. What puzzles me is the ContactUs stuff in there as none of users online code has anything like this in it.

What version of DNN are you using?

If you extract the users online zip and open 04.09.04.SqlDataProvider in notepad, select all and copy it. Then go to host / sql and paste the output and check the box that it's script and run it what happens?

 
New Post
1/17/2010 8:48 PM
 

Thanks Dave!

i using Version DNN 5.1, file 04.09.04.SqlDataProvider:

"

/************************************************************/
/*****              SqlDataProvider                     *****/
/*****                                                  *****/
/*****                                                  *****/
/***** Note: To manually execute this script you must   *****/
/*****       perform a search and replace operation     *****/
/*****       for {databaseOwner} and {objectQualifier}  *****/
/*****                                                  *****/
/************************************************************/

-- Remove Legacy SP. Core GetOnlineUsers will be refreshed in DNN 5.1.0+ due to overwite issue with previous UOL.
if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}GetOnlineUserStatistics]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    DROP PROCEDURE {databaseOwner}{objectQualifier}GetOnlineUserStatistics
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}DNNUOL_GetOnlineUsers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    DROP PROCEDURE {databaseOwner}{objectQualifier}DNNUOL_GetOnlineUsers
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}DNNUOL_GetOnlineUserStatistics]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    DROP PROCEDURE {databaseOwner}{objectQualifier}DNNUOL_GetOnlineUserStatistics
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DNNUOL_GetOnlineUserStatistics

@PortalID  int,
@IncludeHosts bit
AS
-- Anonymous User Count
SELECT count(UserID)
FROM  {databaseOwner}{objectQualifier}AnonymousUsers
WHERE PortalId = @PortalID

-- Users Online Count
IF @IncludeHosts = 0
BEGIN
    SELECT count(UO.UserID)
    FROM {databaseOwner}{objectQualifier}UsersOnline UO
    INNER JOIN {databaseOwner}{objectQualifier}Users U on UO.UserID = U.UserID
    WHERE UO.PortalId = @PortalID AND U.IsSuperUser = 0
END
ELSE
BEGIN
SELECT count(UserID)
    FROM {databaseOwner}{objectQualifier}UsersOnline
    WHERE PortalId = @PortalID
END

-- Last User Registered
SELECT UserID, UserName, DisplayName, FirstName, LastName, FirstName + ' ' + LastName AS FullName
FROM   {databaseOwner}{objectQualifier}Users
WHERE  UserID = (select top 1 UserId from {databaseOwner}{objectQualifier}UserPortals where PortalID = @PortalID AND Authorised = 1 order by UserPortalId desc)

-- Membership Count
SELECT count(UserID)
FROM   {databaseOwner}{objectQualifier}UserPortals
WHERE PortalId = @PortalID AND Authorised = 1

-- Members in last day
SELECT count(UserID)
FROM {databaseOwner}{objectQualifier}UserPortals
WHERE PortalId = @PortalID and CreatedDate > DateAdd(d, -1, GetDate()) AND Authorised = 1

-- Members day before
SELECT count(UserID)
FROM {databaseOwner}{objectQualifier}UserPortals
WHERE PortalId = @PortalID and CreatedDate > DateAdd(d, -2, GetDate()) and CreatedDate < DateAdd(d, -1, GetDate()) AND Authorised = 1

GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DNNUOL_GetOnlineUsers
@PortalID int,
@IncludeHosts bit
AS
IF @IncludeHosts = 0
BEGIN
SELECT
    UO.UserID,
    U.UserName,
    U.DisplayName,
    U.FirstName,
    U.LastName,
    U.FirstName + ' ' + U.LastName AS FullName
FROM
    {databaseOwner}{objectQualifier}UsersOnline UO INNER JOIN {databaseOwner}{objectQualifier}Users U ON UO.UserID = U.UserID INNER JOIN {databaseOwner}{objectQualifier}UserPortals UP ON U.UserID = UP.UserID
WHERE
    UO.PortalID = @PortalID AND UO.UserID = U.UserID AND UP.Authorised = 1 AND U.IsSuperUser = 0 -- Inner Join takes care of SU = 0, but for sanity.
END
ELSE
BEGIN
SELECT DISTINCT
    UO.UserID,
    U.UserName,
    U.DisplayName,
    U.FirstName,
    U.LastName,
    U.FirstName + ' ' + U.LastName AS FullName
FROM
    {databaseOwner}{objectQualifier}UsersOnline UO INNER JOIN {databaseOwner}{objectQualifier}Users U ON UO.UserID = U.UserID, {databaseOwner}{objectQualifier}UserPortals UP
WHERE
    UO.PortalID = @PortalID AND UO.UserID = U.UserID AND UP.Authorised = 1
END
GO

/************************************************************/
/*****              SqlDataProvider                     *****/
/************************************************************/

"

when I run it in (Computer SQL Server 2005 ) the following error appears:
Msg 102, Level 15, State 1, Line 13
Incorrect syntax near '{'.
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '{'.
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '{'.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '{'.
Msg 102, Level 15, State 1, Line 9
Incorrect syntax near '}'.
Msg 137, Level 15, State 2, Line 13
Must declare the scalar variable "@IncludeHosts".
Msg 102, Level 15, State 1, Line 16
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 23
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 29
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 30
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 34
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 39
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 44
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '{'.
Msg 137, Level 15, State 2, Line 6
Must declare the scalar variable "@IncludeHosts".
Msg 102, Level 15, State 1, Line 16
Incorrect syntax near '}'.
Msg 102, Level 15, State 1, Line 30
Incorrect syntax near '}'.
 

And run host godayddy > Error:
 Incorrect syntax near '{'.

Note: When i install module in localhost (Computer) >> it install successfully! But install in host of godaddy (Or orther) >> it's Error

 

 
New Post
1/31/2010 7:03 AM
 

If you extract the users online zip and open 04.09.04.SqlDataProvider in notepad, select all and copy it. Then go to host / sql and paste the output and check the box that it's script and run it what happens?

 
New Post
4/24/2012 1:51 PM
 
I had a similar issue.  I realized that I had built some Stored Procedures that weren't prefixed with dbo.  They had been created on one of my usernames.  Once I created those SP with dbo and deleted the old ones, my installation worked.  Hope this helps. 
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsUsers OnlineUsers OnlineCanCan't Instal UserOnline Module!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out