Skip Navigation

[Resolved] Types 3.3.3 is not compatible with WPML 4.2.7.1 twig error generated.

This support ticket is created 5 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 11 replies, has 3 voices.

Last updated by Christian Cox 5 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1300707

I am trying to: Update to Types 3.3.3, but with WPML also running the site fails to load.

The php error I am getting is, " PHP Fatal error: Declaration of Twig_Node::compile(Twig_Compiler $compiler) must be compatible with OTGS\Toolset\Twig_NodeInterface::compile(OTGS\Toolset\Twig\Compiler $compiler) in /www/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Node.php on line 18

The front side of my site (hidden link) is white screening, but if I disable WPML or Toolset it works again or if I disable Elementor Pro (which is providing the header with the Language Switcher) the site also opens (broken, but it opens).

To access the site front end you will need the username flywheel and password: truthful-router as the site is in private mode.

#1300747
#1300751

Hi, sorry but for some unknown reason it seems the chat wasn't updating. I converted the chat to a standard forum ticket so we can continue discussion by email. Is it okay for me to use the Duplicator plugin to create a clone of the site so I can run some additional tests locally?

#1300753

Yes, that is fine.

#1300779

Okay thank you, I didn't see anything obviously wrong in your setup, so I have asked my 2nd tier team to take a closer look. I will let you know what I find out as soon as possible.

#1300873

I am having a related problem on my main website as well. I will open another ticket for that one. Everything from my end points to WPML and Toolset not playing nice after the 3.3.3 update.

#1301103

Am having the same problem with sites running the Timber (twig) plugin as well as a site using Toolset Layouts. The Toolset Twig changes in the last update are the common denominator. The error with Timber running is:

Fatal error: Declaration of Twig\Node\Node::compile(Twig\Compiler $compiler) must be compatible with OTGS\Toolset\Twig_NodeInterface::compile(OTGS\Toolset\Twig\Compiler $compiler)

#1302891

Hi, our developers have released a patch version to fix this problem while working on a permanent fix in the next release of Types. Please find a patched version of Types available here: https://drive.google.com/file/d/19yJCKPZpuRpWNp985nBXimW5qwIRmalX/view?usp=sharing

Let me know if the problem is not resolved by the patched version.

#1303047

I have installed the patched version and cleared all caching, but the problem remains. The website is loading funny and I still see the same errors.

hidden link - still shows a blank screen with an empty box.
hidden link - is still formatting oddly.

#1303189

Thanks for that, I'm sorry for the inconvenience. I will ask if I received the wrong package, or if this is an oversight.

#1305545

I have a new development version of Types here, and I tested it against my local copy of your site. The fatal error is no longer appearing, and I can see the homepage. Please try this version and let me know if the fatal error is not completely resolved on your end.

https://drive.google.com/file/d/1X96bC_X0nioS8naSLpUaxVmQUTDlVpvW/view?usp=sharing

#1305893

The provided Dev version does appear to resolve this issue on the two sites I have tested it on. Any idea when this will be included in stable version of the plugin?

#1307147

Great, it's now available in the hotfixes that were released today. Please update to the latest versions of all Toolset plugins and let me know if the problem is not completely resolved.