Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 10/11/2015 15:24:48

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Forms are not saved in pages

Hello Ametys Team,

First of all I would like to really thank you for this amazing Java CMS! smile I am really impressed with the level of simplicity (in GUI) and beauty of this CMS and it's also a powerful one.

I downloaded the demo package with the sample data set (on Windows) and also deployed the CMS from the beginning (on Ubuntu) but I faced an issue in both ways when trying to create a form (either a CMS Form or a form to external website), I can insert a form with fields as a content but after saving, I don't see the form I created in the page in the CMS admin area although I tried to create a form using the online demo on your website () and it's created successfully and I can see it.

Could you please advise what could be the problem?

Note: On Ubuntu when deploying from the beginning, I used JDK 8 and Tomcat 8.


Kind Regards,
Mohamed Nofal

Offline

#2 10/11/2015 15:32:40

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 321

Re: Forms are not saved in pages

Hello,

If something got wrong you certainly have some error messages in WEB-INF/logs, do you ?

Regards,
Cédric

Offline

#3 10/11/2015 15:43:30

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Re: Forms are not saved in pages

Hello Cédric,

I just tried to add a form again now (please note no error in GUI) and checked the log of today (servlet-engine-2015-11-10.log) in WEB-INF/logs but didn't find an error at this time.

The last log time in this file is from 2015-11-10 14:49:31 before creating the form. The log file is attached.


Kind Regards,
Mohamed Nofal

Offline

#4 10/11/2015 18:29:31

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 321

Re: Forms are not saved in pages

Very strange ...

Could you test on another browser ?

If it still does not work, we'll have to dive deeper:

If you don't mind, you could go to http://yourserver/_repository, log in just like in _admin and browse the repository to find your content (you can get the content name in the properties view in the back-office when the content is selected and find the associated node in the repository view trough the "//<name>" Xpath query).
Let me know if i'm not clear at all smile

Once done, you can browse the data actually stored in your content and see if the form data is really there or not.

Offline

#5 10/11/2015 20:18:26

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Re: Forms are not saved in pages

Thank you Cédric for your fast reply smile
No problem, I got what you mean smile

I tried with the following 3 different browsers but still no form is created after saving:
Firefox 42.0
Chrome 46.0
Internet Explorer 11

Regarding searching in the repository, I searched by the content name which is "test-page-article-4" and got the following result after selecting ametys:content:

> /jcr:root/ametys:root/ametys-internal:sites/45/7d/www/ametys-internal:contents/78/ba/test-page-article-4/ametys:content

jcr:data (Binary)                   Download
jcr:lastModified (Date)           Tuesday, the 10th of November 2015 19:55:58
jcr:lastModifiedBy (String)      ametys
jcr:mimeType (String)           text/xml
jcr:primaryType (Name)        ametys:richText
jcr:uuid (String)                     153cf184-af02-4733-a33b-df7c83b7d084

I downloaded the data in jcr:data and they are as follows:
<?xml version="1.0" encoding="UTF-8"?>
-<article version="5.0" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook">
    <para>Please fill in the following fields:</para>
    <para> </para>
</article>

which has only the text I entered without the form.

Offline

#6 11/11/2015 22:24:22

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Re: Forms are not saved in pages

Update: I used the Bitnami Ametys Installer () for Windows and tested creating a form, it's created successfully and I can see it in the page after saving smile using the same version of Firefox I mentioned above. I can also see the form created in the repository with searching by the content name.

But why the form was not saved when using the Ametys installer in this download page () smile?

Offline

#7 12/11/2015 11:50:23

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 321

Re: Forms are not saved in pages

It is very very strange ...
I cannot reproduce it by myself.

Which version have you downloaded ? 3.7.2 ?
The bitnami version is a bit older, but demo.ametys.org/cms should be in last version and it seems to work.

Do you have any Javascript error in your browser when trying to create a form with the downloaded version ?

Offline

#8 14/11/2015 18:11:10

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Re: Forms are not saved in pages

The version I downloaded from Ametys Website is 3.7.2 and Bitnami's one is 3.7.1
I debugged javascript but no errors are shown, also no other errors in general (I used Firebug add-on in Firefox)

I re-installed Ametys and tried to create a form and save it but encountered a workflow error, maybe it's related to the problem?

2015-11-14 17:55:34,416 ERROR [com.opensymphony.workflow.AbstractWorkflow] (8824445@qtp-12869066-19;/cms/plugins/core/servercomm/messages.xml) Error checking available actions
com.opensymphony.workflow.WorkflowException: Unknown exception encountered when checking condition org.ametys.cms.workflow.ValidateMetadataCondition@704998: root cause: javax.jcr.lock.LockException: Cannot add lock token: lock already held by other session. (lock held by node /ametys:root/ametys-internal:sites/45/7d/www/ametys-internal:contents/27/8a/test-page-article)

Please note that test-page-article is the article I added the form in but after saving, it's still not shown.

The log file of today is attached that has this error with other details.

Offline

#9 16/11/2015 11:37:54

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 321

Re: Forms are not saved in pages

Hi,

Could it be that you're running Ametys with Java 8 ?

Ametys 3.x is actually developped and tested against Java 6 & 7 and some errors have been reported using Java 8.
If it's a Java 8 issue, we'll fix it asap.

Offline

#10 16/11/2015 13:35:57

mnofal
Guest
Registered: 10/11/2015
Posts: 7

Re: Forms are not saved in pages

Yes, it's related to the Java version, I tried JDK 7 and it worked fine.

Thank you Cédric smile

Offline

#11 16/11/2015 14:58:13

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 321

Re: Forms are not saved in pages

Thank you for reporting this.

I'll open a ticket to fix it for Java 8.

Cédric

Offline

Board footer

Powered by FluxBB