Hi,
I hope you can help.
We are currently in the middle of upgrading from 5.4 to 5.6.1 and its all gone quite smoothly with the testing in the authoring environment. However, when the components are deployed to the publish server there are a lot of exceptions thrown. On referring back to the code all the lines in question seem to be using currentPage in some way.
Has anybody had an experience like this? Or know why currentPage appears to be null.
Regards
Damian.
Solved! Go to Solution.
Yes, getTemplate() shouldn't be used anymore on publish since 5.5...
use getProperties().get("cq:template","")
Views
Replies
Total Likes
Are you using getTemplate()?
Views
Replies
Total Likes
Yes, it seems to complain about that in most cases. However it does seem to complain about pageHelper.getClasses(currentPage). Which is why i moved my investigation from templates to the currentPage object.
Views
Replies
Total Likes
Yes, getTemplate() shouldn't be used anymore on publish since 5.5...
use getProperties().get("cq:template","")
Views
Replies
Total Likes
Thanks, I'll update that. It does work in our auth environment though, and there is the other issue so I'm not sure it's the root cause.
Views
Replies
Total Likes
That is the cause & agree with Feike. http://blogs.adobe.com/livecycle/2012/06/developers-faq-on-cq5-5.html
Views
Replies
Total Likes
Ahh, I see its down to being an anonymous user which explains why it works in auth.
Thanks alot guys.
Views
Replies
Total Likes
Views
Likes
Replies