{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4379","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4379/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4379/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4379/events","html_url":"https://github.com/magento/magento2/issues/4379","id":152559347,"number":4379,"title":"Checkout Agreements are broken on OnePageCheckout - 2.0.5","user":{"login":"devdesco-ceo","id":8983883,"avatar_url":"https://avatars.githubusercontent.com/u/8983883?v=3","gravatar_id":"","url":"https://api.github.com/users/devdesco-ceo","html_url":"https://github.com/devdesco-ceo","followers_url":"https://api.github.com/users/devdesco-ceo/followers","following_url":"https://api.github.com/users/devdesco-ceo/following{/other_user}","gists_url":"https://api.github.com/users/devdesco-ceo/gists{/gist_id}","starred_url":"https://api.github.com/users/devdesco-ceo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devdesco-ceo/subscriptions","organizations_url":"https://api.github.com/users/devdesco-ceo/orgs","repos_url":"https://api.github.com/users/devdesco-ceo/repos","events_url":"https://api.github.com/users/devdesco-ceo/events{/privacy}","received_events_url":"https://api.github.com/users/devdesco-ceo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/magento/magento2/labels/CS","name":"CS","color":"fad8c7"},{"url":"https://api.github.com/repos/magento/magento2/labels/needs%20update","name":"needs update","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"choukalos","id":145978,"avatar_url":"https://avatars.githubusercontent.com/u/145978?v=3","gravatar_id":"","url":"https://api.github.com/users/choukalos","html_url":"https://github.com/choukalos","followers_url":"https://api.github.com/users/choukalos/followers","following_url":"https://api.github.com/users/choukalos/following{/other_user}","gists_url":"https://api.github.com/users/choukalos/gists{/gist_id}","starred_url":"https://api.github.com/users/choukalos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choukalos/subscriptions","organizations_url":"https://api.github.com/users/choukalos/orgs","repos_url":"https://api.github.com/users/choukalos/repos","events_url":"https://api.github.com/users/choukalos/events{/privacy}","received_events_url":"https://api.github.com/users/choukalos/received_events","type":"User","site_admin":false},"assignees":[{"login":"choukalos","id":145978,"avatar_url":"https://avatars.githubusercontent.com/u/145978?v=3","gravatar_id":"","url":"https://api.github.com/users/choukalos","html_url":"https://github.com/choukalos","followers_url":"https://api.github.com/users/choukalos/followers","following_url":"https://api.github.com/users/choukalos/following{/other_user}","gists_url":"https://api.github.com/users/choukalos/gists{/gist_id}","starred_url":"https://api.github.com/users/choukalos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choukalos/subscriptions","organizations_url":"https://api.github.com/users/choukalos/orgs","repos_url":"https://api.github.com/users/choukalos/repos","events_url":"https://api.github.com/users/choukalos/events{/privacy}","received_events_url":"https://api.github.com/users/choukalos/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-05-02T14:00:04Z","updated_at":"2016-07-19T09:47:36Z","closed_at":null,"body":"Rest API throws 500 eror with the following error code logged:\r\n`s:181:\"Fatal Error: 'Call to a member function getAgreementIds() on null' in '/var/data/mfs/www/magento/app/code/Magento/CheckoutAgreements/Model/Checkout/Plugin/Validation.php' on line 62\";\r\n`"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/233583423","html_url":"https://github.com/magento/magento2/issues/4379#issuecomment-233583423","issue_url":"https://api.github.com/repos/magento/magento2/issues/4379","id":233583423,"user":{"login":"kanduvisla","id":346681,"avatar_url":"https://avatars.githubusercontent.com/u/346681?v=3","gravatar_id":"","url":"https://api.github.com/users/kanduvisla","html_url":"https://github.com/kanduvisla","followers_url":"https://api.github.com/users/kanduvisla/followers","following_url":"https://api.github.com/users/kanduvisla/following{/other_user}","gists_url":"https://api.github.com/users/kanduvisla/gists{/gist_id}","starred_url":"https://api.github.com/users/kanduvisla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanduvisla/subscriptions","organizations_url":"https://api.github.com/users/kanduvisla/orgs","repos_url":"https://api.github.com/users/kanduvisla/repos","events_url":"https://api.github.com/users/kanduvisla/events{/privacy}","received_events_url":"https://api.github.com/users/kanduvisla/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T09:47:36Z","updated_at":"2016-07-19T09:47:36Z","body":"I also have this problem on 2.0.7 with the checkmo payment method. A sidenote is that I use MageStores' OneStepCheckout, but I don't see any files of them in the stack trace.\r\n\r\n````\r\n<br />\r\n<b>Fatal error</b>:  Uncaught Error: Call to a member function getAgreementIds() on null in /var/www/awesome/vendor/magento/module-checkout-agreements/Model/Checkout/Plugin/Validation.php:62\r\nStack trace:\r\n#0 [internal function]: Magento\\CheckoutAgreements\\Model\\Checkout\\Plugin\\Validation-&gt;beforeSavePaymentInformationAndPlaceOrder(Object(Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor), 29, Object(Magento\\Quote\\Model\\Quote\\Payment), Object(Magento\\Quote\\Model\\Quote\\Address))\r\n#1 /var/www/awesome/vendor/magento/framework/Interception/Interceptor.php(121): call_user_func_array(Array, Array)\r\n#2 /var/www/awesome/var/generation/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor-&gt;___callPlugins('savePaymentInfo...', Array, Array)\r\n#3 [internal function]: Magento\\Checkout\\Model\\PaymentInformationManagement\\Interceptor-&gt;savePaymentInformationAndPlaceOrder(29, Object(Magento\\Quote\\Model\\Quote\\Payment), Object(Magento\\Quote\\Model\\Quote\\Address in <b>/var/www/awesome/vendor/magento/module-checkout-agreements/Model/Checkout/Plugin/Validation.php</b> on line <b>62</b><br />\r\n{\"messages\":{\"error\":[{\"code\":500,\"message\":\"Fatal Error: 'Uncaught Error: Call to a member function getAgreementIds() on null in \\/var\\/www\\/awesome\\/vendor\\/magento\\/module-checkout-agreements\\/Model\\/Checkout\\/Plugin\\/Validation.php:62\\nStack trace:\\n#0 [internal function]: Magento\\\\CheckoutAgreements\\\\Model\\\\Checkout\\\\Plugin\\\\Validation->beforeSavePaymentInformationAndPlaceOrder(Object(Magento\\\\Checkout\\\\Model\\\\PaymentInformationManagement\\\\Interceptor), 29, Object(Magento\\\\Quote\\\\Model\\\\Quote\\\\Payment), Object(Magento\\\\Quote\\\\Model\\\\Quote\\\\Address))\\n#1 \\/var\\/www\\/awesome\\/vendor\\/magento\\/framework\\/Interception\\/Interceptor.php(121): call_user_func_array(Array, Array)\\n#2 \\/var\\/www\\/awesome\\/var\\/generation\\/Magento\\/Checkout\\/Model\\/PaymentInformationManagement\\/Interceptor.php(26): Magento\\\\Checkout\\\\Model\\\\PaymentInformationManagement\\\\Interceptor->___callPlugins('savePaymentInfo...', Array, Array)\\n#3 [internal function]: Magento\\\\Checkout\\\\Model\\\\PaymentInformationManagement\\\\Interceptor->savePaymentInformationAndPlaceOrder(29, Object(Magento\\\\Quote\\\\Model\\\\Quote\\\\Payment), Object(Magento\\\\Quote\\\\Model\\\\Quote\\\\Address' in '\\/var\\/www\\/awesome\\/vendor\\/magento\\/module-checkout-agreements\\/Model\\/Checkout\\/Plugin\\/Validation.php' on line 62\",\"trace\":\"Trace is not available.\"}]}}\r\n````"}}
{"actor":{"display_login":"kanduvisla"}}