{"action":"created","issue":{"url":"https://api.github.com/repos/wcvendors/wcvendors/issues/198","labels_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/198/comments","events_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/198/events","html_url":"https://github.com/wcvendors/wcvendors/issues/198","id":104815011,"number":198,"title":"PayPal Adaptive Payments Error Logging Fails","user":{"login":"GoTeamScotch","id":11036843,"avatar_url":"https://avatars.githubusercontent.com/u/11036843?v=3","gravatar_id":"","url":"https://api.github.com/users/GoTeamScotch","html_url":"https://github.com/GoTeamScotch","followers_url":"https://api.github.com/users/GoTeamScotch/followers","following_url":"https://api.github.com/users/GoTeamScotch/following{/other_user}","gists_url":"https://api.github.com/users/GoTeamScotch/gists{/gist_id}","starred_url":"https://api.github.com/users/GoTeamScotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoTeamScotch/subscriptions","organizations_url":"https://api.github.com/users/GoTeamScotch/orgs","repos_url":"https://api.github.com/users/GoTeamScotch/repos","events_url":"https://api.github.com/users/GoTeamScotch/events{/privacy}","received_events_url":"https://api.github.com/users/GoTeamScotch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T02:01:44Z","updated_at":"2015-09-08T17:56:17Z","closed_at":"2015-09-08T17:56:17Z","body":"This bug is about the PayPal Adaptive Payments SDK. Not sure if this should be posted at their github or here...\r\n\r\nAfter installing WC Vendors on my site and after having a few customers check out (successfully), I noticed some new errors piling up in my php error log. The error is this:\r\n```\r\nPHP Warning:  error_log(PayPal.log): failed to open stream: Permission denied in [my wp-content path]\\plugins\\wc-vendors\\classes\\gateways\\PayPal_AdvPayments\\PayPal_AP\\classes\\adaptivepayments-sdk\\lib\\PPLoggingManager.php on line 58\r\n```\r\nAnd line 58 of that file is:\r\n```\r\nerror_log( $this->loggerName . \": $message\\n\", 3, $this->loggerFile );\r\n```\r\n$this->loggerFile is defined in PPConfigManager.php on line 59 as simply \"PayPal.log\".\r\nSo it's trying to log an error in its own error log file. I don't see a path defined so it must be in the same directory as where it's being called (...adaptivepayments-sdk\\lib\\). The permissions on my server seem ordinary so I'm surprised that the file can't be written.\r\n\r\nLong story short, can it just use error_log() as usual without specifying its own file? Basically just changing the above line 58 chunk to this:\r\n```\r\nerror_log( $this->loggerName . \": $message\\n\" );\r\n```\r\nEdit: Covered in pull request: https://github.com/wcvendors/wcvendors/pull/201"},"comment":{"url":"https://api.github.com/repos/wcvendors/wcvendors/issues/comments/138648501","html_url":"https://github.com/wcvendors/wcvendors/issues/198#issuecomment-138648501","issue_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/198","id":138648501,"user":{"login":"bentasm1","id":6693745,"avatar_url":"https://avatars.githubusercontent.com/u/6693745?v=3","gravatar_id":"","url":"https://api.github.com/users/bentasm1","html_url":"https://github.com/bentasm1","followers_url":"https://api.github.com/users/bentasm1/followers","following_url":"https://api.github.com/users/bentasm1/following{/other_user}","gists_url":"https://api.github.com/users/bentasm1/gists{/gist_id}","starred_url":"https://api.github.com/users/bentasm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentasm1/subscriptions","organizations_url":"https://api.github.com/users/bentasm1/orgs","repos_url":"https://api.github.com/users/bentasm1/repos","events_url":"https://api.github.com/users/bentasm1/events{/privacy}","received_events_url":"https://api.github.com/users/bentasm1/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:56:17Z","updated_at":"2015-09-08T17:56:17Z","body":"Thanks for your contributions!  It's nice to see you pushing new code and truly making WC Vendors a proper open source project. :)"}}