Karsten
I'm new here

invalid target type for $CMS_REF()$

Jump to solution

What is the reason for this message?  Thanks

ERROR 12.03.2014 09:51:53.322{g-sec=20919,g-node=20918} (de.espirit.firstspirit.generate.SiteProduction): invalid target type for $CMS_REF()$: 66, class java.lang.Integer

1 Solution

Accepted Solutions
TimoMeister
Returning Responder

Hello Karsten,

this error occurs if you're doing something like this:

$CMS_REF(ref(st_image).width)$

Use $CMS_REF only for references.

Correct is:

$CMS_VALUE(ref(st_image).width)$

Kind regards,

Timo

View solution in original post

2 Replies
zava
Elite Observer

Hallo Karsten,

66 ist not a valid firstparam for CMS_REF.

you wrote something like this... $CMS_REF(66:"yourref")$

ciao,

Antonio

TimoMeister
Returning Responder

Hello Karsten,

this error occurs if you're doing something like this:

$CMS_REF(ref(st_image).width)$

Use $CMS_REF only for references.

Correct is:

$CMS_VALUE(ref(st_image).width)$

Kind regards,

Timo