This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user was unable to save their content template.
Solution:
In this user's case it turned out to be their custom code. What I would do is that you remove the custom code from the site and save the template.
Also check that your custom code is correctly formatted and following the standard wordpress procedures.
This support ticket is created 5 years, 10 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
No problem, yes of course. I need to display the SKU outside of the product page. There for I've found a function with shortcode, but this trowing an error like described earlier in the ticket. Toolset won't save my content template or view whit this code in my child theme's function.php. Is there a workaround available? Same thing whas happening with the function for the attributes Diego modified, but I'm not sure why this is happening.
I;m using the shortcode in Datasheet Child view, first th in the loop item section. I have removed the shortcode from functions.php to prefend Toolset from giving any errors. The code I have used and which gave the errors is:
Thanks. When I try so save the snippet an error returs:
Your PHP code changes were rolled back due to an error on line 120 of file wp-content/themes/Zephyr-child/functions.php. Please fix and try saving again.
Thanks again. Looks like the snippet and shortcode are working, but again after modifying a content template, in this case: Loop item in Datasheet Child view, Toolset throws an error like shown in the image.
I guess that’s because I’ve removed the snippet from functions.php. Does it also saves on your end with the snippet active in the child theme functions.php?
The field sku shows: [woo_sku id='57025'] this is because I removed the snippet from child theme's function.php in order to get the view saveable. With the snippet in functions.php the SKU shows up, but I'm not able to make modifications and save the view. In this case the red warning appears like I showed you in the screenshot. Thanks.
No this isn't normal, however the template does save even if it says cannot save. I tested this scenario and it did save but I still went ahead to debug and resolve it.