Cannot import .tco file

I am developing a substantial update to our site on a development clone. I need to import a Cornerstone page that has been updated on production into the development site. I exported the page from production and saved it as a .tco file. When I try to drag and drop into Cornerstone or if I try to import into the page I get several errors that I was able to screen shot (they disappear quickly and I don’t see that they are logged).

The errors state:
“Sorry you are not allowed to upload this file type” Followed by a long hexadecimal string.
“Failed to import image batch. Your server upload limit is probably preventing this upload from happening”

The PHP upload_max_filesize is set to 1G. The largest image file is around 4.7mb (4745kb).

Hello Kevin,

Thanks for writing in! Your server may have disallowed .tco file type. Please also check your Tools > Site Health > Status for any performance issues. We would also love to check your site if we can log in. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Cheers.

It was probably never explicitly allowed as I believe it uses the default set for Apache/nginx and .tco is custom. What is the .tco MIME type? I can try to add it to the server once I’m back in the office on Wednesday. If that doesn’t work I can give you access to the dev server.

Hello Kevin,

The .tco file is the media file type we use for the Themeco templates. If allowing the file type in your server does not resolve your issue, we would love to log in to your site and investigate it. You can send us the WP details in a secure note as pointed out in my previous reply.

Thanks.

I was able to import a different .tco file. It might be the .webp included in the .tco archive.

Hey Kevin,

You may also need to allow .webp file type so that you will no longer encounter the issue next time you import a template file.

Cheers.

There seems to be something else going on. I opened up the .tco archive, removed the .webp, then resaved as .tco. I got the same issue when trying to import. The files in the .tco are .jpg, .png and .json.

The other .tco that imported successfully was a header with just a single .jpg and 2 .json files. The problem .tco page does contain a raw element tableau embed. I’m not sure if this has anything to do with the errors.

I will prepare a clone you can poke around and add a secure note.

Hey Kevin,

Could you please zip your template file or uploade the tco file in Dropbox go Google Drive so that you can share it to us? We would like to text your TCO file in our local testing servers.

Thanks.

Will do. I’ve not been able to dedicate a lot of time to this issue this week due to managing a server migration. I will put it on my to-dos for tomorrow.

Ok great. We will wait for the file.
Thanks.

I’ve uploaded the .tco to our OneDrive. Link in a secure note.

Hi Kevin,

I can replicate the issue on my local testing server. I cannot import the file. Does this file template have a link to an external image or SVG? If you have a live version of this template, maybe we can check it? We would love to see the live page or at least your staging area so we can check on the elements of this template or page.

Thanks.

It does have a embedded Tableau dashboard and links to two GIS maps that are on a different server. Could those be causing the issue with import? I saw a WEBP image (not external, included on the page) as well but no SVG that I’m aware of.

You can see a live version on our prod server at EHSD Program Data Dashboard | EHSD. I need to see if there is an up-to-date copy on the dev clone.

Hey Kevin,

That could be the reason. Please try removing those elements from your template to see which one is causing the issue. Or, try creating another template and add elements one at a time while testing if the template import will succeed. There could be some custom code or unsupported characters in those elements that causes the template import to fail.

No Luck. I removed the external Tableau section, the buttons that linked to the GIS maps, and all the images. Still get the same error when trying to import, though I do get a file imported message at the end, but its not actually imported.

When I look inside the .tco export file, it is a few JSON files, a .webp, and a handful of .JPGs. When looking at the images, the majority are old temp images used before the final image was added. 3 are ones that were removed before export.

Seems to be an issue with the page metadata. Is there a way to fix this without rebuilding from scratch? Can cornerstone page elements be copy/pasted between pages on separate domains in the same browser window?

Hey Kevin,

I’m glad you asked. Yes, you can copy an element and paste it to another site. That is what’s usually done if you’re in a hurry. The tutorial below shows how to copy and paste. Note that there’s Paste and Pasted Style options. Choose the Paste option if you want to paste the whole element.

I know about the pasting, but my question is for the ability to paste between domains or between separate browser windows. In the past, I have had issues trying to paste between domains.

Secondly, can I “clean up” the manifest/page so it no longer has references to past media? Can Cornerstone pages be migrated using a page/post import export plugin?

I’m trying to figure out the smoothest way to get cornerstone pages, headers/footers and layouts migrated to the production website once ready for publishing. If I used a tool like WP Migrate DB Pro, would I be able to pull content into my dev clone without losing changes?

Yes, I tested before replying.

No. You need to export using the Template Manager.

Theoretically, yes. Headers/Footers/Layouts/Pages are post types so if you know how to import them and their post meta, you might succeed in importing that way.

Please just note that we do not support or will provide support for this approach.

Thanks. I guess for any pages that have this issue with importing, I will need to copy/paste individual items.

When I try to copy paste a whole section, I am not able to paste without first creating a new section on the page being pasted into. Is that the expected behavior? Or is there a way to paste a full new section in the outline view ?

Hi Kevin,

You can add the section into the Outline view, but for that, you need to save that section as a template by clicking on the Make Section Template, and saving it. While creating a new page, you can click on the Use Template option and add the Section Template you saved.

image

Please remember that the saved sections are only available within the same website only, and not transferable to other website.

Thanks