Legacy Components Causing CS Render Faults

Hi Charlie,

I have been increasingly coming upon an issue on older site, which used converted Global Blocks to Components. This comes from the days before Component Export was the norm.

If a Component Element is present on a page, the CS preview fails with the usual PHP error message and no preview.

As soon as I export the Component and use the export in place of the Component Element, all previews are back to normal.

Is this something which can be fixed, or is it a matter of digging through all Components and pages to find the problems? Front-end render is not affected in any way - only in CS.

Many thanks,
Christopher

I guess if you don’t see the issue when you export and import I can’t ask for a .tco file? Can you send me a site with this issue currently happening? It might give me additional context. Have a great weekend.

Here is a test page in draft mode (details in SN)

If you head down the page to the bottom of the page in CS, look into the Enquire section. It has two items in it.

  • Component element - which fails and causes the CS preview error.
  • Same component, but using the Export parameter feature.

Delete the first and refresh the page - without publishing - CS preview will work again!

image

Hope that helps!

Have a great weekend,
Christopher