 |    |  |
 | |  |
 | |  |
 | |  |
 | |  |
 |
|
|
| 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 ---
|
|
|
|
 |  |
|
|
| 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
 |
|
|
|
 |  |
|
|
| 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
|
|
|
|
 |  |
|
|
| 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
 |
|
|
|
 |  |
|
|
| 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?
|
|
|
|
 |  |
|
|
| 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
 |
|
|
|
 |  |
|
|
| 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
 |
|
|
|
|  |
 | |  |
 | |  |
 | |  |
|