Skip to content

Download issue....PCLZIP_ERR_BAD_FORMAT  #35

@satbav

Description

@satbav

Hi,

I seem to have a working version of the updater and am using it to auto download an update from a private repository on BitBucket.

The error the Wordpress updater gives is:

Downloading update from https://bitbucket.org/username/product-name/get/master.zip…

Unpacking the update…

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature.

I'm struggling to see what the issue is now. It's happening on localhost and on my development server.

I've used the method described to integrate within a plugin. Copied the 'git-plugin-updates' to the root of my plugin folder. And added:

To initiate actions:
add_action( 'plugins_loaded', array($this, 'myplugin_git_updater' ));
add_filter( 'gpu_use_plugin_uri_header', '__return_true' );

The method:
public function myplugin_git_updater() {
if ( is_admin() && !class_exists( 'GPU_Controller' ) ) {
require_once dirname( FILE ) . '/git-plugin-updates/git-plugin-updates.php';
add_action( 'plugins_loaded', 'GPU_Controller::get_instance', 20 );
}
}

It may be worth noting that I've also added an action that I think turns off ssl verification:
add_action('http_request_args', array($this, 'no_ssl_http_request_args' ), 10, 2);

public function no_ssl_http_request_args($args, $url) {
$args['sslverify'] = false;
return $args;
}

Without this, I get this issue:
Downloading update from https://bitbucket.org/username/product-name/get/master.zip…

Download failed. SSL certificate problem: unable to get local issuer certificate

My main issue is the bad zip issue, the internet seems to think it's lack of space, an incorrect http.php file, that's all though, and I'm not sure why I can't find a solution for this?

Really hope you can help,

Thanks,
Bav

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions