Skip Navigation

[Closed] Custom snippet error

This support ticket is created 4 years, 3 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: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 4 years, 3 months ago.

Assisted by: Jamal.

Author
Posts
#1769799

Hi, just wanted to add the snippet you suggested in another thread

https://toolset.com/forums/topic/post-body-in-conditional-block/

but I get this error

hidden link

Disabling all plugins + standard theme + disabling mod-sec doesn't help.
Any other idea?

Thanks

#1770901

Hello and thank you for contacting the Toolset support.

The error is a an 403 error, read more about it here hidden link
As the error persists when plugins are disabled and a default theme is used, I would suspect something on the server-side.

I suggest, you share a copy of your website and let me check this on my local setup. We prefer Duplicator copies as described here https://toolset.com/faq/provide-supporters-copy-site/
Please use filter to reduce the size of the copy as described in this video around 1:00 hidden link
If Duplicator fails to create a copy, we'll need a database copy/export, plugins, and theme folders, all in a zip file.

Please create an admin user for me before taking the copy and share it in your next reply with the link to download the copy.

#1771265

I took an All In One Migration export from your site because Duplicator fails due to Wordfence restrictions.

I'll check it and get back to you as soon as possible.

#1771901

I built a copy of your website on my local environment and I was able to save the snippet without issues. Check this screenshot hidden link

The issue on your website is most probably related to a server configuration. Please check the following:
- Make sure /wp-content/toolset-customizations is writable.
- Activate PHP debugging and try to save the snippet again. Then check the debug.log file for any errors https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

The topic ‘[Closed] Custom snippet error’ is closed to new replies.