Error when uploading pictures

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/4/2012 8:22:23 AM
Gravatar
Total Posts 14

Error when uploading pictures

I have an Image Gallery (Compact Mode, No Gallery Effects).  I have until now been able to upload images to this gallery.  Now, when I try to upload, I get this message:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

I can't imagine why I get this message.  Any help?

System Information
mojoPortal Version 2.3.6.7 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust

5/4/2012 8:32:54 AM
Gravatar
Total Posts 2239

Re: Error when uploading pictures

Hi,

Please take a look at the System Log (Administration > System Log). Look towards the bottom of the log for any errors having to do with your image gallery. That will give you a better idea of the problem.

HTH,
Joe D.

5/4/2012 12:38:42 PM
Gravatar
Total Posts 14

Re: Error when uploading pictures

Hi.

At the end of the currentlog.config file I have this:

2012-05-04 17:18:13,245 ERROR mojoPortal.Web.Global - 89.160.138.79-en-US - /ImageGallery/EditImage.aspx?mid=166&pageid=-1- Referrer(http://hallgrimsson.tolvar.net/ImageGallery/EditImage.aspx?mid=166&pageid=-1)
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.GalleryUI.GalleryImageEdit.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I don't understand why I should have a NullReferenceException.  I do browse to the image file and then push Update.  This gives me the above message.  I used to be able to upload images to this gallery and do not know what has changed.

 

5/4/2012 2:07:41 PM
Gravatar
Total Posts 18439

Re: Error when uploading pictures

Hi,

Your url shows pageid = -1

/ImageGallery/EditImage.aspx?mid=166&pageid=-1

You can only upload images in the context of a CMS page that has the image gallery on it, you cannot do it from content manager nor if using ModuleWrapper to show it on other pages because it needs to enforce page level security on the edit page.

Hope that helps,

Joe

5/4/2012 2:49:23 PM
Gravatar
Total Posts 14

Re: Error when uploading pictures

Hi again.

Uploading seems to be working now.  What I was apparently doing wrong was that I was trying to upload images to Image Gallery Content, which had not been published to any page.  After publishing and navigating to the page, I could upload from there.

You must sign in to post in the forums. This thread is closed to new posts.