|
After upgrading from 4.4.6 to 4.5.12, I also ran in to this issue. I did the following to fix it:
1. Change the following line:
Content content = (Content) pageContext.getAttribute("content", PageContext.REQUEST_SCOPE);
to this:
ContentMap content = (ContentMap) pageContext.getAttribute("content", PageContext.REQUEST_SCOPE);
and of course add an import for info.magnolia.jcr.util.ContentMap.
2. The i18n support in the following three lines also cause problems:
String link = I18nContentSupportFactory.getI18nSupport().getNodeData(content, "link").getString();
String extension = I18nContentSupportFactory.getI18nSupport().getNodeData(content, "extension").getString();
String query = I18nContentSupportFactory.getI18nSupport().getNodeData(content, "query").getString();
Sorry, I don't know how this can be fixed. So I just removed the i18n support like this:
String link = (String) content.get("link");
String extension = (String) content.get("extension");
String query = (String) content.get("query");
I don't offer a patch file for this as the i18n issue should rather be properly fixed but I don't know how...
|