Well, the real problem showing up in your log is "Caused by: 
javax.jcr.NoSuchWorkspaceException"

>From the way you use cmsfn:linkForWorkspace it looks to me (I might be wrong 
>though) as if you are using the dam control but the accessing the dms node 
>directly, ignoring the fact that the image might also have been uploaded. 
>That's what the "getAsset" methods of the STKTemplatingFunctions class are for 
>[1]. 

I honestly don't know for sure if you can get the dam control to work properly 
(i.e. securly) with non-STK-templates. You might, but I have not tested it yet. 
I would suggest, that you use the regular uuidLink control instead. Or even 
better: Move your components to stk!

To debug your current problem: Check what values you are geting for 
content.image1 and content.image1DmsUUID. Is the image really activated?

-will

[1] 
http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/modules/standard-templating-kit/2.0.7/apidocs/info/magnolia/module/templatingkit/functions/STKTemplatingFunctions.html


On 28.05.2013, at 09:53, Erando (via Magnolia Forums) <[email protected]> 
wrote:

> Hi,
> I'm running two Magnolia environments (one for testing and a productive one, 
> both 4.5.2 CE). Now on my testing installation my script is working fine. On 
> the other (productive) environment I get an templating error even though I 
> copied everything from the good working testing environment.
> 
> My Script:
> 
> [code]
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>
> <%@ taglib prefix="cmsfn" 
> uri="http://magnolia-cms.com/taglib/templating-components/cmsfn"; %>
> 
> <c:set var="imageLink1" 
> value="${cmsfn:linkForWorkspace(content.image1,content.image1DmsUUID)}"/>
> <c:if test="${cmsfn:isPublicInstance()}">
>       <c:set var="imageLink1" value="${fn:replace(imageLink1, 
> 'magnoliaPublic', 'content')}" />
> </c:if>
> [/code]
> 
> And here's what fails on the productive system only (from catalina.out):
> http://pastebin.com/ANtEjBCW
> 
> You see, the error is "Problems calling function 'cmsfn:linkForWorkspace'". 
> But why is it working on the testing system?
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=4b4c11e4-6a13-42a8-bb95-a1423f93b1cd
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to