{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3674","repository_url":"https://api.github.com/repos/pantheon-systems/documentation","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3674/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3674/comments","events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3674/events","html_url":"https://github.com/pantheon-systems/documentation/issues/3674","id":322738536,"node_id":"MDU6SXNzdWUzMjI3Mzg1MzY=","number":3674,"title":"Add WP_Filesystem→get_contents() workaround","user":{"login":"slashzero","id":898001,"node_id":"MDQ6VXNlcjg5ODAwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/898001?v=4","gravatar_id":"","url":"https://api.github.com/users/slashzero","html_url":"https://github.com/slashzero","followers_url":"https://api.github.com/users/slashzero/followers","following_url":"https://api.github.com/users/slashzero/following{/other_user}","gists_url":"https://api.github.com/users/slashzero/gists{/gist_id}","starred_url":"https://api.github.com/users/slashzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slashzero/subscriptions","organizations_url":"https://api.github.com/users/slashzero/orgs","repos_url":"https://api.github.com/users/slashzero/repos","events_url":"https://api.github.com/users/slashzero/events{/privacy}","received_events_url":"https://api.github.com/users/slashzero/received_events","type":"User","site_admin":false},"labels":[{"id":231034043,"node_id":"MDU6TGFiZWwyMzEwMzQwNDM=","url":"https://api.github.com/repos/pantheon-systems/documentation/labels/in%20progress","name":"in progress","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":{"login":"alexfornuto","id":2349184,"node_id":"MDQ6VXNlcjIzNDkxODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2349184?v=4","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexfornuto","id":2349184,"node_id":"MDQ6VXNlcjIzNDkxODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2349184?v=4","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-05-14T09:29:58Z","updated_at":"2018-08-07T18:50:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Re: [Modules and Plugins with Known Issues](https://pantheon.io/docs/modules-plugins-known-issues/#wordpress-functions)\r\n\r\nSubject: Add WP_Filesystem→get_contents() workaround\r\n\r\nPriority: Low\r\n\r\n## Issue Description:\r\n\r\nCalls to WP_Filesystem→get_contents() fail if the site is in Git mode even if the file being called is contained in wp-content/uploads.\r\n\r\nThe ticket has replicated the issue and confirmed the workaround - initially reported by Astra theme author.\r\n\r\nSurfaced in ticket 104691\r\n\r\n## Suggested Resolution\r\n\r\nWorkaround: add `define('FS_METHOD', 'direct');` to wp-config.php."},"comment":{"url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments/411162333","html_url":"https://github.com/pantheon-systems/documentation/issues/3674#issuecomment-411162333","issue_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/3674","id":411162333,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTE2MjMzMw==","user":{"login":"alexfornuto","id":2349184,"node_id":"MDQ6VXNlcjIzNDkxODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2349184?v=4","gravatar_id":"","url":"https://api.github.com/users/alexfornuto","html_url":"https://github.com/alexfornuto","followers_url":"https://api.github.com/users/alexfornuto/followers","following_url":"https://api.github.com/users/alexfornuto/following{/other_user}","gists_url":"https://api.github.com/users/alexfornuto/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfornuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfornuto/subscriptions","organizations_url":"https://api.github.com/users/alexfornuto/orgs","repos_url":"https://api.github.com/users/alexfornuto/repos","events_url":"https://api.github.com/users/alexfornuto/events{/privacy}","received_events_url":"https://api.github.com/users/alexfornuto/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T18:50:24Z","updated_at":"2018-08-07T18:50:24Z","author_association":"CONTRIBUTOR","body":"So I made a child theme and used it to test replacing `wp_filesystem->get_contents()` with `get_file_contents` and it worked. I also tested `define('FS_METHOD', 'direct');` as a fix. "}}
{"actor":{"display_login":"alexfornuto"}}