Register  
Thursday, November 20, 2008  
Login 
Forums
Subject: Item creation error - solved, but workflow improvement needed
You are not authorized to post a reply.
Author Messages
robax
Posts:9

02/21/2007 9:48 PM  
(update: problem found at end of post, but I've left the whole post intact to show how it came about)

I can make an error happen every time by doing this:

Add new item
Type title
Type brief description
Type full description
Click Upload, browse to an image
Click Page (a page on your site)
Leave Homepage as selected page
Untick Track number of times this is clicked
Click update
Error appears as below

Error: Add/Edit Item is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at WDKns.wildPortfolio.wildPortfolioEdit.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---


The extended error message from the site log is:

ModuleId: 1062
ModuleDefId: 216
FriendlyName: Add/Edit Item
ModuleControlSource: DesktopModules/wildPortfolio/wildPortfolioEdit.ascx
AssemblyVersion: 04.04.01
PortalID: 0
PortalName: xxxxxxxxx
UserID: 1
UserName: xxxxxxxxxx
ActiveTabID: 351
ActiveTabName: Port
RawURL: /Port/tabid/351/ctl/Edit/mid/1062/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://xxxxxxxxxx.com/Port/tabid/351/ctl/Edit/mid/1062/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 91a70240-aad7-44f9-b980-0584dae6661c
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: WDKns.wildPortfolio.wildPortfolioEdit.cmdUpdate_Click
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.at WDKns.wildPortfolio.wildPortfolioEdit.cmdUpdate_Click(Object sender, EventArgs e)--- End of inner exception stack trace ---



Any ideas what this might be?


>>>>> update <<<<<

oh... I see... when I carry out the step to choose "Page (a page in your site)" it erases the path to the image I had selected in the previous step.

Yes, I've checked again and that is the problem.

The Image Upload section will need some work:

Can you also make it so that it either holds onto the browsed image-path when the URL is selected, or that it at least validates the then-empty field rather than causing an exception?

As for the image upload/browse/select workflow.. would it not be possible to make it work exactly like other modules do in the same situation? The fact that it differs by missing out one of the usual steps (the one to "upload selected image") is going to make this module confusing to people.

Also, I'm a little confused why one absolutely must select a page or link for each item. In the typical scenario my customers are in.. for example a florist wanting to display images and text about flowers done for a wedding, or a photo shoot, there is only the the details view to link to.. nothing else. Could this not be optional.. or perhaps it could simply default to the details view if no specific external link or internal page is available?

Best regards,
Rob
bcasson
Posts:87

03/05/2007 8:29 AM  
You can turn images off completely by disabling both items in URL. Uncheck 'Allow External' and 'Allow Internal'. The control for the URL will not be loaded.

Also, you are not required to put a value in the URL, even though the message indicates that you need to.
You are not authorized to post a reply.
Forums > Modules > wildPortfolio > Item creation error - solved, but workflow improvement needed



ActiveForums 3.6

Copyright 2005-2008 © WDK Solutions       Terms Of Use      Privacy Statement
WDK Solutions - 50 Langton Road, London, Ontario Canada