cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with FDK

aitbenmouh
Champ in-the-making
Champ in-the-making
When i installed FDK in alfresco i can't access to the http://localhost:8080/share/page/form-console it's display that message :
A problem has occurred. 
This page could not be rendered:
form-console
Please notify your system administrator.
5 REPLIES 5

aevans713
Champ in-the-making
Champ in-the-making
Hi,

Could you post your alfresco log file, particularly the portion when you try to access the console?

aitbenmouh
Champ in-the-making
Champ in-the-making
15:40:20,241 ERROR [freemarker.runtime] Template processing error: "Expression templateStylesheets is undefined on line 4, column 11 in org/alfresco/form-console.ftl."

Expression templateStylesheets is undefined on line 4, column 11 in org/alfresco/form-console.ftl.
The problematic instruction:
———-
==> list templateStylesheets as href [on line 4, column 4 in org/alfresco/form-console.ftl]
in user-directive renderStylesheets [on line 66, column 7 in org/alfresco/form-console.ftl]
———-



darkstar1
Confirmed Champ
Confirmed Champ
I confirm the same error also. I just tried with 4.2. Will try to fix it.

blackcyanide
Champ in-the-making
Champ in-the-making
I have the same problem, both with 4.2.c and 4.2.b, I was able to play around with the files, basically manually put everything in the amp and jar file into the 'right' places (truly, I have no idea what the 'right' place is, this is day one for me), but I was able to get the page to load by just instantiating the templateStyleSheets var in the form-console.ftl:

<style type="text/css" media="screen">
   <#assign templateStylesheets = ["http://localhost/alfresco/fdk/exif-accordion.css','http://localhost/alfresco/fdk/fdk.css','http://lo..."]>
   <#list templateStylesheets as href>
      @import "${href}";
   </#list>
   </style>


Since I don't really know my way around yet, I just created the 'fdk' directory under the alfresco context folder for testing.  After that is fixed, there is another error in the form.get.html.ftl file - regarding a self closing widget definition - which I just removed - since it said it was missing a src attribute…that I wouldn't know about:


//removed from form.get.html.ftl
   <@markup id="widgets">
      <@createWidgets/>
   </@>


Restart alfresco, and now the console loads…now, assuming you have the right css loaded you'll see some color, but you'll also get a couple of javascript errors when you load a form more than likely…again, not knowing where anything comes from yet (e.g. I found that /res/ maps to /pages/resources/ but no idea where that points me to…I'm struggling trying to figure out the relative vs. absolute location of things.) I just located the files with the code being referenced (form.js and object-finder.js and put those in my fdk dir as well…) then I got 'something' to load, but pop-ups weren't working (or rather, wouldn't render properly) so i'm sure I am missing a bunch of other references, but at this point I don't even know how else to try.

resplin
Elite Collaborator
Elite Collaborator