-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SiteLog 8.0.1 not working with DNN 9.1.0 #20
Comments
The module not appearing right away is expected because the persona bar doesn't know to reload the menu options. All that should be required for anything added into the persona bar after installation is to refresh the page. It won't work by default on a clean instance of 8.xx and newer because the settings aren't in place to enable it and they won't be there until you add them. There also isn't a UI to add them any longer. You'll have to add them manually using a query like the example below. In short, the current iteration of this module simply was migrated from a previous version of DNN, and it assumes that you already had the necessary settings in place. If running in SSMS: IF NOT EXISTS (SELECT 1 FROM [dbo].[HostSettings] WHERE [SettingName] = N'SiteLogBuffer')
BEGIN
INSERT INTO [dbo].[HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogBuffer', N'1', 0, -1, GETDATE(), -1, GETDATE());
END
IF NOT EXISTS (SELECT 1 FROM [dbo].[HostSettings] WHERE [SettingName] = N'SiteLogHistory')
BEGIN
-- update the number of days to be any number you desire
INSERT INTO [dbo].[HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogHistory', N'60', 0, -1, GETDATE(), -1, GETDATE());
END
-- run this query for each portal in your installation you wish to support, changing the PortalID to match, as required
IF NOT EXISTS (SELECT 1 FROM [dbo].[PortalSettings] WHERE [SettingName] = N'SiteLogHistory')
BEGIN
-- update the number of days to be any number you desire
INSERT INSERT INTO [dbo].[PortalSettings] ([PortalId], [SettingName], [SettingValue], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (0, N'SiteLogHistory', N'60', -1, GETDATE(), -1, GETDATE());
END
IF NOT EXISTS (SELECT 1 FROM [dbo].[HostSettings] WHERE [SettingName] = N'SiteLogStorage')
BEGIN
INSERT INTO [dbo].[HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogStorage', N'D', 0, -1, GETDATE(), -1, GETDATE());
END If running in DNN's SQL console: IF NOT EXISTS (SELECT 1 FROM {databaseOwner}[{objectQualifier}HostSettings] WHERE [SettingName] = N'SiteLogBuffer')
BEGIN
INSERT INTO {databaseOwner}[{objectQualifier}HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogBuffer', N'1', 0, -1, GETDATE(), -1, GETDATE());
END
IF NOT EXISTS (SELECT 1 FROM {databaseOwner}[{objectQualifier}HostSettings] WHERE [SettingName] = N'SiteLogHistory')
BEGIN
-- update the number of days to be any number you desire
INSERT INTO {databaseOwner}[{objectQualifier}HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogHistory', N'60', 0, -1, GETDATE(), -1, GETDATE());
END
-- run this query for each portal in your installation you wish to support, changing the PortalID to match, as required
IF NOT EXISTS (SELECT 1 FROM {databaseOwner}[{objectQualifier}PortalSettings] WHERE [SettingName] = N'SiteLogHistory')
BEGIN
-- update the number of days to be any number you desire
INSERT INSERT INTO {databaseOwner}[{objectQualifier}PortalSettings] ([PortalId], [SettingName], [SettingValue], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (0, N'SiteLogHistory', N'60', -1, GETDATE(), -1, GETDATE());
END
IF NOT EXISTS (SELECT 1 FROM {databaseOwner}[{objectQualifier}HostSettings] WHERE [SettingName] = N'SiteLogStorage')
BEGIN
INSERT INTO {databaseOwner}[{objectQualifier}HostSettings] ([SettingName], [SettingValue], [SettingIsSecure], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate])
VALUES (N'SiteLogStorage', N'D', 0, -1, GETDATE(), -1, GETDATE());
END |
Oh, and a point of clarification on the previous comment...
Once the I just tested all of this in DNN Platform 09.03.02. |
Describe the bug
I'm running DNN 9.1.0 and installed SiteLog. I didn't even show up in any menu.
Astonishing after logout/login SiteLog Entry found in Admin Menu. Clicked on it, was kicked out, had to login again, menu entry was no longer there. Even more SiteLog entry was not found in list of Extensions.
There are no entries in the Logs.
Software Versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
OK, SiteLog should work.
The text was updated successfully, but these errors were encountered: