Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Problems with relative path and broken imagesProblems with relative path and broken images
Previous
 
Next
New Post
10/8/2008 6:33 AM
 

Hello!

We have been developing our site in DNN for the past few weeks and it is now time for it to go live. The dev environment was http://domain.com/DotNetNuke but the site is now supposed to run from a virtual directory in localhost. I've set up such a directory called portal and, since I am unfortunately no expert on IIS, use a default.aspx in the localhost root to redirect to that virtual directory.

Now, all image links are broken and the "Browser server" function available from the Edit HTML module area shows nothing, this since all links point to /Portals/0, and are relative from the root of localhost, not localhost/portal! If I check host settings, my relative path is /portal, which is correct. Why aren't all my image paths resolved from localhost/portal then?

I have found threads discussing this kind of problem, but it is usually the other way around, with an extra folder in the image path. The solution then has been to simply create that folder, but understandably, I can't do that.

Any help is highly appreciated, I am getting balder and balder...

 
New Post
10/8/2008 10:34 AM
 

bareba,

There is some advice on how to resolve these symptoms in your production environment in this thread: Pictures break when moving from localhost.

Hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
10/8/2008 10:45 AM
 

Hi Ian, thanks for your reply!

Though, the thread you linked to addresses the exact same problem I talked about in my original post, the problem of moving DNN from "root" to a subfolder of root. I want to go the other way round and get DNN to work in a subfolder of localhost root. Is my only option then to change all image paths to portal/Portals/0... ? I could do that, but how will I get the image upload to work? By that, I mean the editing of a HTML/Text module and the rich text box which allows browsing for certain images on the remote server. This function gives me a blank window, and even if I change all image paths to the corrects ones, this function will still not work without me changing some base path for it I guess...

Any further thoughts? Am I better off with a clean install/import?

 

 
New Post
10/11/2008 12:55 PM
 

Hi bareba

The same strange thing happened to me for the first time ever and i've been working with DNN since the 2x days. I've done this hundreds of times without any problems in the past and i've read posts of such issues where the Relative path suddenly got messed upon migration. Well this time it happen to me. The only difference is, I was migrating a from a domain to a localhost server. I detatched the SQL databases, Copied the DNN Folders over to my server runing as localhost/DNN_SiteName/ and YIKES!.
My localhost virtual website for whatever the reason cannot interpret the images in the skins which use <% = skinpath %>. And when i right click on the images to see how its pathing it says //localhost/Portals/0/ WHEN IT SHOULD SAY //localhost/DNN_SiteName/Portals/0/

However when i do a Clean Install of DNN on my local server for testing, All images show up fine. VERY STRANGE INDEED...
So what i'm going to do is try what you're suggesting.  Do a clean install locally... then try to restore or import the database and see what happens from there.

Yes i agree this is all very Whacky... but hey.... DNN is OPEN SOURCE and thats a good thing.

Its interesting to see how others are working around this MISSING images issues when migrating from either a production server to localhost server or localhost to production domain...  This sort of thing just shouldn't happen.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Problems with relative path and broken imagesProblems with relative path and broken images


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out