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

Forums / Bugs & Issues / Image URL issue since upgrade

Image URL issue since upgrade

6 posts, 0 answered
  1. David
    David avatar
    26 posts
    Registered:
    12 Jul 2008
    21 May 2009
    Link to this post
    I have upgraded from 3.6.1870 to 3.6.1927. The ImageURL property of the Image control no longer works properly. When I go to edit and the advanced tab, the ImageUrl attribute looks like:

    [Libraries]a4f46648-3df6-4cfa-9c8f-2335dfae81b8

    Images previously added are OK but new images are not.

    Any help would be appreciated.

    Thanks
    Dave Cooper
  2. David
    David avatar
    26 posts
    Registered:
    12 Jul 2008
    21 May 2009
    Link to this post
    Further information about this question:

    The issue does not occur when seelcting the image from the advanced tab, only from the initial tab.

    Thanks
    Dave Cooper
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 May 2009
    Link to this post
    Hello David,

    Since version 3.6 we use dynamic links which are very useful because they represents the provider and ID of the item instead of the relative or absolute urls. Could you elaborate what the problem is with the newly created images?

    Kind regards,
    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.
  4. David
    David avatar
    26 posts
    Registered:
    12 Jul 2008
    22 May 2009
    Link to this post
    Thanks for your reply. I have now updated to 3.6.1936. The issue is still present. These are the steps that I do to recreate the issue:

    1. Click to edit a page
    2. Drag an image control into the placeholder
    3. Edit the image
    4. Select an image to upload or use an existing image, it doesn't matter the issue happens either way
    5. Click I'm done and you are returned back to the page and the image is not showing
    6. Click to edit the image again and go to the advanced tab so that the ImageUrl attribute can be seen. The value is something like: [Libraries]eaaebe1a-42ca-4662-9fad-048b7ad0ebcc
    7. If I click select at this point and browse to an image then the correct URL is returned and the image works

    It looks to me that there is some rewriting that isn't being run when I choose an image from the Basic tab on the image control. Any idea as to why this would be?

    Thanks
    Dave Cooper
  5. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    22 May 2009
    Link to this post
    Hello David,

    Before version 3.6 we used relative/absolute url (/YourSite/Libraries/myLibrary/myfile.sflb.ashx.) These url will be broken if you rename the image or library. Starting from Sitefinity 3.6 the Image control is using dynamic links -  [Libraries]eaaebe1a-42ca-4662-9fad-048b7ad0ebcc. When you change the name of file or library it will not break. You must check that you have merged the web.config file during the upgrade.

    Please check that you made these changes after you have upgraded Sitefinity for the last time:
    Note: First backup your site to be able easily to recover to its original state.

    1. Check that this line (highlighted in green) exists in your config file:
    <controlDesigners>  
       <add key="System.Web.UI.WebControls.Image"   
     value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries"/>  
       <add key="Telerik.Cms.Engine.WebControls.SitefinityImage"   
     value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries"/>  
    </controlDesigners>  

    2. Replace this line in the <toolboxControls section (the yellow must be replaced with the green):
    BEFORE:
    <toolboxControls>  
    ...  
      <add name="Image" section="Most popular"   
      type="System.Web.UI.WebControls.Image, System.Web, Version=2.0.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"  
      description="Displays an image on a Web page." />  
    ...  
    </toolboxControls>  

    AFTER:
    <toolboxControls>  
    ...  
      <add name="Image" section="Most popular"  
      type="Telerik.Cms.Engine.WebControls.SitefinityImage, Telerik.Cms.Engine"  
      description="Displays an image on a Web page." />  
    ...  
    </toolboxControls>  
     
     

    3. Be sure to copy the templates from Sitefinity 3.6 SP1 Hotfix to your web site. 
    The templates in the [~your site]/Sitefinity/Admin/ControlTemplates/Libraries folder are especially important for the correct functioning of images. 

    After these steps are accomplished ,edit the Image control, select an image and it should display properly.

    I hope this information helps.

    All the best,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  6. David
    David avatar
    26 posts
    Registered:
    12 Jul 2008
    26 May 2009
    Link to this post
    Thank you for this. The problem was I hadn't updated the Toolbox part of the web.config properly.

    Many thanks for your help
    Dave Cooper
Register for webinar
6 posts, 0 answered