{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/13497","repository_url":"https://api.github.com/repos/Automattic/jetpack","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/13497/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/13497/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/13497/events","html_url":"https://github.com/Automattic/jetpack/issues/13497","id":496009379,"node_id":"MDU6SXNzdWU0OTYwMDkzNzk=","number":13497,"title":"Incompatibility with a WP Composer installation","user":{"login":"LeoColomb","id":846943,"node_id":"MDQ6VXNlcjg0Njk0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/846943?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoColomb","html_url":"https://github.com/LeoColomb","followers_url":"https://api.github.com/users/LeoColomb/followers","following_url":"https://api.github.com/users/LeoColomb/following{/other_user}","gists_url":"https://api.github.com/users/LeoColomb/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoColomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoColomb/subscriptions","organizations_url":"https://api.github.com/users/LeoColomb/orgs","repos_url":"https://api.github.com/users/LeoColomb/repos","events_url":"https://api.github.com/users/LeoColomb/events{/privacy}","received_events_url":"https://api.github.com/users/LeoColomb/received_events","type":"User","site_admin":false},"labels":[{"id":1361264579,"node_id":"MDU6TGFiZWwxMzYxMjY0NTc5","url":"https://api.github.com/repos/Automattic/jetpack/labels/Jetpack%20DNA","name":"Jetpack DNA","color":"9ab5ea","default":false},{"id":470168891,"node_id":"MDU6TGFiZWw0NzAxNjg4OTE=","url":"https://api.github.com/repos/Automattic/jetpack/labels/[Pri]%20Normal","name":"[Pri] Normal","color":"fad8c7","default":false},{"id":70896532,"node_id":"MDU6TGFiZWw3MDg5NjUzMg==","url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2019-09-19T20:25:56Z","updated_at":"2019-09-23T14:47:36Z","closed_at":null,"author_association":"NONE","body":"### Context\r\n* Install WordPress and Jetpack using Composer\r\n* Use Jetpack v7.5+ (since #12857)\r\n* Run a WP CLI command\r\n\r\n### Output\r\n```shell\r\nPHP Fatal error:  Uncaught Error: Call to undefined function add_action() in /var/www/example.com/vendor/automattic/jetpack-compat/functions.php:23\r\nStack trace:\r\n#0 /var/www/example.com/vendor/composer/autoload_real.php(66): require()\r\n#1 /var/www/example.com/vendor/composer/autoload_real.php(56): composerRequire9e2e0155ae2296865e0a62cb9575b86b('009de6aaa0d497e...', '/var/www/...')\r\n#2 /var/www/example.com/vendor/autoload.php(7): ComposerAutoloaderInit9e2e0155ae2296865e0a62cb9575b86b::getLoader()\r\n#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1198) : eval()'d code(6): require_once('/var/www/stagin...')\r\n#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1198): eval()\r\n#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1159): WP_CLI\\Runner->load_wordpress()\r\n#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner in /var/www/example.com/vendor/automattic/jetpack-compat/functions.php on line 23\r\n```\r\n\r\n### Notes\r\n\r\nSeems very related to the `jetpack-compat` package."},"comment":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/comments/534132688","html_url":"https://github.com/Automattic/jetpack/issues/13497#issuecomment-534132688","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/13497","id":534132688,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNDEzMjY4OA==","user":{"login":"jeherve","id":426388,"node_id":"MDQ6VXNlcjQyNjM4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/426388?v=4","gravatar_id":"","url":"https://api.github.com/users/jeherve","html_url":"https://github.com/jeherve","followers_url":"https://api.github.com/users/jeherve/followers","following_url":"https://api.github.com/users/jeherve/following{/other_user}","gists_url":"https://api.github.com/users/jeherve/gists{/gist_id}","starred_url":"https://api.github.com/users/jeherve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeherve/subscriptions","organizations_url":"https://api.github.com/users/jeherve/orgs","repos_url":"https://api.github.com/users/jeherve/repos","events_url":"https://api.github.com/users/jeherve/events{/privacy}","received_events_url":"https://api.github.com/users/jeherve/received_events","type":"User","site_admin":false},"created_at":"2019-09-23T14:47:35Z","updated_at":"2019-09-23T14:47:35Z","author_association":"MEMBER","body":"> are we sure we do want to load it in any case?\r\n\r\nYep, that file is needed for Jetpack to work properly.\r\n\r\n> you may use GitHub release assets to publish the fully build package for WordPress, or use WP SVN for release directly.\r\n\r\nFor sure. We've started playing with actions on our end as well, and may switch to using them in the future. Regardless, the final version of Jetpack that gets shipped to SVN will always ship with the packages defined in `composer.json`, so you'll always get `/vendor` package with your version of Jetpack, unless you were to require Jetpack `master` instead of requiring a stable version.\r\n\r\nBack to that original issue, we'll see what we can do to address this, since #12923 and #12943 weren't enough to catch everything."}}
{"actor":{"display_login":"jeherve"}}