Images not appearing when not logged-in (revised)

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/17/2011 8:30:38 AM
Gravatar
Total Posts 6

Images not appearing when not logged-in (revised)

Hi all, (this is a re-post, but with more detail and probably in the correct place... this time. lol)

Images in HTML Content features are only appearing when I'm logged-in.  When not logged-in, they do not appear.  When I paste the image url, it re-directs to login.  I've tried it in various browsers and with cleared caches.

Images are mostly .png, but .gifs have similar issue.  Filenames are all lower-case.

I am using the "styleshout-citrusisland" skin, but problem persists despite skin selection.

Images are uploaded using the uploader from the HTML editor.

System info:

  • mojoPortal Version 2.3.6.6 MSSQL
  • Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
  • ASP.NET Info v4.0.30319 Running in Full Trust
  • My boss doesn't want me to post the url.  Sorry.

Any help is appreciated.  -Jay

8/17/2011 12:15:57 PM
Gravatar
Total Posts 18439

Re: Images not appearing when not logged-in (revised)

are you saying it sends you to the mojoPortal login page at /Secure/Login.aspx or are you getting a popup window for IIS authentication?

8/17/2011 1:12:42 PM
Gravatar
Total Posts 6

Re: Images not appearing when not logged-in (revised)

When trying to open the image url in a browser, it redirects to login.aspx?ReturnUrl=PATH-TO-IMAGE

(not windows authentication)

8/18/2011 7:00:25 AM
Gravatar
Total Posts 18439

Re: Images not appearing when not logged-in (revised)

I cannot imagine how that is happening, I can only suspect that you have some custom modules installed in IIS that cause this, url rewriting module with bad rules or something of that nature. I would also suspect something wrong with the permissions on those image files but there is nothing in mojoPortal that would redirect to login for bad permissions on image files. Very strange indeed.

8/18/2011 9:10:49 AM
Gravatar
Total Posts 6

Re: Images not appearing when not logged-in (revised)

Solved. It was a permissions issue on our IIS server. The individuals responsible have been appropriately flogged.

Thanks for the help.  cool

8/18/2011 9:18:11 AM
Gravatar
Total Posts 63

Re: Images not appearing when not logged-in (revised)

The individuals responsible have been appropriately flogged.

Literally? Scary place to work in. wink

8/25/2011 8:03:51 PM
Gravatar
Total Posts 21

Re: Images not appearing when not logged-in (revised)

jay.hunt, could you elaborate a bit about the permissions issue? I seem to be having a similar problem on two different machines. Mine is a bit different, though; when I navigate to localhost/ in the browser I am directed to http://localhost/login.aspx?ReturnUrl=%2f where I get a Page Not Found Error.

8/26/2011 7:00:48 AM
Gravatar
Total Posts 6

Re: Images not appearing when not logged-in (revised)

I'll check with my administrator (I'm just a caveman), but I think it was simply the read-permissions for the folder(s) that held the images. I think he had them for only authenticated users instead of all (including anonymous).

edit: If your issue is getting anything when you go 'home' or '/', could possibly be either a url-mapping configuration issue in MP. Could be how you have your IIS(?) configuration.  I'm not smart on such things.

9/1/2011 8:15:54 PM
Gravatar
Total Posts 21

Re: Images not appearing when not logged-in (revised)

Thanks for responding, Jay. It ended up being an issue in IIS 7. I changed the Login URL under Forms Authentication to Default.aspx and everything worked great.

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