Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Module only works properly for administrators
Previous Previous
 
Next Next
New Post 4/4/2008 11:05 AM
User is offline joseph_korn
3 posts
10th Ranked


Module only works properly for administrators 

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 11:22 AM
User is offline Ian Robinson
645 posts
www.engagesoftware.com
7th Ranked


Re: Module only works properly for administrators 

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


Ian Robinson
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 4/7/2008 1:11 PM
User is offline joseph_korn
3 posts
10th Ranked


Re: Module only works properly for administrators,un 

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 2:43 PM
User is offline Hooligannes
1589 posts
www.nesinteractivos.com
5th Ranked






Re: Module only works properly for administrators,un 

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?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 4/7/2008 3:06 PM
User is offline joseph_korn
3 posts
10th Ranked


Re: Module only works properly for administrators,un 

 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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Module only works properly for administrators
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


SINA101
WANT A SPECial sIte iN TAIWAN?
sina101.com
Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP