Problems with "Import Layout"

Hello everyone, I have a problem to import a layout between CMSs. The Layout is exported from CMS 1.8.1 and I try to import into other 1.8.1 and 1.8.13 and both failed with an “Internal Server Error”.
The CMSs is installed manually, and I don’t have the ZeroMq in my server. My upload size is limited to 50mb,but the layout.zip has 13.mb.

This is the images from log, test.

If anyone can help me with my problem, I appreciate it!

Thank you for your message. I can see from the fault/collect entries in your logs that you have used the Report Fault option in your CMS to capture debug logs while importing the Layout. Can you provide all of the logs captured so I can take a closer look at what is happening?

If you do not have a troubleshoot.zip file from Report Fault, this would be the easiest way to ensure all of the logs during the import issue are captured and saved in a csv file that I can take a look through. Below are the instructions on how to do this, just in case:

  • Open the Report Fault option in your CMS, using an Admin User.
  • Follow the steps and Turn on Debugging when the option appears.
  • Continue to follow the steps and click Open in New Window when the option appears.
  • In the new Window (do not close the original window/tab) try to import the Layout again so that you receive the error that we want to capture.
  • Once the you see the error message, close the new window and return to the original one.
  • Continue to follow the Report Fault steps and select Collect and save when the option appears.
  • Continue with the steps and choose Turn Off debugging when the option appears.
  • You can now leave Report Fault.

Once you have done this, please pass on the troubleshoot.zip file that contains the logs. If you can do this for both the 1.8.1 and 1.8.13 CMS so I can see why the issue is occurring with both, along with the exported Layout you are trying to import, I can then look into what is causing this issue.

Many Thanks.

This is an update on the above issue. The Import error was caused by an extra directory in the exported Layout, which meant the files were not being imported successfully.

When a layout is exported, it is received as a zip file. If you extract the contents of the zip file, you should receive some xml and json files, as well as a the media items used in your Layout. On this occasion, when the exported Layout was unzipped, instead there was a folder named after the Layout. Inside that folder were the expected xml and json files.

Because of this folder that the files were contained in, the CMS could not locate the files it was expecting to find, returning an error. The solution was to simply remove that extra directory and zip the files up again. This version of the exported Layout will then import without issue.

Many Thanks.