Skip Navigation

[Resolved] Error When trying to use Toolset Export / Import

This support ticket is created 5 years, 5 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)

This topic contains 3 replies, has 2 voices.

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

Assisted by: Christian Cox.

Author
Posts
#1305899

I am trying to export all of my TOOLSET settings to a new site.

When I click on the TOOLSET >> IMPORT/EXPORT link I see a page that says...
===========================
Toolset Export / Import
Export Theme settings
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
===========================

When I receive the admin email the error is...
================================================
An error of type E_ERROR was caused in line 50 of the file /var/www/vhosts/MYSITE/httpdocs/wp-content/plugins/layouts/vendor/toolset/toolset-common/lib/Twig/lib/Twig/TokenParserBroker.php.
Error message: Uncaught TypeError: Argument 1 passed to
OTGS\Toolset\Twig_TokenParserBroker::addTokenParser() must implement interface OTGS\Toolset\Twig\TokenParser\TokenParserInterface, instance of Twig_TokenParser_For given, called in /var/www/vhosts/MYSITE/httpdocs/wp-content/plugins/migrate-template-layouts/library/twig/twig/lib/Twig/Environment.php
on line 1507 and defined in
/var/www/vhosts/MYSITE/httpdocs/wp-content/plugins/layouts/vendor/toolset/toolset-common/lib/Twig/lib/Twig/TokenParserBroker.php:50
Stack trace:
#0
/var/www/vhosts/MYSITE/httpdocs/wp-content/plugins/migrate-template-layouts/library/twig/twig/lib/Twig/Environment.php(1507):
OTGS\Toolset\Twig_TokenParserBroker->addTokenParser(Object(Twig_TokenParser_For))
#1
/var/www/vhosts/MYSITE/httpdocs/wp-content/plugins/migrate-template-layouts/library/twig/twig/lib/Twig/Environment.php(1459):
Twig_Environment->initExtension(Object(Twig_Extension_Core))
#2 /var/www/vhosts/oceansidestructures.co
==================================================

I am using PHP version 7.0.33 but I have also tried v7.2.19

Both give the same error.

I am using the TOOLSET Starter Theme. Is that the issue? I don't see any errors in other plugins.

#1305909

Strange thing is.... the "import" site that I want to import the settings to has all of the same exact theme files and plugins that the "export" site does.

I get the error on the "export" site... but I don't get the error on the "import" site.

#1305997

Hi, sorry for the inconvenience here. We are aware of a dependency issue with the Twig library affecting current plugins, but we plan a hotfix release tomorrow to address those issues. I don't think the Toolset Starter Theme is directly responsible here, since other Users with different themes have reported similar issues. I'll keep you posted here when the hotfixes are available to download, but we do expect that to happen tomorrow.

#1307143

Hi, you can now find the hotfix releases available for automatic update or download. Please update to the latest versions of all Toolset plugins, and let me know if the issue is not completely resolved.