Why My Imported Template is Blank?

Table of Contents

Sometimes when you import an Elementor template (large size) exported through UiChemy, it shows blank even though the JSON file has the data.

This happens due to a couple of reasons – 

Elementor Flexbox Container Not Enabled

One of the main reasons for a blank page template is that Elementor Flexbox Container is not enabled. When you export your Figma layout using UiChemy it uses Flexbox containers so if you haven’t enabled the Elementor Flexbox Container option from Elementor settings your template might show blank.

Enable Elementor Flexbox Container

To do so from the Dashboard, go to Elementor > Settings > Features, then select Active from the Flexbox Container dropdown and save the changes.

elementor flexbox container activate

Low MYSQL max_allowed_packet Size

In MySQL, when you send data to or receive data from the database, there’s a limit set by max_allowed_packet. If the data you’re trying to send or receive is larger than this limit, it won’t work properly and might cause errors.

We recommend setting max_allowed_packet > 5MB, so if your server has set a lower limit for max_allowed_packet in MYSQL, then you might face this issue, especially while importing a large template.

How to Increase the max_allowed_packet Size?

In most cases, you’ll face this problem in your local host setup.

Increase max_allowed_packet in Wamp

To increase the max_allowed_packet size in Wamp, follow the steps – 

  1. Start the Wamp Server.
  2. Once the server starts, click the Wamp icon in the taskbar.
  3. Then go to MySQL > MySQL settings > max_allowed_packet and then select the desired value.
wamp max allowed packet
  1. Once you have made the changes, restart MYSQL for the changes to take effect.

Increase max_allowed_packet in Xampp

To increase the max_allowed_packet size in Xampp, follow the steps –

  1. Open the Xampp Control Panel.
  2. Then in the MySQL row click on the Config > my.ini and it will open the my.ini file.
xampp mysql config
  1. In the my.ini search for max_allowed_packet, you’ll find it in a couple of places and change the value as per your requirement. Make sure to set the same value for both instances, then save the file.
xampp my ini
  1. Once done, restart MySQL for the changes to take effect.

Increase max_allowed_packet in LocalWP

To increase the max_allowed_packet size in LocalWP, follow the steps –

  1. Start the LocalWP app.
  2. Then select the site from the left panel and click on the Go to site folder.
localwp go to site folder
  1. Then open conf > mysql folder and open the my.cnf file.
  2. Search for max_allowed_packet and change the value as per your requirement and save the file.
localwp my cnf
  1. Then again, go back to the conf folder > php folder and open the php.ini file.
  2. Add or update the max_allowed_packet value as per your requirement and save the file.
localwp php ini
  1. Once done, click on Stop site and then Start site in the LocalWP app for the changes to take effect.

Increase max_allowed_packet in Live Server

Most good web hosting will have sufficient value for max_allowed_packet to import decent-size templates. 

If you are still facing this issue in a live server best option would be to contact your hosting provider and ask them to increase the max_allowed_packet size.

But if you want to do it yourself, you can check the following guides –

https://wp-staging.com/docs/increase-max_allowed_packet-size-in-mysql/

https://stackoverflow.com/questions/8062496/how-to-change-max-allowed-packet-size

https://dba.stackexchange.com/questions/45087/max-allowed-packet-in-mysql