Envato Template Kit Import : API Error on template import

Has anyone found a way to get Envato Template Kit Import to work with LOCAL?

Envato Template Import Plug-In
Tools>Template Kit
Upload Template Kit ZIP File (see attached image)
Select ZIP file
Error message (see attached image)
Debug file


Fatal error: Uncaught Error: Undefined constant "Envato_Template_Kit_Import\NONCE_SALT" in C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-content\plugins\template-kit-import\vendor\template-kit-import\inc\class-importer.php:124 Stack trace: #0 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-content\plugins\template-kit-import\inc\backend\class-template-kits.php(53): Envato_Template_Kit_Import\Importer->install_template_kit_zip_to_db('C:\\Windows\\Temp...') #1 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-content\plugins\template-kit-import\inc\api\class-template-kit-install.php(40): Template_Kit_Import\Backend\Template_Kits->process_zip_file('C:\\Windows\\Temp...') #2 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\rest-api\class-wp-rest-server.php(1171): Template_Kit_Import\API\Template_Kit_Install->upload_template_kit_zip_file(Object(WP_REST_Request)) #3 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\rest-api\class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/template-kit-i...', Array, NULL) #4 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\rest-api\class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request)) #5 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\rest-api.php(410): WP_REST_Server->serve_request('/template-kit-i...') #6 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\class-wp-hook.php(308): rest_api_loaded(Object(WP)) #7 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #8 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\plugin.php(565): WP_Hook->do_action(Array) #9 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\class-wp.php(399): do_action_ref_array('parse_request', Array) #10 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\class-wp.php(780): WP->parse_request('') #11 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-includes\functions.php(1332): WP->main('') #12 C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-blog-header.php(16): wp() #13 C:\Users\Thurstan\Local\alladaviescouk\app\public\index.php(17): require('C:\\Users\\Thurst...') #14 {main} thrown in C:\Users\Thurstan\Local\alladaviescouk\app\public\wp-content\plugins\template-kit-import\vendor\template-kit-import\inc\class-importer.php on line 124
WordPress › Error html { background: #f1f1f1; } body { background: #fff; border: 1px solid #ccd0d4; color: #444; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); box-shadow: 0 1px 1px rgba(0, 0, 0, .04); } h1 { border-bottom: 1px solid #dadada; clear: both; color: #666; font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: #0073aa; } a:hover, a:active { color: #006799; } a:focus { color: #124964; -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); outline: none; } .button { background: #f3f5f6; border: 1px solid #016087; color: #016087; display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
		vertical-align: top;
	}

	.button.button-large {
		line-height: 2.30769231;
		min-height: 32px;
		padding: 0 12px;
	}

	.button:hover,
	.button:focus {
		background: #f1f1f1;
	}

	.button:focus {
		background: #f3f5f6;
		border-color: #007cba;
		-webkit-box-shadow: 0 0 0 1px #007cba;
		box-shadow: 0 0 0 1px #007cba;
		color: #016087;
		outline: 2px solid transparent;
		outline-offset: 0;
	}

	.button:active {
		background: #f3f5f6;
		border-color: #7e8993;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

		</style>

There has been a critical error on this website.

Learn more about troubleshooting WordPress.



Hi @Thurstan

These might help:

Meme probleme, meme erreur, je ne peux pas importer de template kit avec LocalWP, et je travaille qu’avec ca en général, je suis vraiment decu je voulais utiliser ce logiciel mais je ne peux pas du coup.
De ce que j’ai cru comprendre ce n’est pas possible d’importer un template kit :

Same problem, same error, I can’t import a template kit with LocalWP, and I only work with it in general, I’m really disappointed I wanted to use this software but I can’t.
From what I understand it is not possible to import a template kit: