TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.75k stars 431 forks source link

How to Instal Redux Plugin With TGM Plugin #790

Closed bobbykumar1 closed 4 years ago

bobbykumar1 commented 4 years ago

plugin bundled with a theme its not allow in WordPress when i theme upload

        array(
            'name'               => 'TGM Example Plugin', // The plugin name.
            'slug'               => 'tgm-example-plugin',
            'source'             => get_stylesheet_directory() . '/lib/plugins/redux-framework.zip', // The plugin source.
            'required'           => true,
            'external_url'       => '',
        ),

Downloading installation package from https://github.com/bobbykumar1/redux-framework/blob/master/redux-framework.zip

Unpacking the package…

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

  array(
            'name'               => 'Redux Framework',
            'slug'               => 'redux-framework',
            'source'             => 'https://github.com/bobbykumar1/redux-framework/blob/master/redux-framework.zip',
            'required'           => true,
            'external_url'       => 'https://github.com/bobbykumar1/redux-framework/blob/master/redux-framework.zip',
            'force_activation'   => true,
        ),
jrfnl commented 4 years ago

That's because the URL doesn't actually point to a zip file for download.

Go to the URL yourself and see that no zip is offered for download, it just displays the Github page for that file.

Try this: https://github.com/bobbykumar1/redux-framework/raw/master/redux-framework.zip

bobbykumar1 commented 4 years ago

can you guide me how create you url like this its very helpfull for me

https://github.com/bobbykumar1/redux-framework/raw/master/redux-framework.zip

jrfnl commented 4 years ago

@bobbykumar1 If you go to this page: https://github.com/bobbykumar1/redux-framework/blob/master/redux-framework.zip (which shows the GH page, but doesn't start a download), you will see a "download" button, copy the link which that button links to and you have the correct URL.

image

bobbykumar1 commented 4 years ago

thankyou so much

jrfnl commented 4 years ago

@bobbykumar1 Can we close this issue then ?

bobbykumar1 commented 4 years ago

there is issue with repositories can we make it private ?

jrfnl commented 4 years ago

@bobbykumar1 What do you mean ?

bobbykumar1 commented 4 years ago

https://github.com/bobbykumar1/redux-framework/raw/master/redux-framework.zip Screenshot (27)

bobbykumar1 commented 4 years ago

https://prnt.sc/s3epg5

jrfnl commented 4 years ago

Well, I'm still not sure what your question is now, but the intend of the feature when developed was to allow for tagged release zips of plugins which are being developed on GH to be installed via TGMPA. Not for random zips which are part of the repo file system to be installable.

bobbykumar1 commented 4 years ago

when i open this link google chrome tab file are download but incognito mode show page not found but link are right

https://github.com/bobbykumar1/redux-framework/raw/master/redux-framework.zip