Skip Navigation

[Resolved] Layout conflict with caching plugins

This support ticket is created 5 years, 5 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 26 replies, has 3 voices.

Last updated by Shane 4 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1255171

Hi Shane,

as i said in the first comment here: https://toolset.com/forums/topic/layout-conflict-with-caching-plugins/#post-1254199

The issue is only there when i activate w3 Total Cache or WP Rocket. it doesn't matter which cache plugin i activate i begin to have this issue. please login to my site, i have deactivated WP Rocket now and the issue with Layout doesn't appear at all.

If you activate WP Rocket again, or even you can download and install w3 Total cache, the issue with Layouts will be there..

since this issue happens with any Cache plugin, i decided to contact Toolset support and not WP Rocket or W3 Total cache.

#1255183

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

It strange that this does not occur on the copy of the site that i've setup locally.

It works fine even with the WP Rocket plugin installed. The only issue I noticed was with WPML however I can provide a copy to our 2nd tier supporters for further checks on this as the issue can be more than just with Toolset and the caching plugins.

It will take some time for them to debug but the workaround that I mentioned earlier should work for you as well since its the same website.

Thanks,
Shane

#1255221

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Escalated

#1255223

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Escalated

#1258771

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

Thank you for patience.

Could you try the following ?
in wp-content/plugins/layouts/classes-auto/wpddl.layouts-editor.class.php find do_action( 'save_post', $post_id, $post );
Change that to do_action( 'save_post', $post_id, $post, $update );

Thanks,
Shane

#1258775
changed.png

Hi Shane,

I have followed your suggestion but this didn't make any change. Cache also was deleted etc... no success.
I even tried to delete all the content from the layout but the issue remain.

BTW: this is happening only by this specific layout.. other layouts or new ones are working fine.

#1260269

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

Which is why i suggested to remake the Layout.

This is a known issue and our team is working on a more permanent fix but for now we only have workarounds for this issue.

Thanks,
Shane

#1260335

As i said, remaking the Layout doesn't solve the issue which is also weird. I mean if i copy all content of the layout and create a new one and add that code to it, this wont solve the problem, i tried it already. Work around for me now is to turn of the caching plugin and edit that layout and once i finish i reactivate the cache plugin.

Hope this will be solved soon. Please update me once you have any news about this topic. Thank you

#1260517

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

I was able to create a new layout with the code from the old one as I previously instructed and it worked fine here.
hidden link

All I did was to use the code and copy it to a new layout.

Thanks,
Shane

#1260521
Screen Shot 2019-06-05 at 22.08.17.png

Yes to create a new one from the same code its possible. but after assigning Recipes CPT to it, the issue show up again. i just assigned now the layout you have created and the Error remains. you can take a look. and the older Layout from where you get the code now works fine when saving.

#1260553

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

I see so we definitely need to wait on the fix from our development team .

Thanks,
Shane

#1563017

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nashaat,

I've gotten information from our 2nd tier support that this issue has been resolved in one of our Layouts release.

If you have not already done so I would recommend that you update all your toolset plugins to their latest versions and see if this issue still remains.

Thanks,
Shane