Image Gallery Uploading Difficulty

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.
2/20/2006 4:56:01 PM
Gravatar
Total Posts 22

Re: Image Gallery Uploading Difficulty

Has anyone seen a problem with trying to upload an image to the gallery under the v2.0 .NET w/ mySQL version?  I make it through the dialogs fine.  I get the upload status bar pop up.  It says that it uploaded ok.  I then get "The page cannot be displayed" at http://mywebsite.com/GalleryImageEdit.aspx?mid=9&pageindex=3&pageid=6.  Any suggestions on how to fix this?  I've tried turning off compact mode.  I tried as admin.  No change.  I can't seem to upload an image.  I haven't seen anything in the forums that would help, so I'm posting.  Thanks in advance for any help you can send my way.

I just tried it on my localhost installation and had the same results.

I noticed that my host had no "GalleryImages" folder.  So I created one manually.  This didn't solve the problem and I didn't think it would since my localhost had this directory structure and it failed.  My localhost did have the image files though.

- Craig.

2/20/2006 5:12:36 PM
Gravatar
Total Posts 18439

Re: Image Gallery Uploading Difficulty

Hi Craig,

I confirm a problem on this site running the latest svn code. Are you running the 2.0 release or svn?

Anyhow on this site I get an error using the pager links in the gallery so I can't tell if the new picture uploaded correctly because its on the 3rd page. I'll look into that tomorrow night.

There is probably a more meaningful error in the log file in the Data folder.

Cheers,

Joe
2/20/2006 5:30:05 PM
Gravatar
Total Posts 22

Re: Image Gallery Uploading Difficulty

Joe -

I'm running the 2.0 release.  NOT the svn.

I did update my original posting.  Not sure if you saw all of my comments.  Now that I know that you've looked, I'll stop doing that and post any new info as "Replies".

Thanks again for the attention to this - Craig.

2/21/2006 1:34:47 AM
Gravatar
Total Posts 18439

Re: Image Gallery Uploading Difficulty

Hi Craig,

The GalleryImages folder should have 3 sub folders
FullSizeImages
WebImages
Thumbnails


The Data folder and all its children need to be writable by the web process. Normally it would auto create those folders so I'm thinking it is running into permission issues.
The currentlog.txt file should have more detail on the error but then again, thats if it has permission to create the log file.

Hope it helps,

Joe
2/21/2006 6:16:36 PM
Gravatar
Total Posts 18439

Re: Image Gallery Uploading Difficulty

I was able to get the missing write permissions onto the folder Data and all of it children.  I attempt to upload an image and received the same earlier error message.  Now I don't even get the Image Gallery page. 

I noticed that on my localhost and my host that under GalleryImages a folder "9" is created with the 3 subfolders that you reference below.  In other words, an extra layer.  Could this be the source of my problems.  The creator adds the layer "9", but the consumer doesn't know about it?

- Craig.

2/22/2006 3:08:34 AM
Gravatar
Total Posts 18439

Re: Image Gallery Uploading Difficulty

Yes, my bad I forgot it has a sub folder with the module id so that you can havemore than one gallery and the images are stored separately. It should know about it.

To help solve this I would need to know the error, have you looked in the currentlog.txt file in the data folder? I still suspect a permissions error if for some reason all the child folders are not writeable.

Joe
2/22/2006 3:42:08 PM
Gravatar
Total Posts 22

Re: Image Gallery Uploading Difficulty

The following are the contents of currentlog.txt from a most recent test.  I see "could not find specified column" and "index out of range" messages.  Is any of this helpful?

2006-02-22 21:39:14,712 [5220] DEBUG mojoPortal.Web.SiteUtils [/default.aspx] - ApplicationPath is /
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/default.aspx] - In Application_EndRequest
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/default.aspx] - Calling FlushResponse(True)
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/default.aspx] - In EndOfRequest(), calling Monitor.PulseAll(Sync)
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/default.aspx] - HttpRuntime.ProcessRequest() returned
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/default.aspx] - Called ProcessRequest().  Calling subWorker.WaitForEndOfRequest().
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/default.aspx] - subWorker.WaitForEndOfRequest() returned.
2006-02-22 21:39:14,712 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/default.aspx] - In Application_EndRequest
2006-02-22 21:39:24,993 [5220] DEBUG mojoPortal.Web.SiteUtils [/default.aspx] - ApplicationPath is /
2006-02-22 21:39:25,009 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/Default.aspx?pageindex=3&pageid=6] - origWorker=System.Web.Hosting.ISAPIWorkerRequestOutOfProc
2006-02-22 21:39:25,009 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/Default.aspx?pageindex=3&pageid=6] - Calling HttpRuntime.ProcessRequest()
2006-02-22 21:39:25,009 [5220] DEBUG mojoPortal.Web.SiteUtils [/Default.aspx?pageindex=3&pageid=6] - ApplicationPath is /
2006-02-22 21:39:25,024 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Global.asax.cs Application_BeginRequest
2006-02-22 21:39:25,024 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Application_BeginRequest culture = English (United States)
2006-02-22 21:39:25,024 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Global.asax.cs GetSiteSettings
2006-02-22 21:39:25,056 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Application_BeginRequest got SiteSettings
2006-02-22 21:39:25,056 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Global.asax.cs Application_AuthenticateRequest
2006-02-22 21:39:25,056 [5220] DEBUG mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - Global.asax.cs Application_AuthorizeRequest
...

2006-02-22 21:39:25,103 [5220] DEBUG mojoPortal.Web.SiteUtils [/Default.aspx?pageindex=3&pageid=6] - ApplicationPath is /
2006-02-22 21:39:25,149 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - In Application_Error
2006-02-22 21:39:25,196 [5220] ERROR mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - www.craigcody.com
System.IndexOutOfRangeException: Could not find specified column in results
   at MySql.Data.MySqlClient.MySqlDataReader.GetOrdinal(String name)
   at MySql.Data.MySqlClient.MySqlDataReader.get_Item(String name)
   at mojoPortal.Data.dbPortal.Gallery_GetThumbsByPage(Int32 ModuleID, Int32 PageNumber, Int32 ThumbsPerPage)
   at mojoPortal.Business.Gallery.GetThumbsByPage(Int32 pageNumber, Int32 thumbsPerPage)
   at mojoPortal.Web.GalleryControl.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - Remembering error: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IndexOutOfRangeException: Could not find specified column in results
   at MySql.Data.MySqlClient.MySqlDataReader.GetOrdinal(String name)
   at MySql.Data.MySqlClient.MySqlDataReader.get_Item(String name)
   at mojoPortal.Data.dbPortal.Gallery_GetThumbsByPage(Int32 ModuleID, Int32 PageNumber, Int32 ThumbsPerPage)
   at mojoPortal.Business.Gallery.GetThumbsByPage(Int32 pageNumber, Int32 thumbsPerPage)
   at mojoPortal.Web.GalleryControl.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f311366a\bcac5c09\App_Web_cqj-uune.3.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - In Application_EndRequest
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/Default.aspx?pageindex=3&pageid=6] - In EndOfRequest(), calling Monitor.PulseAll(Sync)
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.DecoratedWorkerRequest [/Default.aspx?pageindex=3&pageid=6] - HttpRuntime.ProcessRequest() returned
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - Called ProcessRequest().  Calling subWorker.WaitForEndOfRequest().
2006-02-22 21:39:25,337 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - subWorker.WaitForEndOfRequest() returned.
2006-02-22 21:39:25,353 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - In Application_Error
2006-02-22 21:39:25,353 [5220] ERROR mojoPortal.Web.Global [/Default.aspx?pageindex=3&pageid=6] - www.craigcody.com
System.IndexOutOfRangeException: Could not find specified column in results
   at MySql.Data.MySqlClient.MySqlDataReader.GetOrdinal(String name)
   at MySql.Data.MySqlClient.MySqlDataReader.get_Item(String name)
   at mojoPortal.Data.dbPortal.Gallery_GetThumbsByPage(Int32 ModuleID, Int32 PageNumber, Int32 ThumbsPerPage)
   at mojoPortal.Business.Gallery.GetThumbsByPage(Int32 pageNumber, Int32 thumbsPerPage)
   at mojoPortal.Web.GalleryControl.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2006-02-22 21:39:25,368 [5220] DEBUG Brettle.Web.NeatUpload.UploadHttpModule [/Default.aspx?pageindex=3&pageid=6] - In Application_EndRequest

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