cancel
Showing results for 
Search instead for 
Did you mean: 

Versionable Items not visible - Alfresco 4.0c

tomaxdb
Champ in-the-making
Champ in-the-making
Hi,

yesterday I did an upgrade from 3.4d to 4.0c. No errors and only some warnings after several hours struggling with the upgrade process.
Now I've a problem with Items that are versioned. If I navigate to a folder in repository with several versioned items I only get a red bar showing the message "No items". In alfresco.log I found the following error:

Caused by: freemarker.core.InvalidReferenceException: Error on line 4, column 75 in org/alfresco/slingshot/documentlibrary-v2/item.lib.ftl
node.versionHistory[0].versionLabel is undefined

This is the corresponding code line in item.lib.ftl:
<#if node.hasAspect("cm:versionable") && node.versionHistory?size != 0><#assign version = node.versionHistory[0].versionLabel></#if>

There is also an unresolved issue on this problem: https://issues.alfresco.com/jira/browse/ALF-12713

But this one is about an ACP Package, which has been imported. I didn't import anything.

Has anyone had a similar problem?
Or does anyone can give me a hint to solve this problem?

Bye
Tom
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
Total shot in the dark, but are you using Solr? Is your repository sufficiently small enough that you could test out whether or not this problem exists when you are using Lucene instead of Solr?

Jeff

tomaxdb
Champ in-the-making
Champ in-the-making
Hi Jeff, my repository is about 220 GB and I've used index.subsystem.name=lucene in alfresco-global.properties. I didn't try to use sol indexing.
Here is the full extract of the error message in alfresco.log. Maybe that can help to determine the error:

17:55:31,743 ERROR [freemarker.runtime] Template processing error: "Error on line 4, column 75 in org/alfresco/slingshot/documentlibrary-v2/item.lib.ftl\nnode.versionHistory[0].versionLabel is undefined.\nIt cannot be assigned to version"

Error on line 4, column 75 in org/alfresco/slingshot/documentlibrary-v2/item.lib.ftl
node.versionHistory[0].versionLabel is undefined.
It cannot be assigned to version
The problematic instruction:
———-
==> assignment: version=node.versionHistory[0].versionLabel [on line 4, column 75 in org/alfresco/slingshot/documentlibrary-v2/item.lib.ftl]
in user-directive itemLib.itemJSON [on line 30, column 10 in org/alfresco/slingshot/documentlibrary-v2/doclist.get.json.ftl]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Error on line 4, column 75 in org/alfresco/slingshot/documentlibrary-v2/item.lib.ftl
node.versionHistory[0].versionLabel is undefined.
It cannot be assigned to version

I also believe the upgrade didnt't really succeed because I've also some repository folders showing only the index number from db and not the real name of folder.
Tom

tomaxdb
Champ in-the-making
Champ in-the-making
After several attempts I succeeded in installing alfresco 4.0c properly.

Firstly I recognized that there is no more zoom-in or zoom-out flash function in the preview of image thumbnails (jpg, png…)
Is there another way of generating the thumbnails (e.g. other plugins)?

And is it possible to reactivate the zooming function of the image thumbnails?

Bye
Tom

jpotts
World-Class Innovator
World-Class Innovator
Glad you got your install working.

I don't recall that there was a zoom function on image previews. I know there is a zoom function when you preview an office document or PDF.

Regarding your question about other plugins for transformations, you can write your own if the out-of-the-box transformers don't suit your needs. Search the docs for "transformers". Here is a link to get you pointed in the right direction.

If you want to change how the previewer works, you can also plug in your own. If you are interested in that you might take a look at the Media Previews add-on contained within the Share Extras project on Google Code.

Jeff