Errors Enabling Twig on new site

Hi
I have been given some great support over the last few days with Twig and ACF fields etc. I have everything running as expected on a development site. I exported the ACF setup and the pages with the Twig templates that you guys have assisted me with but non of the Twig templates are working on the new domain site. I understand that the format of DC statements changes when you enable Twig but on the classic statements work with the : rather than the .
Here is a screen shot of the error i am getting.

The information marked as 1 is {{dc:acf:post_field field=“event_date”}}

where as the section marked 2 is inserted the same way but when Twig is enabled.

I did wonder if this was caused by Wordfence but i have disabled Wordfence and the disabled Twig and then re-enabled Twig but this doesn’t make a difference. The sites are both on the same host and running PHP 8.2

Any ideas on the next thing to try

Hello @The_Capture_Factory,

Thank you for opening another thread.

Could you confirm if the Cornerstone > Theme Options > Twig > Advanced option is enabled?

You may also have to activate the Directory Loader option if you have existing Twig templates.

Let us know if the issue persists.

Best regards.

I have switch directory loader , advanced and debug options on but the issue persists unfortunately

Thank you for the info.

It seems to be working correctly now – might be a cache issue. Please try to clear the browser history or test it on a different browser.

Kind regards.

Up and running

Dumped browser cache and did an update to chrome browser. Also deleted the twig statement on the test page and re generated it and now all working

many thanks

Great! Glad to know this has been resolved. Have a nice day.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.