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 ForumsBlogBlogBlog appears  to generate critical error in DNN 4.0.1Blog appears to generate critical error in DNN 4.0.1
Previous
 
Next
New Post
12/8/2005 4:21 PM
 

The blog module sets the pagetitle by using the CDefault class directly, for that BlogModuleBase has this public read only property:

Public ReadOnly Property BasePage() As DotNetNuke.Framework.CDefault
   Get
      Return CType(Me.Page, DotNetNuke.Framework.CDefault)
   End Get
End Property

This property is used to set a number of things, like page author, page copyright, and also the page title. I'm have no idea either why the title propery of the page base class isn't called instead, maybe because of the cast to CDefault. I still have to set up my DNN4 /asp 2.0 environment, so i cant debug it either. Perhaps a solution would be to add a dnn version check when setting the page title, and use for dnn 4.0.1 and up just me.page to set the page title. However, if the other meta tags are not available in the page base, then that would cause other problems. Are you sure there is no way to circumvent the compile warning, maybe use Shadows for the property?

As for modules setting the page attributes directly: you are right that that might cause problems with different modules on one page all trying to set a module title. I can show you an example of that here: http://www.apollo-software.nl/Blog/tabid/169/EntryID/4/language/nl-NL/Default.aspx

On this page, my own module that translates page titles sets the page title to the Dutch version, and the blog module appends that title with the blog title...

Setting a page title from a module can be important for the user experience, but more importantly for search engines indexing the page.....


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/8/2005 5:25 PM
 

I think the blog is the only module I'm using that alters titles, so this is the likely cause.

Now.. for someone like me who has gone and uploaded 4.01 over 4 and triggered the upgrade (and who also doesn't know how to recompile a DNN install from the source) is there a way that I can restore this function to the way it was in 4? I have a very dead homepage in the meantime :(

Thanks heaps for spotting the issue and bringing it up here too :D

Rob

 

 
New Post
12/9/2005 3:29 AM
 

Rob, the only thing you can do i think is to downgrade to 4.0.0, but there are some things you need to do manually.

* check what changes were made to the db, and revert them back to the 4.0.0 state if necessary (some changes were made to the search module)

* set the db version back to 4.0.0 (in table Version)

and of course: backup your db, backup your file system, and preferably, do a testrun on a test system.... (which would be good to always do before you upgrade a live site, as Hans-Peter said, if you use non core modules, or modules that are part of a dnn subproject, these modules were not tested on a new release, so either you wait for a green light from the module developer, or test yourself ;)

cheers,

erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/9/2005 5:23 AM
 
cnurse wrote
 ErikVB wrote

hmm... line 50 of /library/components/shared/CDefault.vb is commented out:

'Public Title As String = ""

I am pretty sure the field "Title" of CDefault it used by a lot of modules to dynamically change the page title. This will break all those modules...

Two things.

1. The code was commented out in 4.0.1 because the base class "Page" now includes a Title property, so I am not sure why the code isn't working.  Leaving it in caused a syntax warning, which I understood to mean that the property defined in CDefault would be ignored and the base classes property would in fact be used.

2. Maybe a bigger issue, is whether it is actually good practice to manipulate the Page title.  I would suggest that for modules to "play well together" they shouldn't manipulate anything outside of their container.  Lets look at a scenario where 2 different modules on the same page both try and manipulate a Page level property - who wins?

I know of quite a few modules that manipulate the page title, my articles module for one.

The title property in asp.net 2 is for calling into master pages and setting the title, so I can understand why it's there, but I do think it is handy to be able to manipulate the page title. Can we override the base title property to work as the existing behaviour?


Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
12/9/2005 5:34 AM
 
robax wrote

I think the blog is the only module I'm using that alters titles, so this is the likely cause.

Now.. for someone like me who has gone and uploaded 4.01 over 4 and triggered the upgrade (and who also doesn't know how to recompile a DNN install from the source) is there a way that I can restore this function to the way it was in 4? I have a very dead homepage in the meantime :(

Thanks heaps for spotting the issue and bringing it up here too :D

Rob

 

Rob,

please send me an email, I will try to help you.

I have setup an temporary email 401bug@dnnmodule.net. I will then send you my private email address.

regards

HP


Best regards
Hans-Peter Schelian
www.schelian.com (English)
German DotNetNuke Community
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogBlog appears  to generate critical error in DNN 4.0.1Blog appears to generate critical error in DNN 4.0.1


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