Skip Navigation

[Resolved] I can't save changes to the layouts

This support ticket is created 6 years, 2 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 5 replies, has 2 voices.

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

Assisted by: Luo Yang.

Author
Posts
#1087801
Capture.JPG

Hi,
Several weeks ago I lost the ability to save any layouts.
When I make any changes, and click "save", the loading circle will keep going around for several minutes, then the following error message will appear for several moments then disappear:

"There was an error during the ajax request, make sure the data you send are in json format."

meanwhile in the browser console an error 524 appears:
"POST hidden link 524 ()"

load-scripts.php?c=0&load[]=underscore,shortcode,utils,jquery-core,jquery-migrate,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.8:12

This problem only appears when trying to save layouts. all other plugins, including the rest of the Toolset suite works perfectly fine.

Steps I took to diagnose the problem:

- deactivated all other plugins, including wpml.
- cleared and deactivated caching plugins on server and website levels.
- deactivated cloudflare CDN.
- Updated plugins and themes to their latest version.
- tried from 3 different computers.
- tried from 6 different browsers, in normal and incognito mode.
- contacted the web hosting. they checked the error logs and could not find any errors related to ajax from server side and advised that this is related to plugin not server.
- raised the memory limit to 512 MB.

Can you please advise what else shall i do, so i can save the layouts again?

#1088276

Hello,

There are some similar reports before, for example:
https://toolset.com/forums/topic/error-message-when-editing-a-layout/
it is a compatibility problem,

I suggest you check these in your website:
1) deactivate other plugins, and switch to wordpress default theme 2017, and test again

2) provide the PHP debug logs
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

3) If you need assistance to locate the problem plugin/theme, please backup your website, then update this thread, I can try to debug in your webiste

#1088286

Hi Luo,

Thanks for the the reply.

1- I had already deactivated the plugins..etc. please refer to my first step.
2- My website is backed up by Vaultpress on hourly basis. i had already ticked the box that I backed up my website when i submitted the ticket.
can you please proceed with helping me to identify the issue as i have been going around in circles for weeks and my development stopped?

thanks
Atef

#1088319
500-error.JPG

I have tried below steps in your website:
1) Deactivate plugin "WPML Multilingual CMS",
2) Edit the file wp-config.php, comment out this line:

//define('WP_CACHE', true); // Added by WP Rocket

Then edit a layout, add a visual editor cell at the bottom, and save, it works fine. you can see it here:
hidden link

It seems to be a problem WPML plugin with "WP Rocket" plugin.

I have tried to activate "WPML Multilingual CMS" plugin again in your website, but get a 500 error, see screenshot 500-error.JPG
can you confirm it?

I suggest you try these:
1) Reinstall the latest version "WPML Multilingual CMS" plugin manually
2) Get the PHP debug logs from your server provider

#1088334

Hi Luo,
thanks a lot for the inspection.

i was able to activate wpml without any problems.

here is a link to the error log, it contains a lot of wpml related error:

hidden link

i have been using wp rocket and wpml for years and havent had this problem before.

but my question is: if the problem is between wpml and qp rocket, what does this have to do with toolset layouts?

please advise what shall i do

thanks

#1089181

Yes, it should a problem that between wpml and WP rocket, there are some PHP errors occur when activate the WPML plugin and WP rocket, it prevents saving layouts.

I have searched it in WPML forum, found some related WPML tickets, for example:
https://wpml.org/forums/topic/wpml-is-throwing-an-fatal-error/#post-1372939

And I have tested it in your website again, seems the problem is fixed, I can see the WPML plugin is activated and the layouts are saved correctly.

So you don't need to do other changes currently.