Issues after installation or update

In this article

PCLZIP_ERR_BAD_FORMAT

Can't install or update Smart Slider, receiving a PCLZIP_ERR_BAD_FORMAT error message.

Another possible error message:  Update failed: Download failed. The checksum of the file (4a3b9...) does not match the expected checksum value (23173...).

Possible causes

1
You are using a warez/nulled version

If you haven't purchased Smart Slider Pro from us, but just downloaded it from a torrent or other warez/nulled website, that won't have a valid license and you won't be able to update it.

To be able to update Smart Slider you're required to have a license. You can get one by purchasing a plan that suits your needs.

If you downloaded Smart Slider from a warez/nulled website, be sure you perform a security check on your site after removing the warez version as warez plugins often contain malicious codes.

2
Imunify360 - Problem during update or installation
Imunify360 team confirmed that this problem happens from their filter:
"Developers confirm that the Proactive Defence rule 10006 creates false positives and blocks write operations. We are currently working on a solution.

Until the solution is available, please temporarily whitelist rule 10006 in Imunify360 > Proactive Defense > Detected Events > Actions."

So you should get in touch with your server host and ask them to whitelist this rule. Alternatively, you could follow the next point, but if Imunify360 won't get updated on your server, this issue could happen in the future too.

3
Workaround - Problem during update

WordPress uses stream to load files in pieces. This could have problems, because of the previous point's issue, that not all pieces are sent through, and some file parts will get lost. As your zip file becomes corrupted this way, you will get an error message about it. The problem will be fixed by Imunify360 soon, but for now, you could follow one of these solutions:

  • Modify a WordPress core file

    This file:
    \wp-includes\ class-requests.php

    has this code around line 84.:
    const BUFFER_SIZE = 1160;
    		
    Modify this value to anything else, like 1161:
    const BUFFER_SIZE = 1161;
    		

    This will modify the size of the WordPress stream given pieces. This way you can try to update again. With this modification our zip file was always downloaded properly based on our tests.

  • Do an alternative update

    We aren't sure if this problem would come up in the future too, so it is possible, that you are only getting this error with the current Smart Slider version's zip file. If you don't want to modify your WordPress core file right now or you don't have access to it, you could try an alternative update instead, and maybe in the future the PCLZIP_ERR_BAD_FORMAT problem won't come back.

4
Download issue - Problem during installation

If you wanted to do an installation, so you downloaded a zip file from our website or with the Free version maybe from WordPress.org,it could be, that when our zip file was downloaded something bad happened, and your download didn't worked, producing a zip file with an error. To make sure your zip file doesn't have an error, just try to unzip it into your computer. If that works, the server's unzipping shouldn't have an issue with it, unless the server has a different issue:

5
License issue - Problem during update

If you are using the Pro version of Smart Slider and your license is not activated on your website, or there is an issue happening which blocks the license connection, then your website won't receive our zip file.

On the Dashboard you should check the Info popup. This writes out "Your license is active" if you have activated the license. If your license is not active, activate it!

There is a very common server problem, which makes licenses not work anymore. So even if your license seems active, continue with the steps of this documentation to test it!

If the license is active, go to the Help center. Under "Possible conflicts" you should press the "Test connection" button. This will show you whether or not there is an issue with the connection.

  • If everything seems fine, go to the next possible cause.
  • But if it isn't fine, check out the "Debug information" error log. A common error message you might find is the "certificate has expired" message. If you see that within your log, check out this documentation. But if you do not see that within your log, contact us and send the log from the"Debug information". We will tell you what you should ask from your server host to fix.
6
Server's Modsecurity

Your server host might uses a Modsecurity rule, which blocks our zip file for some reason.You should contact your server host and ask them to take a look at their logs. They should see when a Modsecurity rule blocks something and they should be able to figure out the exact source of this issue, and they should turn off that Modsecurity rule. If they aren't sure, just ask them to turn off all Modsecurity rules, and take a look, if the PCLZIP_ERR_BAD_FORMAT still happens.

Most likely  Imunify360 is causing this issue, as you can read above.

7
Server's unzipping program is outdated

The last possible cause of this PCLZIP_ERR_BAD_FORMAT error message is, that your server's unzipping program is outdated or it has an error, and it's not able to unzip our zip file.

You should contact your server host to resolve this error.

Alternative solution

You can use the FTP installation/updating method, where you are unzipping the zip file manually, so your server doesn't have to do it:

Installation:

Update:

This won't fix the PCLZIP_ERR_BAD_FORMAT error, but you won't have to deal with it right now.

PHP Fatal error

Common errors:

  • Fatal error: Class 'N2PluginBase' not found
  • Fatal error: Class 'N2CacheImage' not found
  • require_once(): Failed opening required [some file].php

The problem is caused by that installing/updating your Smart Slider 3 didn't worked, some of the files are missing probably because of a server issue. A reinstallation (which is the same as the alternative update) would solve the problem!

You can find instructions in these articles on how to perform an alternative update on WordPress and on Joomla.

JavaScript error

Common JavaScript error TypeError: N2Classes.NextendAnimationManager is not a constructor

The problem is caused by that updating your Smart Slider 3 didn't worked, some of the previous files are still used probably because of a server issue. A reinstallation (which is the same, as the alternative update) would solve the problem!

You can find instructions in these articles on how to perform an alternative update on WordPress and on Joomla.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.