This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 3 voices.

Last updated by Alain 5 months, 1 week ago.

Assigned support staff: Riffaz.

Author Posts
May 9, 2019 at 7:40 pm #3779115

Alain

I am trying to: Connect to wp-admin with a role above editor

Link to a page where the issue can be seen: hidden link

I expected to see: dashboard, site admin

Instead, I got: error 500

When activating WPML with WP SAML Auth already activated:

Fatal error: Uncaught Twig_Error_Syntax: Unknown "set" tag. Did you mean "set"? in /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/templates/warnings/plugins-status.twig:1 Stack trace: #0 /home/simplesamlphp/vendor/twig/twig/lib/Twig/Parser.php(81): Twig_Parser->subparse(NULL, false) #1 /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(692): Twig_Parser->parse(Object(Twig_TokenStream)) #2 /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(750): Twig_Environment->parse(Object(Twig_TokenStream)) #3 /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(447): Twig_Environment->compileSource(Object(Twig_Source)) #4 /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(362): Twig_Environment->loadTemplate('plugins-status....') #5 /home/wwdlate in /home/public_html/wp-content/plugins/-sitepress-multilingual-cms/templates/warnings/plugins-status.twig on line 1 

When activating WP SAML Auth with WPML already activated:

Fatal error: Uncaught TypeError: Argument 1 passed to Twig_Environment::compile() must be an instance of Twig_NodeInterface, instance of Twig_Node_Module given, called in /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php on line 750 and defined in /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php:723 Stack trace: #0 /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(750): Twig_Environment->compile(Object(Twig_Node_Module)) #1 /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(447): Twig_Environment->compileSource(Object(Twig_Source)) #2 /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php(362): Twig_Environment->loadTemplate('notice.twig') #3 /home/public_html/wp-content/plugins/sitepress-multilingu in /home/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Environment.php on line 723 

EDIT
The wp-saml-auth plugin uses simplesamlphp library, which contains twig, we will continue to investigate how this may be resolved, the problem seems to be upstream in simplesamlphp.

May 9, 2019 at 11:33 pm #3779827

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

are you using a custom theme ?

this is most likely happening due to your theme's Twig version

please review the following thread.. the user was able to resolve the issue by changing the Twig version they were using

https://wpml.org/forums/topic/update-to-3-8-1-causes-admin-white-screen-of-death/#post-1387444

https://wpml.org/forums/topic/twig-update/

May 14, 2019 at 2:35 pm #3808281

Alain

We will be looking into changing the Twig version.

Just a note that the Twig version being used in WPML is over 2 years old, and is affected by the following security issue: hidden link

May 15, 2019 at 6:22 am #3812463

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

We are going to update twig soon.
We keep this version of Twig because of backward compatibility with older PHP versions.
This will probably happen in WPML 4.3.0 and we do not have a ETA yet for this.

if the plugin/theme you are using that uses twig ver 1.34 or above, the twig version does not support PHP 5.2 and WPML still support that as noted above.
So for the users who are using still older version of PHP still can use the WPML.

I'll update to you again when we have anther update regarding this.

Regards,
Riffaz.

May 17, 2019 at 5:18 pm #3836209

Alain

Downgrading Twig in simplesamlphp resolved the issue:

composer require "twig/twig:1.32.0"

Thank you