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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module only works properly for administratorsModule only works properly for administrators
Previous
 
Next
New Post
4/4/2008 1:05 PM
 

HI,

 

I am somewhat new to DNN, and have recently created a fairly simple DNN module to allow people to make online credit card payments through my website.  The module seems to work great when I am logged in as host or any other administrator user.  Unfortunately, when I am logged in as a regular user, or not logged in at all, the module doesn't seem to load properly, and is VERY inconsistent in its behavior.

 

Now, the main problem that I am having doesn't seem to have anything to do with my module per se.  What I mean by this is that when I fill out all the information on my module, and click 'Submit Payment', it "seems to" do a postback, except that no breakpoints on my module fire, including at the top of page_load, or on the submit button click event.  After clicking back and forth between different menu items like home, login, etc. and going back to my module page, it SOMETIMES will fire the breakpoint, and then therefore do what it is supposed to, but it is very inconsistent.  Again, as soon as I am logged in as an admin user, it works 100% always.

 

Has anyone ever experienced this before? What could be the potential causes for such a behavior?

 

Any help with this situation would be most appreciated!

 
New Post
4/5/2008 1:22 PM
 

Hey,

When experiencing unexpected behavior of this nature it is nearly always the module's cachetime setting. This setting should be 0 so the module is not cached.  This will lead to consistently loading the module each time -- therefore consistent behavior.

Check it in your module registration under the module definition section.  Host -> Module Definitions -> Edit your registration -> Middle Section "Module Definitions"

Let me know if that clears up the issues you are seeing.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
4/7/2008 3:11 PM
 

Thanks for the reply Ian,

Unfortunately, this did not seem to solve my problem.. I cleared all the browser history/cache from firefox and ie, and tested the module, but no luck..  Even before I do anything it seems to only load once [in a while].. I mean to say that I have a breakpoint on the page_load for my module, and it breaks at my breakpoint the first time, but if I click onto another link, and click back to a page that has my module, it does not throw a breakpoint, but yet the module still shows up on the page.. To me this does seem like it would be caching the data, except that I have turned off caching for my module via the instructions you gave, and also in ie I have it set to, 'Check for newer versions of stored pages: Every time I visit the webpage', so caching should not even be turned on at all..

I am sure that this issue is something silly that I overlooked while creating the module, but I just cannot figure out what could cause this.. Again, if anyone has any further suggestions, they are most appreciated!

 
New Post
4/7/2008 4:43 PM
 

The instance for the module probably has already a cache value. Make sure you clear it as well.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
4/7/2008 5:06 PM
 

Hooligannes - The Dúnadan Raptor wrote

The instance for the module probably has already a cache value. Make sure you clear it as well.

Great! That definitely seems to have fixed the issue!

Thanks so much Ian and Hooligannes for your help!

 

I do have a follow-up question, if anyone can point me in the right direction.. Is there anyway in the code of my module to force a cache value of zero for when I update the module and re-add it to my site?  It would be nice if I didn't have to remember to set the cache value manually everytime..

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module only works properly for administratorsModule only works properly for administrators


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