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

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...After running the TurboDNN099w admin pages and host extensions stopped working.After running the TurboDNN099w admin pages and host extensions stopped working.
Previous
 
Next
New Post
6/15/2016 5:37 PM
 
I just noticed a missing objectqualifier. Please run:
IF EXISTS (SELECT * FROM sys.Procedures WHERE object_id = OBJECT_ID(N'{databaseOwner}[{objectQualifier}GetTabsByPackageID]'))
    DROP PROCEDURE {databaseOwner}[{objectQualifier}GetTabsByPackageID]
GO
CREATE PROCEDURE {databaseOwner}[{objectQualifier}GetTabsByPackageID]
    @PortalID  Int, -- Null for Host menu items
    @PackageId Int, -- Not Null!
    @ForHost   Bit  -- 0: Get pages for a specific portal (or host pages only)
                    -- 1: Get all host pages and portal pages
AS
BEGIN
    WITH TabV AS (SELECT V.TabId, D.ModuleId 
                   FROM (SELECT ROW_NUMBER() OVER (PARTITION BY TabId ORDER BY Version DESC) AS RowNumber, TabVersionId, TabId
                           FROM {databaseOwner}[{objectQualifier}TabVersions] WHERE IsPublished = 1) V
                   JOIN {databaseOwner}[{objectQualifier}TabVersionDetails] D ON (V.TabVersionId = D.TabVersionId AND D.Action != 2 AND V.RowNumber =1))
    SELECT * FROM {databaseOwner}[{objectQualifier}vw_Tabs]
     WHERE (IsNull(PortalId, -1) = IsNull(@PortalID, -1) Or @ForHost = 1)
       AND IsDeleted = 0
       AND TabId IN (SELECT M.TabId FROM {databaseOwner}[{objectQualifier}vw_Modules] M
                      INNER JOIN {databaseOwner}[{objectQualifier}DesktopModules] DM ON M.DesktopModuleID = DM.DesktopModuleID
                      LEFT  JOIN TabV ON TabV.TabId = M.TabId AND TabV.ModuleId = M.ModuleID
                      WHERE DM.PackageID = @PackageId AND (M.IsDeleted = 0 OR (TabV.TabId IS NOT NULL AND TabV.ModuleId IS NOT NULL)))
    ORDER BY PortalID, TabName
    OPTION (OPTIMIZE FOR (@PortalID UNKNOWN, @PackageId UNKNOWN, @ForHost UNKNOWN));
END; -- PROCEDURE

IF EXISTS (SELECT * FROM sys.Procedures WHERE object_id = OBJECT_ID(N'{databaseOwner}[{objectQualifier}GetModulePackagesInUse]'))
    DROP PROCEDURE {databaseOwner}[{objectQualifier}GetModulePackagesInUse]
GO

CREATE PROCEDURE {databaseOwner}[{objectQualifier}GetModulePackagesInUse]
    @PortalID Int,  -- Null|-1 for Host menu items
    @ForHost  Bit   -- 0: Get in use for portal or host only
                    -- 1: Get in use for all host pages and portal pages
AS
BEGIN
    WITH TabV AS (SELECT V.TabId, D.ModuleId 
                   FROM (SELECT ROW_NUMBER() OVER (PARTITION BY TabId ORDER BY Version DESC) AS RowNumber, TabVersionId, TabId
                           FROM {databaseOwner}[{objectQualifier}TabVersions] WHERE IsPublished = 1) V
                   JOIN {databaseOwner}[{objectQualifier}TabVersionDetails] D ON (V.TabVersionId = D.TabVersionId AND D.Action != 2 AND V.RowNumber = 1))
    SELECT * FROM {databaseOwner}[{objectQualifier}Packages]
     WHERE PackageID IN (SELECT DISTINCT PackageID
                          FROM      {databaseOwner}[{objectQualifier}vw_ModulesOnTabs] M
                          LEFT JOIN TabV ON M.TabId = TabV.TabId AND TabV.ModuleId = M.ModuleID
                          WHERE (IsNull(M.PortalID, -1) = ISNull(@PortalID, -1) OR (@ForHost = 1)) -- scope
                            AND (M.IsDeleted = 0 OR TabV.TabId IS NOT NULL))
    ORDER BY FriendlyName
    OPTION (OPTIMIZE FOR (@PortalID UNKNOWN, @ForHost = 0));
END; -- PROCEDURE

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/16/2016 6:06 AM
 
Hi Sebastian,

I'm running 7.4.2, but I've already discovered the bug. I think you should check the GetTabsByPackageID SP optimization: both TabVersions and TabVersionDetails are not getting the {objectQualifier} prefix (in this DB I have dnn_) and that's triggering the error.

Cheers ;-)

PS. By the way, DNN forums are a bit messy these days: I can't answer except from the quick replay box, and I don't get email notifications :-(
 
New Post
6/16/2016 6:08 AM
 
I'm sorry Sebastian,

I saw your answer after writing previous message ;-)
 
New Post
6/16/2016 7:45 PM
 
Francisco,
thank you for your feedback. The fix will be included in next uploaded version within the next couple of days.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/26/2016 9:57 AM
 
I just released Turbo Scripts version 0.9.9 Rev. z, which are now including support for DNN Platform 8.0.4.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...After running the TurboDNN099w admin pages and host extensions stopped working.After running the TurboDNN099w admin pages and host extensions stopped working.


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