I am trying to: Use Toolset's Import/Export functionality
Link to a page where the issue can be seen: fxbg.com/wp-admin
I expected to see: it working.
Instead, I got: a critical error. PHP logs show: "PHP Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /nas/content/live/fxbg/wp-content/plugins/toolset-advanced-export/vendor/twig/twig/lib/Twig/Node.php on line 42, "
Hi there,
Thank you for the report, I checked the website and I see the error. I tested this on my local install and with a clean installation the issue does not happen so it might be a plugin or theme conflict:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and Toolset add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Kindly get back to us with the result of the test.
I fixed the problem. The issue was in the source code of the Toolset Advanced export plugin. Two places in the code required an update.
In: /wp-content/plugins/toolset-advanced-export/vendor/twig/twig/lib/Twig/Node.php
Change Line 42 to:
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', is_object($node) ? get_class($node) : (null === $node ? 'null' : gettype($node)), $name, get_class($this)), E_USER_DEPRECATED);
and change line 198 to:
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', is_object($node) ? get_class($node) : (null === $node ? 'null' : gettype($node)), $name, get_class($this)), E_USER_DEPRECATED);