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 ForumsRepositoryRepositoryClicking moderator button causes errorClicking moderator button causes error
Previous
 
Next
New Post
7/11/2007 6:47 AM
 

Hi Steve,

I've found the issue, in your call to the EditUrl method, it prints out the moduleID twice in the URL (This is because EditUrl automatically adds in the mid=xxx)

So the URL looks like:-

tabid/59/ctl/Moderate/mid/381/pid/0/mid/381/Default.aspx

The friendly URL writer gets confused when calling GetPortalSettings which tries to work out information about the ModuleID by requesting the "mid" parameter which would equal 381,381 in the case above.

I think the core friendly rewriter would have the same problem though?


Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
7/11/2007 9:44 AM
 

Hey Scott, THANKS!!! You da man!

I'll fix this for any future releases of the Repository

In the meantime, for anyone willing to make the code change it's appears to be simple enough.  In the Repository.ascx.vb file, find the handler for the "ModerateButton" click event and change the following code...

Dim destUrl As String = EditUrl("", "", "Moderate", "pid=" & PortalId, "mid=" & ModuleId)
Response.Redirect(destUrl)

 to this... ( removing the addition of the "mid" querystring parameter )

Dim destUrl As String = EditUrl("", "", "Moderate", "pid=" & PortalId)
Response.Redirect(destUrl)

 
New Post
7/11/2007 9:47 AM
 

"I think the core friendly rewriter would have the same problem though?"

surprisingly ... no ... not sure why, I took a quick look at the core friendly url rewriter .. that's some fancy codin'  :)  and it started giving me a headache :)  anyway, even though the core rewriter seems  to handle the current code without throwing an exception, the Repository code is clearly in the wrong here. I'll remove the additional instance of the 'mid' parameter.

 
New Post
7/12/2007 6:25 AM
 

CONGRATULATIONS Scott !!!!

 

Steve,

I am not so lucky with DNN.... I think that I am the first one to do the migration, but I DO NOT FIND THE file you are talking about..... Could you please help me ???
I have installed the latest Repository, and now I could not find the repository.ascx.vb file in my dnn install... Where the hell is it ???

Thanks a lot,
DV FX

 
New Post
7/12/2007 10:57 AM
 

Because it's a .NET 1.1 module the source needs to be downloaded, the changes made, and the module recompiled. The .vb files are not part of the normal install.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryClicking moderator button causes errorClicking moderator button causes error


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