English (United States) English (United Kingdom)
Saturday, March 13, 2010

Smart-Thinker DNN Forums

Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service. We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  Error when no userid is specified
Previous Previous
 
Next Next
New Post 12/14/2006 2:56 AM
  Keith Tuomi
19 posts
4th Level Poster


Error when no userid is specified  (Germany)
I noticed first Googlebot, and then it seems a user generating the following type of error:

ModuleId: 580
ModuleDefId: 202
FriendlyName: Artist Profile
ModuleControlSource: DesktopModules/Smart-Thinker - UserProfile/UserProfileProfile.ascx
AssemblyVersion: 04.03.05
PortalID: 0
PortalName: My Portal
UserID: -1
UserName:
ActiveTabID: 122
ActiveTabName: Artist Profile
RawURL: /Default.aspx?tabid=122&ID=
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 6b5e9e41-871b-4d42-be5f-62d51c04173f
InnerException: Input string was not in a correct format.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Input string was not in a correct format. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s) at SmartThinker.DNN.Modules.UserProfile.UserProfile.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 
New Post 12/14/2006 3:03 AM
  Rodney Joyce
3227 posts
www.DNNDir.com
1st Level Poster




Re: Error when no userid is specified  (United Kingdom)
Hi Keith,

This is expected behaviour if the module is set to "Passed-in UserID". It is expecting the UserID to be passed in so if it is not it will error.
The question is - why is the querystring truncated (is the user tampering with the URL?)

Interestingly, if you remove the "ID" completely then it displays a message to the user showing
"There was an problem loading this profile - please try again. This will also occur if you are passing in the User and the URL does not contain the UserID (for example if you have updated the Settings)"

but if you have the ID in the querystring but no numeric value then it throws an error. So the question is why/how is this happening on your system?

Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 12/14/2006 4:46 AM
  Keith Tuomi
19 posts
4th Level Poster


Re: Error when no userid is specified  (Germany)
Yes  I understand that it's natural that no querystring value will return an undesired result.. the question is:  is all these big red errors showing up in my error log indicative of a genuine drain on resources? 

I have checked and haven't found any hard links on the site that point to an empty userprofile value, however it seems Yahoo's bot has got it in it's mind that it's a great idea to hit that URL over and over.  If this is causing excess memory usage or such I need to know as i'm in damage control mode currently trying to locate the source of site slowdowns..

thanks

 
New Post 12/19/2006 9:05 AM
  Rodney Joyce
3227 posts
www.DNNDir.com
1st Level Poster




Re: Error when no userid is specified  (United Kingdom)
No, I hightly doubt it is a drain on resources - I periodically go through my error log and clear it out after checking for any consistent errors.

Is there no way to tell the bot not to crawl those pages? I don't think it would affect performance to be honest. In the next version I can try and handle this more gracefully (e.g. not throw an error, just show a message to the user/bot)

Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 12/20/2006 5:46 AM
  Keith Tuomi
19 posts
4th Level Poster


Re: Error when no userid is specified  (Germany)
No, there's no way (in robots.txt exclusion at least) to stop this behaviour.

I got the new Pageblaster 2.0 from Snapsis and it has page-defined URL rewriting now. You can use Regexp to rewrite the final output URL.. so maybe thats an option: if the ID variable is empty, then replace it with a junk/default value so the error is avoided.

On another topic, the new templating system is great, BUT, what happened to the Smart Thinker- bio? I.e. the 'AboutMe' column, My users had been filling that one in, but now it seems to have disappeared and been replaced by the core bio..      am I missing something?    
 
New Post 12/29/2006 2:33 AM
  Rodney Joyce
3227 posts
www.DNNDir.com
1st Level Poster




Re: Error when no userid is specified  (United Kingdom)
 keitht wrote
On another topic, the new templating system is great, BUT, what happened to the Smart Thinker- bio? I.e. the 'AboutMe' column, My users had been filling that one in, but now it seems to have disappeared and been replaced by the core bio..      am I missing something?    


Please see this post for more on this:
http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/11/threadid/2043/scope/posts/Default.aspx

Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 6/11/2008 8:49 PM
  Rodney Joyce
3227 posts
www.DNNDir.com
1st Level Poster




Re: Error when no userid is specified  (Australia)

With regards to the top concern (invalid UserID) - the UserProfile now checks if the Request originated from a spider/crawler or a browser user. If it is the later then it will throw the "Invalid UserID" error as normal (you should hardly ever see this - it usually indicated that someone could be fudging the URL, hence I log it. If it is a spider/crawler then an exception is not thrown, so this should clear up the event logs when spiders try invalid UserIDs (I still can't figure out WHY or where they are getting these UserIDs from.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker U...  Error when no userid is specified
Top Threads Minimize
In the past 1 week, we have 3 new thread(s) and 3 new post(s)
The most popular thread has been Re: Event Module Installation Error on DNN 5.1
The most active thread has been Event Control is currently unavailable
In the past 1 week, we have 3 new thread(s) and 3 new post(s)
The most popular thread has been Re: Event Module Installation Error on DNN 5.1
The most active thread has been Event Control is currently unavailable
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker