Skip Navigation

[Resolved] Form (posttypes) changes are sometimes saved and sometimes not saved

This thread is resolved. Here is a description of the problem and solution.

Problem:

The changes of Layout Form cell are sometimes saved and sometimes not saved.

Solution:

It is a server problem, see the solution provided by client:
https://toolset.com/forums/topic/form-posttypes-changes-are-sometimes-saved-and-sometimes-not-saved/page/2/#post-910853

Relevant Documentation:

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 20 replies, has 3 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#901365
Changing-form.JPG

Dear team

I am trying to: making changes to a cred form but that does not work properly.
For example, if I want to change the order of the fields of the form, it is not always saved. The addition of text in combination with HTML is not always saved. When I add a small piece of text then it works better, major changes such as changing the order in one go is not possible. it is a form for placing a message (advertisement).

I have already done several tests to find out what it could be but without result:
- I changed themes and tried a standard theme, still the same problem.
- Because this is the beginning of a my online project I have done a complete new installation. without result.
- The website runs now on PHP 7, this should work, I think, but still te same problem.
- I have activated and linked a new activation code several times but no result.

Perhaps important to mention:

I first used the registration code to practice local with toolset.
I now use the registration code for the construction of a website for online testing (eg testing email notifications)
I do not know if it has anything to do with this.

For your information: The final real active site will be built afterwards with a new toolset registration.

The annoying thing is that it works very slowly and it does not feel good when I start to encounter problems at the beginning of my project. Could you please help me?

If you are logged in on the website, go to pages > all pages > Adverteren – Autobanden en velgen > Edit wih layouts.
For example, try the following: Cut and stick the bottom four form groups and place them upwards
this does not work and if you succeed then you are lucky. Sometimes it works and sometimes it does not work. The same is to change label textor adding text.

Link to a page where the issue can be seen:
hidden link

Thanks in advance
Pascal

#901519

Dear Pascal,

The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again

2) Enable wordpress debug mode, and copy/paste the PHP debug logs here

PHP Debugging
In case you think that Types or Views are doing something wrong (what we call a bug), you should enable PHP error logging. Again, edit your wp-config.php file and add the following:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
This will produce a file called ‘error_log.txt’ in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, user www-data).

hidden link

3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem CRED form URL, I need to test and debug it in my localhost, thanks

#901819

Thanks for the details, I am downloading the file, will feedback if there is anything found

#901820

Here is what I found,

1) I tried your database dump file in my localhost, it works fine, all change to the CRED form cell are saved correctly.

2) Then I checked it in your website, I can see the problem: changes to the CRED form cell are lost.

So it might be a server problem, do you get the PHP debug logs? can you copy/paste them here?

If you need assistance to get the debug logs, please provide FTP access of your website, I need to debug it in a live website

#902287

Dear Luo Yang

I will try again to change the server settings,
I will come back to you as soon as possible.

Greetings Pascal

#902291
Change server settings.JPG

Hello Dear Luo Yang

I have tested the following:
server settings
Change: max_input_vars from 1000 to 6000
Change: memory_limit from 128 to 256

it seems that things are going better, but I can also be mistaken.
However, it does not work as it should.

Maybe you would like to test again?

I see that I can not send you confidential data through your form. Would you like to make this possible again? I then send you the FTP data.

Thanks in advance
Greetings Pascal

#902350

Please backup your website, then provide the credentials and FTP access in below private detail box, thanks

#902380

I have tried the SFTP access you provide above, it is not valid, I get this error:
Command: open "pasc****@vserv****.axc.eu" 22
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

Please check it, make sure it is a valid, you can update your own private message here:
https://toolset.com/forums/topic/form-posttypes-changes-are-sometimes-saved-and-sometimes-not-saved/#post-902370

#902395

Hello Luo Yang

See private massage text, i add the correct link
I can log in

#902670

I have tested in your website again.

Add some test text in the CRED form, it seems to be work:
hidden link

<!-- I can add codes to the CRED form -->

But the problem still persists when you edit the CRED form cell:
hidden link

According to your post:
https://toolset.com/forums/topic/form-posttypes-changes-are-sometimes-saved-and-sometimes-not-saved/#post-902291

It should be a server problem, I suggest you try to increase the memory_limit to 512 or more.

And as a workaround, you can edit the CRED directly:
hidden link
It will save much PHP memory.

#902767

Dear Luo Yang

I changed the memory_limit to 512 but the problem is still the same.
I will contact my hosting company maybe they can help

I'll keep you informed
Greetings Pascal

#903159

Dear Luo Yang

I have had contact with the hosting company today I'm going to do some more tests together with the hosting team
Maybe try another server. This may take some time, I would like to ask you not to close this ticket yet.
As soon as I have news, I will send you a message.

Thank you for your great support!
Greetings Pascal

#903796

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo is on vacation. He will get in touch with you as soon as he will back on Monday.

#904513

Dear team

I have examined a few things again.

- To begin with, I moved the domain (the online testsite) to another server, toolset is installed (without SSL) and works perfectly!
- Back to the other server, I reinstall toolset on a free domain (without SSL) and works perfectly!

I start to doubt after these findings, what can it be?

- I have reinstalled the toolset again, on a domain in a subfolder (using SSL) and the problem occurs again.
facts: the problem occurs on a website in a subfolder with SSL.

The website has a secure connection (ssl), except Edit CRED Post Form.
Perhaps this is the cause of the problem.

(the problem: sometimes changes are safed and sometimes changes are not saved)

Could this be it? I have also tried plugin Realsy simple SSL, the problem persists.

If you want to log in, I have to send you the new data via a secure form.

Greetings Pascal

#904803

There is not similar problem in my localhost, with SSL for example: hidden link
I can change the CRED form layout cell, and it is saved correctly, so I don't think it is a problem of SSL

Since the FTP access you provided above is not valid for me, the directadmin credentials you provided above is not FTP/SFTP access, so I can not get the PHP debug logs from your website.

Could you try to get the PHP debug logs from your website?
hidden link

For example: edit and save a CRED form cell, and get the PHP debug logs, and copy/paste it here, that will help a lots.

If you need assistance to get the PHP debug logs, please provide a test site with the same problem, and provide the valid FTP/SFTP access of the website, I can try to get the PHP debug logs in your website. thanks