Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 6 posts 26 karma points
    Mar 27, 2013 @ 12:10
    Martin
    0

    umbraco.library:GetMedia not working in server working in local

                  <umbraco:Item field="homeSlider1" xslt="umbraco.library:GetMedia({0}, true())/umbracoFile/text()" runat="server" />

     

    I have the aboce mentioned item not working when uploaded to Server. It works in local. Both have the same datbase connection and files. What will be the problem?

  • Martin 6 posts 26 karma points
    Mar 27, 2013 @ 12:11
    Martin
    0

    The version of Umbraco is umbraco v 4.7.1.1 (Assembly version: 1.0.4393.24044)

  • Martin 6 posts 26 karma points
    Mar 28, 2013 @ 05:51
    Martin
    0

    can any one help in fixing the above issue 

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 28, 2013 @ 09:19
    Jan Skovgaard
    0

    Hi Martin and welcome to our :)

    Do you get an error message locally or does the image simply just not display?

    /Jan

  • Martin 6 posts 26 karma points
    Mar 28, 2013 @ 09:29
    Martin
    0

    <umbraco:Item field="homeSlider1" runat="server" /> this render the ID

    and

    <umbraco:Item field="homeSlider1" xslt="umbraco.library:GetMedia({0}, true())/umbracoFile/text()" runat="server" />

    this doesnot render anything in server.

    In local all things are working fine

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 28, 2013 @ 09:50
    Jan Skovgaard
    0

    Hi Martin

    Ok, have you remembered to deploy the images from the media folder to the live server as well?

    And have you double checked that the slider is setup correctly on the live site?

    /Jan

  • Martin 6 posts 26 karma points
    Mar 28, 2013 @ 09:52
    Martin
    0

    Hi Jan ya i have media files. But in server

    <umbraco:Item field="homeSlider1" xslt="umbraco.library:GetMedia({0}, true())/umbracoFile/text()" runat="server" /> this is not rendering anything.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 28, 2013 @ 11:04
    Jan Skovgaard
    0

    Hi Martin

    I get that and that's why I'm asking if there are some differences between the two environments. Since I'm not in control of the project I need to ask these question to get an idea about what might be wrong in order to point you in the right direction.

    Have you tried adding ?umbdebugshowtrace=1 to the url of the page where the images are missing? If not please try and do so and let us know if there are some error messages marked with red in the stack trace.

    Since it's on a live site you have probably turned "umbdebug" in the app settings of the web.config to false. It needs to be set to true for the stack trace to work.

    Hope this helps and looking forward to hearing from you.

    /Jan

  • Martin 6 posts 26 karma points
    Mar 28, 2013 @ 11:49
    Martin
    0

    Jan

     

    :) U did that... I was new to umbarco and was my first experinece. I saw some DLL not loading and i removed them. Mostly reportviewer DLL. I will install thant later on. Thanks for ur reply to help me in sorting that out.

     

Please Sign in or register to post replies

Write your reply to:

Draft