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...Upgrading DNN P...Upgrading DNN P...Upgrading issueUpgrading issue
Previous
 
Next
New Post
6/25/2012 7:09 PM
 

Hi All,

I just upgrade my DNN website from ver 5.04.04 to 6.02.00 after that I got the error and I went throghu the Event log table and here is my error:

(I have to mention that I'm new in DNN and I havn't created that website)

"Invalid column name 'tabpathl'" 

I found out that in the ascx file It's calling this table : Tabs and is trying to get these fields information "Tabpath, Level"

Which are no longer exict in the new version.

So I'm wondering Is there any other place that those fields are stored?

any idea? what should I do? SHould I remove accessing those fields from entire website? any better idea?

Thank you so much,

Bahareh

 

 
New Post
6/25/2012 10:47 PM
 
This seems like you have a module that requires upgrading. Exactly which .ascx file (and in which module) does this occur?



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
6/26/2012 2:50 AM
 
when developing custom modules, do not rely on database tables but access core objects via DotNetNuke API only.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/26/2012 12:57 PM
 

In these 2 files I have problems: Submenu.ascx , Footermenu.ascx

But I'm not sure which module is using this: TheDNNMenu or DDRMenu

Here is the submenu.ascx.cs cod:

 
using System;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EscentricsLib.Common;
using EscentricsLib.Sql;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Text;

public partial class Portals__default_Skins_sdccc_submenu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //UtilityDisplayServerVariableInfo();  
       
        if (Request.QueryString["TabID"] != null)
        {
            string TabId = Request.QueryString["TabID"];
           
            SqlParameter[] spa = new SqlParameter[0];
            int countRecord = DB.GetSqlN("Select count(*) as N From  [Tabs] where [ParentId] = " + DB.SQuote(TabId) + " And [IsVisible]=1 AND IsDeleted=0 and [ParentId]!=43 and [ParentId]!= 7", spa);
           
            if (countRecord > 0)
            {
                ltSubMenuList.Text = RenderSubMenuList(TabId);
            }
            else
            {
                int nTabId = DB.GetSqlN("SELECT ParentId as N From Tabs where TabID = " + DB.SQuote(TabId), spa);
                //Response.Write(nTabId.ToString());
                ltSubMenuList.Text = RenderSubMenuList(nTabId.ToString());
            }
           
        }
    }

    private string RenderSubMenuList(string tabId)
    {
        SqlDataReader rs = DB.GetReader("Select [TabName], [TabID], [TabOrder], [TabPath] From [Tabs] where [ParentId] = " + DB.SQuote(tabId) + " AND ParentId != 43 AND ParentId != 61 AND ParentID != 7 And [IsVisible]=1 AND IsDeleted=0  AND IsSecure=0Order By [TabOrder]");
        SqlParameter[] spa = new SqlParameter[0];
        string ParentTabName = DB.GetSqlS("Select [TabName] as S From  [Tabs] where [TabID] = " + DB.SQuote(tabId) + " And IsSecure=0 AND IsDeleted=0 And [IsVisible]=1 ", spa).ToLower();

        StringBuilder subMenuStr = new StringBuilder();
        // subMenuStr.Append("<ul>");
        subMenuStr.Append("<ul id='submenu_" + tabId + "'>");
        while (rs.Read())
        {
            string selectedItemId = Request.QueryString["TabID"];
            subMenuStr.Append("<li  class='sub_menu'>");
            string Accomplishment_page_id = "90";
            if (selectedItemId == "91")
            {
                selectedItemId = Accomplishment_page_id;
            }
            if (selectedItemId == DB.RsFieldInt(rs, "TabID").ToString())
            {
                subMenuStr.Append("<a class=\"selected\" href=\"" + ExtractDomainNameFromURL(Request.Url.AbsoluteUri) + UppercaseFirst(DB.RsField(rs, "TabPath").Replace("//","/").Substring(1)) + ".aspx\">" + DB.RsField(rs, "TabName") + "</a>");
            }
            else
            {
                string subtabname = DB.RsField(rs, "TabName");
                subMenuStr.Append("<li>");
                if (subtabname == "Twitter")
                    subMenuStr.Append("<a href='http://twitter.com/SDConventionCtr'  target='_blank'>" + DB.RsField(rs, "TabName") + "</a>");
                else if (subtabname == "Facebook")
                    subMenuStr.Append("<a href='http://www.facebook.com/pages/San-Diego-Convention-Center/358290337510'  target='_blank'>" + DB.RsField(rs, "TabName") + "</a>");
                else if (subtabname == "Youtube")
                    subMenuStr.Append("<a href='http://www.youtube.com/user/SDConvenCtr'  target='_blank'>" + DB.RsField(rs, "TabName") + "</a>");
                else
                subMenuStr.Append("<a href=\"" + ExtractDomainNameFromURL(Request.Url.AbsoluteUri) + UppercaseFirst(DB.RsField(rs, "TabPath").Replace("//", "/").Substring(1)) + ".aspx\">" + DB.RsField(rs, "TabName") + "</a>");  
            }
            subMenuStr.Append("</li>");
        }
        subMenuStr.Append("</ul>");
        rs.Close();

        return subMenuStr.ToString();
    }

    public static string UppercaseFirst(string s)
    {
        // Check for empty string.
        if (string.IsNullOrEmpty(s))
        {
            return string.Empty;
        }
        // Return char and concat substring.
        return char.ToUpper(s[0]) + s.Substring(1);
    }

    public static string ExtractDomainNameFromURL(string Url)
    {
        if (Url.Contains(@"://"))
            Url = Url.Split(new string[] { "://" }, 2, StringSplitOptions.None)[1];

        string fullDomain = "http://" + Url.Split('/')[0];
        if (HttpContext.Current.Request.ServerVariables["PATH_INFO"].ToString() != string.Empty)
        {
            fullDomain += HttpContext.Current.Request.ServerVariables["PATH_INFO"].ToString().Replace("/Default.aspx", "/");
        }
      
        return fullDomain;
    }

    public void UtilityDisplayServerVariableInfo()
    {
        int loop1, loop2;
        NameValueCollection coll;

        // Load ServerVariable collection into NameValueCollection object.
        coll = Request.ServerVariables;
        // Get names of all keys into a string array.
        String[] arr1 = coll.AllKeys;
        for (loop1 = 0; loop1 < arr1.Length; loop1++)
        {
            Response.Write("Key: " + arr1[loop1] + "<br>");
            String[] arr2 = coll.GetValues(arr1[loop1]);
            for (loop2 = 0; loop2 < arr2.Length; loop2++)
            {
                Response.Write("Value " + loop2 + ": " + Server.HtmlEncode(arr2[loop2]) + "<br>");
            }
        }
    }
}

Please help me

Thanks,

Bahareh

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading issueUpgrading issue


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