cancel
Showing results for 
Search instead for 
Did you mean: 

Edit properties form not showing up

grk
Champ in-the-making
Champ in-the-making
I have installed a community language pack for Greek. Everything seems to be working great.

I have some problems though, in some forms. For example, when I press the "edit properties" icon, on a document (when on a folder, not viewing the document), the edit form does not show up.

Does anyone have any idea on how this can be solved?
It is of custom content type, so lack of translations might be one thing. Even so, this happens in all content types, even on the core ones..

12 REPLIES 12

mitpatoliya
Star Collaborator
Star Collaborator
Any error on User Interface?Any error in log files?
Please add those details.

grk
Champ in-the-making
Champ in-the-making
No message error is provided in the User Interface.
On the logging files, nothing as well, by default. Should I set any particular log4j property to debug, in order to get any possible error? e.g. Javascript errors?

Thank you.

kaynezhang
World-Class Innovator
World-Class Innovator
I guess there might be some illegal character (for example quote without escape) in your Greek language pack which cause a trouble to client side javascript code. So when you click on the "edit properties" button,the javascript code dose not work.

So  setting log4j property to debug might not do any help.
You can try to move the following greek i18n properties file to the place

Share/js/alfresco/services/i18n/ActionService_GR.properties
share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/documentlist-v2.get.properties
share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/documentlist.get.properties

and see what happens in share document library.

grk
Champ in-the-making
Champ in-the-making
First of all, thank you for your help.

Something important before we continue our conversation: I noticed that on IE, the form is displaying normally in greek (probably the only time that a developer is happy with IE). What does this mean? The files can't be corrupted or with missing strings, because IE loads them!

I didn't use an .amp file for the language pack, rather than just upload a .jar file. So, the file you said ActionService_el.properties is not on the alfresco repository. I unjared the .jar file in my desktop, and copied the file as documentlist.get_el.properties (and -v2 likewise). Nothing happened. Then I created a backup of my documentlist.get.properties and replaced it with the greek version. Nothing in particular, regular english form showing up.

grk
Champ in-the-making
Champ in-the-making
I opened up a debugger to see what's going on upon the loading of any Alfresco page, and more specifically in a document library. So, first of all, I get the following error:

<b>TypeError: b is null</b>

The javascript is minified, so I do not know in which line this happens, but it happens right after the tags are retrieved, and in a file called "yui-commonXXXXXXXX.js" (XXXXX is a random sequence of numbers and letters).

Next, when I actually click on "edit properties", I can see the GET response, and everything is retrieved normally! I can actually see the HTML that is returned to the browser.. But the thing is that is in the top of HTML tags, and it is hidden.. Smiley Frustrated

I suppose a function is not called correctly. Possibly the one with the null pointer?



kaynezhang
World-Class Innovator
World-Class Innovator
You can turn on debug mode by setting the client-debug flag to true in classpath:alfresco\share-config.xml(or extension classpath share-config-custom.xml),share will use the original uncompressed javascript file,or you can just copy the yui-common.js into yui-common-min.js.
And then open up a debugger to see what's going on.It will give you detail null inforamtion

grk
Champ in-the-making
Champ in-the-making
Can you tell me what to type exactly, so as to get non-minified JS?
I tried the following:

First, I wrote on my share-config-custom.xml the following:

  <config>
    <flags>
       <client-debug>true</client-debug>
    </flags>
  </config>


Nothing happened.. Then, I wrote "replace=true" on my config tag, and share didn't even load up. It said that something on alfresco-common.ftl was missing (config.global.flags.childrenMap[key] to be exact)..

Then, I went low-level and edited share-config.xml on the webapps/share.. repository. Now Javascript debugging seems to be enabled, and some of the .js is unminified. But the problem is on a script called "yahoo-dom-event_XXXXXX.js" which is provided minified, still!

It seems that a certain Y variable is not defined in the greek language pack.. Opening up my debugger, and seeing the "
DOM" tab, that Y variable is there, but which property should I see (it has some properties like BUILD, Bubbling, util, lang, etc.)? Is there any information I can provide you with, that could help?

Also, the Alfresco log4javascript shows some information, but no errors or warnings there..

Any help is greatly appreciated guys.. Smiley Happy

mokus16
Champ in-the-making
Champ in-the-making
We are having the same issue with Slovak language pack - exactly same behavior as grk described. In IE it works and we also identified the same JS, but I don't know how to correct it.

Has anybody found a solution/workaround for this issue?

Thanks in advance.

grk
Champ in-the-making
Champ in-the-making
Just confirming that we haven't found any workaround as well.
Obviously a configuration file is missing, but I can't figure out which one. The safest way would be to take a working language pack and rebuild it with our strings, but that would take a while (a long actually..).

Does it have to do that it is loaded up as a .jar file?