Git Product home page Git Product logo

composer-wp-pro-plugins's People

Contributors

benharrop avatar davidlatelier avatar davidwebca avatar jarstelfox avatar jessedyck avatar junaidbhura avatar mcaskill avatar szepeviktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

composer-wp-pro-plugins's Issues

Gravityforms Recaptcha add-on not available

We're trying to install Gravity Forms' Recaptcha add-on (gravityformsrecaptcha) but it doesn't look to be available. It's in the list of add-ons referenced here: https://docs.gravityforms.com/gravity-forms-add-on-slugs/ which is in your documentation, but it says it can't find the package when we trying to install it

In PackageDiscoveryTrait.php line 368:
                                                                                                                                                                                                         
  Could not find a matching version of package junaidbhura/gravityformsrecaptcha. Check the package spelling, your version constraint and that the package is available in a stability which matches yo  
  ur minimum-stability (dev).   

How do we pull the latest version of each plugin?

I am requiring each plugin just fine but I am confused on how we know when to bump and what version to bump to for each plugin. For example, I have to log in to ACF and view my license to see that the latest version is 5.9.5 and the same for WP All Import. The one that is bothering me is WP All Import ACF Add-on. I don't know the latest version number and cant use Composer ^x.x.x to source the latest. Is this how everyone else is using it?

Must-Use Plugin Issue

I'm having an issue getting Gravity Forms to install as a must-use plugin. ACF Pro goes to the mu-plugins directory as expected, but Gravity Forms is still going to plugins

"extra": {
    "installer-paths": {
      "web/app/mu-plugins/{$name}/": [
        "type:wordpress-muplugin",
        "junaidbhura/advanced-custom-fields-pro",
        "junaidbhura/gravity-forms"
      ],
      "web/app/plugins/{$name}/": [
        "type:wordpress-plugin"
      ],
      "web/app/themes/{$name}/": [
        "type:wordpress-theme"
      ]
    },
    "wordpress-install-dir": "web/wp"
  }

Any advice here?

Support/documentation: what is registered URL?

I want to use this plugin to require WP All Import, but I have no idea what the "registered url" env variable is supposed to be. Can you provide some advice on where to find that in my wpallimport.com account?

pathinfo(): Argument #1 ($path) must be of type string, null given

Hi there,

Since composer versions 2.3+, I'm getting this error when running composer install with gravityforms:

In FileDownloader.php line 439:
                                                                      
  [TypeError]                                                         
  pathinfo(): Argument #1 ($path) must be of type string, null given

Exception trace:
  at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:439
 pathinfo() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:439
 Composer\Downloader\FileDownloader->getFileName() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:143
 Composer\Downloader\FileDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/ZipDownloader.php:100
 Composer\Downloader\ZipDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:228
 Composer\Downloader\DownloadManager->Composer\Downloader\{closure}() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:240
 Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:105
 Composer\Installer\LibraryInstaller->download() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:353
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:282
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:759
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:588
 Composer\Installer->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Installer.php:279
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:241
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1015
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:334
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:83
 require() at /usr/local/bin/composer:29

Any idea what's going on?
Thanks!

Use auth.json

Composer provides support for a file for holding authentication keys, auth.json. It's typically used for basic auth but can also be used for GitHub/GitLab auth.

It should be possible to pull config values from that file with something like…

$config = $this->composer->getConfig();

$config->get( 'my-key-in-auth-json' );

This would allow you to avoid the .env dependency while leveraging a native Composer mechanism.

ACF announces official Composer support for installing ACF PRO

Announcement and documentation.

We’ve add a new section to the licenses panel on the Licenses​​ tab inside My Account. Clicking Install using Composer for your license will reveal a panel where you can generate an auth.json credentials file to be used with Composer.

// composer.json
{
	"require": {
		"wpengine/advanced-custom-fields-pro": "<constraint>"
	},
	"repositories": [
		{
			"type": "composer",
			"url": "https://connect.advancedcustomfields.com"
		}
	]
}
// auth.json
{
  "http-basic": {
    "connect.advancedcustomfields.com": {
      "username": "<license_key>",
      "password": "<site_url>"
    }
  }
}

It's unfortunate you were not mentioned in the "Shout out to the maintainers of these packages".

The "https://www.wpallimport.com/" file could not be downloaded (HTTP/2 503 )

Composer started erroring on me yesterday after working fine for months, when trying to grab WPAI

In CurlDownloader.php line 623:

  The "https://www.wpallimport.com/" file could not be downloaded (HTTP/2 503 )

Running with debug doesnt change things either:

image

Updating to v1.5.0 didnt change anything either...

Any ideas?

gravity forms update issue

Hi Junaid,

Mo from boylen here, was just trying to update one of our site's plugins(gravity forms), i'm currently on composer version 1.10.26 as some of the newer versions were having issues when updating some older sites. I get this error saying " [UnexpectedValueException]
Expected a valid download URL for package junaidbhura/gravityforms" . Any advise on how to go about resolving this ? the current gravity forms version for this particular site is at 2.4.11 and i'm attempting to upgrade this as composer stops at updating gravity forms and just exits without updating the remaining plugins.

I've also tried updating to the latest composer version and clearing the cache and trying it again but no luck so just rolledback to composer 1.
image

Composer PHP Fatal error

Hi Junaid,

We're encountering a composer error when deploying via Buddyworks. The execution logs have been attached for your reference. The error occurs during the "Run Deploy, Composer, NPM, and CSS" step.

The specific error message is as follows:

Connected. Executing commands...
cd /home/ENCRYPTED/webapps/immanuel
composer clear-cache
PHP Fatal error: Uncaught Error: Class 'PhpOption\Option' not found in /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php:50
Stack trace:
#0 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php(26): Dotenv\Store\File\Reader::readFromFile()
#1 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/FileStore.php(51): Dotenv\Store\File\Reader::read()
#2 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Dotenv.php(157): Dotenv\Store\FileStore->read()
#3 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Dotenv.php(170): Dotenv\Dotenv->load()
#4 /home/ENCRYPTED/webapps/immanuel/vendor/junaidbhura/composer-wp-pro-plugins/Installer.php(95): Dotenv\Dotenv->safeLoad()
#5 /home/ENCRYPTED/webapps/immanuel/vendor/junaidbhura/composer-wp-pro-plugins/Installer.php(54): Junaidbhura\Composer\WPProPlugins\Installer->loadDotenv()
#6 phar:///usr/sbin/composer/src/Composer/Plugin/PluginManager.php(237): Junaidbhura\Composer\WPProPlugins\Installer->activate()
in /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php on line 50
Fatal error: Uncaught Error: Class 'PhpOption\Option' not found in /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php:50
Stack trace:
#0 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php(26): Dotenv\Store\File\Reader::readFromFile()
#1 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/FileStore.php(51): Dotenv\Store\File\Reader::read()
#2 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Dotenv.php(157): Dotenv\Store\FileStore->read()
#3 /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Dotenv.php(170): Dotenv\Dotenv->load()
#4 /home/ENCRYPTED/webapps/immanuel/vendor/junaidbhura/composer-wp-pro-plugins/Installer.php(95): Dotenv\Dotenv->safeLoad()
#5 /home/ENCRYPTED/webapps/immanuel/vendor/junaidbhura/composer-wp-pro-plugins/Installer.php(54): Junaidbhura\Composer\WPProPlugins\Installer->loadDotenv()
#6 phar:///usr/sbin/composer/src/Composer/Plugin/PluginManager.php(237): Junaidbhura\Composer\WPProPlugins\Installer->activate()
in /home/ENCRYPTED/webapps/immanuel/vendor/vlucas/phpdotenv/src/Store/File/Reader.php on line 50

We initially suspected a PHP version mismatch, as the server is running PHP 7.4, while the Composer file was configured for PHP 7.1. We have since updated the Composer file to reflect PHP 7.4, and we are now able to run Composer and update our local copy of the site successfully. However, the deployment to the server is still failing with the error mentioned above.

I have also attached the Composer file for your reference.

Any insights or suggestions you can provide to resolve this issue would be greatly appreciated.

Thank you, and please let me know if you need any further information.

Best regards,

  • Adam (Boylen Support)

composer-json.txt

Ninja Forms download fails

This ticket is mainly for informational purposes.

For the past two weeks, this Composer plugin has been unable to fetch the download URL for Ninja Forms add-ons.

If I change the internal API request from GET to POST, it works.

On May 24th, I contacted support about the issue. They replied that they would look into it.

On June 9th, I figured out why GET requests are not working:

Ninja Forms introduced a cookie consent banner that stores a nf_cc cookie.

If this cookie is not defined when making the API request, their server returns the HTML home page.

If this cookie is defined when making the API request, their server returns the expected JSON response.

curl -X GET -I -H 'Cookie: nf_cc=' 'https://ninjaforms.com/?edd_action=get_version&license=XXXXXX&item_name=File+Uploads&url=ZZZZZ&version=3.3.15'

I've updated support about the issue. Awaiting their response.

Class Wpml does not comply with psr-4 autoloading standard

Hi Junaid,

Really happy to see WPML support in your latest release, awesome!
However when I upgrade to the latest version, I get this warning:

Class Junaidbhura\Composer\WPProPlugins\Plugins\Wpml located in ./vendor/junaidbhura/composer-wp-pro-plugins/plugins/WPML.php does not comply with psr-4 autoloading standard. Skipping.

Are you already aware of this?

* is not a zip archive.

Hi! Thanks for creating this plugin, this is exactly what I would need for Polylang pro. There seems to be a problem right now though and your repo seems pretty recent, so I thought I'd leave an issue either way.

I get this error when using "composer update" : 'web/app/mu-plugins/advanced-custom-fields-pro//77d11e6a97cd4d47687579fa4009c261' is not a zip archive.

It seems like there's a double "//" somewhere in your code so that the zip file isn't found... but I'm saying that without having taken the time to look at it properly.

Let me know if you know what this is about!

(Using Bedrocks as WP install)

Can't download specific versions of EDD-hosted plugins

While working on my PR (#9) I noticed that the behaviour around EDD-hosted plugins is a little confusing.

It turns out, the EDD Licensing API check_version endpoint only returns the latest version of a plugin.

I believe, generally, the version parameter is ignored or only used for analytics/tracking purposes.

Caveat: It's possible that some EDD installs were customised to allow downloading older versions, but I have tested a few different EDD sites for plugins I own, and haven't been able to find any that do.

Version mismatch when trying to install wp-all-import-pro 4.7.9

Trying to install wp-all-import-pro version 4.7.9 with composer with this in the composer.json:

    {
      "type": "package",
      "package": {
        "name": "junaidbhura/wp-all-import-pro",
        "version": "4.7.9",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://www.wpallimport.com"
        },
        "require": {
          "junaidbhura/composer-wp-pro-plugins": "*"
        }
      }
    },   

Results in this error:
image

I can workaround it by setting the version to 4.8.0, but shouldn't earlier versions be available as well? Also, this did work a few days prior.

BUG: Zips are coming back empty. I think!

Hi Junaid.

Great little app you have here, but I can't get it to work with Composer 1.9.1 or 1.9.0. (I've not tried rolling back to a previous version.)

image

It always fails, and I have tried it on ACF, Gravity Forms, All Import Pro, etc. All experience the same issue.

Now I checked that it wasn't an issue with Dotenv not being read properly, but that's not the issue. The file download URLs are being correctly created, including the licence key/s.

(I've also tested the EDD download links created for All Import Pro, and they're getting correctly created too.)

So I'm not sure what to think right now. It seems to be Composer quitting too soon on the downloads. Is there a timeout issue??

Can you please try with the latest Composer and see what it does for you?

Thanks!

ACF Extended asks for authentication when installing

Hi,

I'm installing ACF Pro, ACF Extended Pro, and Gravity Forms using your awesome composer package.

The other 2 have worked flawlessly, but when composer is installing ACF Extended, it prompts me to input a username and password

My composer.json has the repos set up:

"repositories": [
        {
            "type": "package",
            "package": {
                "name": "junaidbhura/acf-extended-pro",
                "version": "0.8.9.3",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.acf-extended.com/"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "junaidbhura/advanced-custom-fields-pro",
                "version": "6.1.4",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.advancedcustomfields.com/"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "junaidbhura/gravityforms",
                "version": "2.7.4",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.gravityforms.com/"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        }
    ]

and the packages added to require:

"require": {
        "junaidbhura/composer-wp-pro-plugins": "^1.8",
        "junaidbhura/acf-extended-pro": "*",
        "junaidbhura/advanced-custom-fields-pro": "*",
        "junaidbhura/gravityforms": "*"
    },

I input the ACF Extended Pro key and the URL into the .env file (as well as the other plugins keys).

As I mentioned ACF Pro and Gravity both work flawlessly , Only ACF Extended prompts me. Is this normal behaviour for ACF Extended using this tool? Any guidance would be very appreciated, and thanks for your awesome work!

Weird error when composer install through a docker image

In my docker custom image I do a:

RUN composer install --no-dev;

It worked fine until I added WP All import packages.

Now I have this error:

#17 2.063   - Downloading harvesthq/chosen (v1.8.7)
#17 2.069 
#17 2.069 In FileDownloader.php line 439:
#17 2.069                                                            
#17 2.069   [TypeError]                                              
#17 2.069   pathinfo() expects parameter 1 to be string, null given  
#17 2.069                                                            
#17 2.069 
#17 2.069 Exception trace:
#17 2.069   at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:439

my composer.json is like this:

        "wp-all-import-pro": {
            "type": "package",
            "package": {
                "name": "junaidbhura/wp-all-import-pro",
                "version": "4.6.9",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.wpallimport.com"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        "wp-all-export-pro": {
            "type": "package",
            "package": {
                "name": "junaidbhura/wp-all-export-pro",
                "version": "1.7.0",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.wpallimport.com"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        "wpai-linkcloak-add-on": {
            "type": "package",
            "package": {
                "name": "junaidbhura/wpai-linkcloak-add-on",
                "version": "1.1.5",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.wpallimport.com"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        "wpae-user-add-on-pro": {
            "type": "package",
            "package": {
                "name": "junaidbhura/wpae-user-add-on-pro",
                "version": "1.0.6",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.wpallimport.com"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        },
        "wpai-user-add-on": {
            "type": "package",
            "package": {
                "name": "junaidbhura/wpai-user-add-on",
                "version": "1.1.6",
                "type": "wordpress-plugin",
                "dist": {
                    "type": "zip",
                    "url": "https://www.wpallimport.com"
                },
                "require": {
                    "junaidbhura/composer-wp-pro-plugins": "*"
                }
            }
        }
...
        "junaidbhura/wp-all-import-pro": "*",
        "junaidbhura/wp-all-export-pro": "*",
        "junaidbhura/wpai-linkcloak-add-on": "*",
        "junaidbhura/wpae-user-add-on-pro": "*",
        "junaidbhura/wpai-user-add-on": "*",

And I'm still able to download the plugin in local when I do a composer install/update, I have my .env file with the right values.

Do you reproduce this issue?

Support for "Polylang for WooCommerce"

I have just started on a project that needs both "Polylang Pro" and "Polylang for WooCommerce"
If I understand the code correctly, adding support for "Polylang for WooCommerce" should be pretty straight forward.
Would it be ok if I submitted a pull request that added support for "Polylang for WooCommerce" as well?

ZIP archives in cache always use the same filename

When I bump the version number of a premium plugin to update it, I have to delete the cached ZIP archive before running composer update because it's always using the same file.

CLI:

$ composer update junaidbhura/advanced-custom-fields-pro
Loading composer repositories with package information
Updating dependencies (including require-dev)                             
Package operations: 0 installs, 1 update, 0 removals
  - Updating junaidbhura/advanced-custom-fields-pro (5.7.10 => 5.7.13): Loading from cache

Cache:

~/.composer/cache/files/junaidbhura/advanced-custom-fields-pro/a1d4e989f9355a95800bd11210a4af208e067819.zip

composer.json

"junaidbhura/advanced-custom-fields-pro": "*"
{
    "type": "package",
    "package": {
        "name": "junaidbhura/advanced-custom-fields-pro",
        "version": "5.7.10",
        "type": "wordpress-muplugin",
        "dist": {
            "type": "zip",
            "url": "https://connect.advancedcustomfields.com/"
        },
        "require": {
            "junaidbhura/composer-wp-pro-plugins": "*"
        }
    }
}

This issue occurs with every plugin supported by this Composer plugin.

Am I doing something wrong?

Thanks

WP All Import download fails.

See error in screenshot. This just started happening today - not sure why.

I looked at the source code and tried to reconstruct the download URL like so:

https://www.wpallimport.com/?edd_action=version&license=[MY_LICENSE_KEY]&item_name=WP%20All%20Import&url=https%3A%2F%2Ftest.com%2F&version=4.7.9

That didn't work so I'm guessing that URL has changed unless I'm doing something wrong.

EDIT: I had an issue with the URL. This one works:
https://www.wpallimport.com/?edd_action=get_version&license=[MY_LICENSE_KEY]&item_name=WP%20All%20Import&url=https%3A%2F%2Ftest.com%2F&version=4.7.9

I'm not sure what could be the issue now. If it matters, I'm using Composer 2.4.2.

image

Request for feedback: Should this plugin exist?

Hello everyone 👋

I'm the author of this plugin.

The original idea behind this plugin was to build a solution to fill the gap in WordPress world for package management for Pro plugins.

But as time has progressed, it appears there's no real consensus in the WordPress community about how this should be handled.

There should ideally be a standard or protocol for this created by WordPress core itself, so everyone can follow the same rules.

To add to this complexity, vendors like WP All Export / Import and others add Cloudflare to limit pings to their infrastructure, and rightly so, which makes this plugin unreliable for production use.

I have personally stopped using this plugin and have stopped recommending its use to others. I've found its actually more reliable to have private Git repos of plugins, and to just add those to any projects I'm working on. This way there's a near 100% guarantee of success every time. And that's what it comes down to.

Is it really worth spending our time to continue to support this solution to save just a little bit of engineering time? Or are we just adding more complexity to the WordPress world?

Please let me know what you think, and how you use this plugin, and what problems it solves for you!

Failed to execute (9) unzip -qq -o 'web/app/plugins/wp-all-import-pro// ...

Hey all,

Trying to use the all import/export pro plugin part of this.

Seems that I am getting a similar error as the issues referenced below (and commented in issue 18):
#18
#14
#1

Screenshots of my error:
Screen Shot 2021-02-24 at 12 40 46 PM

Text version:

[RuntimeException]                                                                                     
  Failed to execute (9) unzip -qq -o 'web/app/plugins/wp-all-import-pro//7d7969993593a13942741e4a52c3e8  
  29' -d '/Users/jesstucker/Code/redacted/site/vendor/composer/b8cc9703'                  
                                                                                                         
  [web/app/plugins/wp-all-import-pro//7d7969993593a13942741e4a52c3e829]                                  
    End-of-central-directory signature not found.  Either this file is not                               
    a zipfile, or it constitutes one disk of a multi-part archive.  In the                               
    latter case the central directory and zipfile comment will be found on                               
    the last disk(s) of this archive.                                                                    
  unzip:  cannot find zipfile directory in one of web/app/plugins/wp-all-import-pro//7d7969993593a13942  
  741e4a52c3e829 or                                                                                      
          web/app/plugins/wp-all-import-pro//7d7969993593a13942741e4a52c3e829.zip, and cannot find web/  
  app/plugins/wp-all-import-pro//7d7969993593a13942741e4a52c3e829.ZIP, period.   

I noticed that some previous fixes had occurred on Installer.php but I must be honest in admitting I am terribly new to composer / wp / etc... and not really sure where / what to inspect to catch the error.

@junaidbhura asked me to post my versions in the prior post; here they are again:

composer.json:

...
{
      "type": "package",
      "package": {
        "name": "junaidbhura/wp-all-import-pro",
        "version": "4.6.5",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://www.wpallimport.com"
        },
        "require": {
          "junaidbhura/composer-wp-pro-plugins": "*"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "junaidbhura/wp-all-export-pro",
        "version": "1.6.4",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://www.wpallimport.com"
        },
        "require": {
          "junaidbhura/composer-wp-pro-plugins": "*"
        }
      }
    }
...
 "require": {
    ...
    "junaidbhura/wp-all-import-pro": "*",
    "junaidbhura/wp-all-export-pro": "*"
  },

Perhaps I will also add that I am using Bedrock / Roots / Trellis / Sage 10
Also my assumption is that I am using the 1.2.0 version of this plugin (composer-wp-pro-plugins)

Love what you're doing, managing these paid plugins is a headache!

Sincerely,
Jess

WP All Import and WP All Export Addons not working

Hi,
Great composer helper. I was able to install the WP All Import Pro and All Export Pro plugins. But when It try the WP All Import ACF and Export addon its not working.
Getting this error

 [RuntimeException]                                                           
  Failed to execute (9) unzip -qq -o 'wp-content/plugins/wpae-acf-add-on//821  
  b18b02e9f8fee03811f238377cf65' -d '/Applications/MAMP/htdocs/clancy_dev/cla  
  ncy-cards-backend/vendor/composer/acc4feae'                                  
                                                                               
  [wp-content/plugins/wpae-acf-add-on//821b18b02e9f8fee03811f238377cf65]       
    End-of-central-directory signature not found.  Either this file is not     
    a zipfile, or it constitutes one disk of a multi-part archive.  In the     
    latter case the central directory and zipfile comment will be found on     
    the last disk(s) of this archive.                                          
  unzip:  cannot find zipfile directory in one of wp-content/plugins/wpae-acf  
  -add-on//821b18b02e9f8fee03811f238377cf65 or                                 
          wp-content/plugins/wpae-acf-add-on//821b18b02e9f8fee03811f238377cf6  
  5.zip, and cannot find wp-content/plugins/wpae-acf-add-on//821b18b02e9f8fee  
  03811f238377cf65.ZIP, period.  

I am using this

{
      "type": "package",
      "package": {
        "name": "junaidbhura/wpae-acf-add-on",
        "version": "1.0.2",
        "type": "wordpress-plugin",
        "dist": {
          "type": "zip",
          "url": "https://www.wpallimport.com"
        },
        "require": {
          "junaidbhura/composer-wp-pro-plugins": "*"
        }
      }
    }

In .env file I have
WP_ALL_IMPORT_PRO_KEY
WP_ALL_EXPORT_PRO_KEY

Do I need to add something else in .env file for addons ?

Poylang Pro Installation fails

Hi there,
thanks a lot for the very useful package!

It worked all the time very well with Polylang Pro. But since yestarday I suddenly got the following errors on all remote servers when running composer install:

In ZipDownloader.php line 220:
                                                                               
  '/.../07032023_131249/vendor/composer/tmp-30335bd8a390016b462a12fdd3b5d7f2' is not a zip archive.

With the latest update of this package to v1.7.0 it got more specific:

In AbstractEddPlugin.php line 26:

  Expected a valid download URL for package junaidbhura/polylang-pro

or

In ZipDownloader.php line 220:
                                                                                                                    
  '/...vendor/composer/tmp-6dcacdf4851c8e8d9b80e9690b4d85d9' is not a zip archive. 

I already reached out to Polylang Support, but they said that they have not changes anything on their side.

Kind regards,

Philipp

PSR-4 Incompatibility

class Wpml extends AbstractPlugin {

I think the Class name should be WPML to avoid the notice:
Class Junaidbhura\Composer\WPProPlugins\Plugins\Wpml located in ./vendor/junaidbhura/composer-wp-pro-plugins/plugins/WPML.php does not comply with psr-4 autoloading standard. Skipping.

Gravity forms installs no longer work

When trying to install gravity forms via the suggested method, the install fails and complains:

Failed to extract junaidbhura/gravityforms: (9) '/usr/bin/unzip' -qq '.vendor/composer/tmp-939b2a1539fb8b3eac8b086f6a0c67ec' -d './vendor/composer/9248f9de'

This is because the download url returned from the gravity forms plugin is empty, because gravityhelp.com is down/disappeared.

This can be resolved by updating the domain in the getDownloadUrl method, from www.gravityhelp.com to gravityapi.com (stolen from gtap-dev/gravityforms-composer-installer#17)

Polylang username & password

Hi @junaidbhura, thank you for creating this package! I just have a question regarding Polylang.

What URL should I put in the POLYLANG_PRO_URL variable? I've added the download URL from Polylang but then I get asked for my username and password.

Is there someway that we can add these to the package as wel as an env variable? I ask because I would like to use your package in combination with continuous delivery.

Thanks again for your work and look forward to hearing from you.
-Alexander

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.