Can't import template sliders - zip_open function is missing

Sample slider error message:

  • The zip_open function is missing from your server. ZipArchive has to be enabled on your server to use this functionality! Ask your server host to enable it.

Solution:

The  zip_open function is a core php function, so it should be enabled by default. You should do as the message says, contact your server host to enable it and enable the whole ZipArchive class.

Some servers have options on their cPanel dashboard to enable this, like  GoDaddy, so if you google "ZipArchive" and your hosting company's name, you might be able to solve this issue yourself.
Update for GoDaddy:
You might also need to select the "PHP version" from the "Software" version, and then enable the "Zip" with its checkbox.

How to check if the Zip Archive is enabled on the server?

1
Create an info.php file
Create an info.php file and put this code to the file:
<?php phpinfo(); ?>
	

then upload this file to your server and open it using your browser. E.g. http://example.com/info.php Look for a section like this:

If you can't find it, your Zip Archive class is not enabled. Contact your host and ask them to enable it.

2
Test the function directly
Create a test.php file and put this code to the file:
<?php 
if(function_exists('zip_open')){
    echo 'ok';
} else {
    echo 'not ok';
}
?>
	

then upload this file to your server and open it using your browser. E.g. http://example.com/test.php

If it writes out "not OK", then your Zip Archive class is not enabled. Contact your host and ask them to enable it.