1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Broken Links in Documents and Images Module

Broken Links in Documents and Images Module

10 posts, 0 answered
  1. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    10 Mar 2009
    Link to this post
    Hello,

    I recently installed a fresh copy of Sitefinity 3.6, and there are several sites, 5 to be exact, that will be sharing a single database. As required, I modified each's applicationName in the web.config so that all of the pages don't show up in all of the sites. I do, however, want to share all of the contents of the modules, and Libraries that I create are appropriately visible from all sites.

    The problem that I'm having is that when I create a library and add images to it, the images are 'uploaded', but the thumbnails to them are broken and if I try to view them, I get a 404 error.

    I've read several support threads, and haven't found an answer yet that has solved this dilemma.

    Any support you can provide will be appreciated.

    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Mar 2009
    Link to this post
    Hi David,

    Could you send us a screenshot and the link that refers to 404 error. From where you are trying to access this link? From the website you have uploaded it, or from one of the other websites that share the same provider and applicationName?

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    11 Mar 2009
    Link to this post
    Thank you for responding quickly..

    I am sorry about my lack of specifics about the incident. The problem that I described is happening before any pictures are being posted onto pages. The problems that I'm having are occurring from within the Sitefinity console. I have attached three screenshots which demonstrate the problem and process.

    Screenshot 1 - Enering a library in the Images & Documents Module, thumbnails of the pictures, which work well outside Sitefinity, do not appear. Choosing to edit one of the images results in Screenshot 2.

    Screenshot 2 - Typically, thumbnails of the uploaded images appear here too, but they do not show up. Choosing the "View Original" link here results in Screenshot 3 opening in a new window.


    The project has five sites, which's application names are similar to the following:
    /Toys
    /Books
    /Clothes
    /Food
    /Bath

    All of these sites will have identical users, but separate pages, so the idea of including them all in the same database and setting a separate ApplicationName for each appears ideal. In addition, there are several Libraries in the Images & Documents module which will be shared between the sites. As it stands, I can view all of the libraries from all of the sites (as I need), but none of the images appear in any of the sites, as depicted by the screenshots.


    I hope this helps.

    Thank you

    David
  4. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    11 Mar 2009
    Link to this post
    Sorry, here are the links to the screenshots.

    Screenshot 1
    http://i721.photobucket.com/albums/ww217/dcoburn/1.jpg

    Screenshot 2
    http://i721.photobucket.com/albums/ww217/dcoburn/2.jpg

    Screenshot 3
    http://i721.photobucket.com/albums/ww217/dcoburn/3.jpg
  5. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    11 Mar 2009
    Link to this post
    Update:

    I've tried uploading a simple text file to a Document Library, and the results are the same: I succeed in "uploading" the object, but when I try to download or view it, I am greeted with the "Resource Cannot be Found" 404 error.
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Mar 2009
    Link to this post
    Hello David,

    I think I know what the problem is.

    Have you set:
    <framework> 
          <caching defaultProvider="ASPNET"
            <providers> 
              <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework"/> 
              <add name="ASPNET" type="Telerik.Caching.AspNetCachingProvider, Telerik.Framework" duration="120" slidingExpiration="true"/> 
            </providers> 
    in the web.config file? When you use this type of caching, you should disable the Library items cache from the Library settings. Please check the attached screenshot.

    This is so because the ASPNET provider is not implemented to work with generic content items.

    Let me know about the results.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    13 Mar 2009
    Link to this post
    Unfortunately, this does not appear to be the case.

    The web.config file for all sites is set to this:
    <caching defaultProvider="memoryCache">
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Mar 2009
    Link to this post
    Hi David,

    Could you please send me the web.config files of two of the sites?I have converted the thread to a support one, so you could attach them.

    If you only want to have the pages separated for each web site, you should only change this application name:
    <add connectionStringName="DefaultConnection"  
     allowPageHistory="true"  
     applicationName="/App1" //App2, App3, etc
     allowPageWorkflow="false"  
     cachingProviderName="ASPNET"  
     name="Sitefinity" 
     type="Telerik.Cms.Data.DefaultProvider, Telerik.Cms.Data" /> 

    I suspect that you have also touched the Generic Content's provider applicationName as well.

    Following the above instructions, I was able to run 2 applications using the same database, sharing all the content but the pages.

    Best wishes,
    Georgi
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    18 Mar 2009
    Link to this post
    Hello Georgi,

    Thanks for your response.
    I'm not sure entirely what happened, I have a strong ida, but the problem no longer exists... As your last post suggests, only the application name should be changed, and that was how it was set up. I believe that the problem had something to do with the URL that was being applied to each item as it was being uploaded. A co-worker was receiving complaints from a client that the images she was uploading to the file system via the Image Manager in the Rad Editor were appearing broken as well. We verified that the images she was posting were in fact being uploaded, and compared that location to the URL in the page's source. The below is an example of the difference in URLs:

    URL of image:                 /projectname/images/image1.jpg
    Actual location of image:  /images/image1.jpg

    I believe the problem had to do with the configuration in IIS. After some modifications to each project's web site, the problem disappeared.

    Thank you very much, and I look forward to all of my future Sitefinity support.
    David
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Mar 2009
    Link to this post
    Hi David,

    Perhaps one of the project is set to default web site, while the rest of them in virtual directories below the default (root) web site. Therefore the links are having the virtual directory (the project name) in the URL.
    You can use the ReplaceTool provided in our Blogs if you need to replace links or other type of content at once.

    Anyway, I am really glad that the problem is resolved.

    Kind regards,
    Georgi
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
10 posts, 0 answered