{"action":"closed","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/2067","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/2067/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/2067/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/2067/events","html_url":"https://github.com/mautic/mautic/issues/2067","id":166576027,"number":2067,"title":"Toggling the (un)published state of Dynamic Content fails with Error 500","user":{"login":"pierreavizou","id":7101583,"avatar_url":"https://avatars.githubusercontent.com/u/7101583?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreavizou","html_url":"https://github.com/pierreavizou","followers_url":"https://api.github.com/users/pierreavizou/followers","following_url":"https://api.github.com/users/pierreavizou/following{/other_user}","gists_url":"https://api.github.com/users/pierreavizou/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreavizou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreavizou/subscriptions","organizations_url":"https://api.github.com/users/pierreavizou/orgs","repos_url":"https://api.github.com/users/pierreavizou/repos","events_url":"https://api.github.com/users/pierreavizou/events{/privacy}","received_events_url":"https://api.github.com/users/pierreavizou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/mautic/mautic/labels/Ready%20To%20Test","name":"Ready To Test","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"dongilbert","id":718028,"avatar_url":"https://avatars.githubusercontent.com/u/718028?v=3","gravatar_id":"","url":"https://api.github.com/users/dongilbert","html_url":"https://github.com/dongilbert","followers_url":"https://api.github.com/users/dongilbert/followers","following_url":"https://api.github.com/users/dongilbert/following{/other_user}","gists_url":"https://api.github.com/users/dongilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dongilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongilbert/subscriptions","organizations_url":"https://api.github.com/users/dongilbert/orgs","repos_url":"https://api.github.com/users/dongilbert/repos","events_url":"https://api.github.com/users/dongilbert/events{/privacy}","received_events_url":"https://api.github.com/users/dongilbert/received_events","type":"User","site_admin":false},"assignees":[{"login":"dongilbert","id":718028,"avatar_url":"https://avatars.githubusercontent.com/u/718028?v=3","gravatar_id":"","url":"https://api.github.com/users/dongilbert","html_url":"https://github.com/dongilbert","followers_url":"https://api.github.com/users/dongilbert/followers","following_url":"https://api.github.com/users/dongilbert/following{/other_user}","gists_url":"https://api.github.com/users/dongilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dongilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongilbert/subscriptions","organizations_url":"https://api.github.com/users/dongilbert/orgs","repos_url":"https://api.github.com/users/dongilbert/repos","events_url":"https://api.github.com/users/dongilbert/events{/privacy}","received_events_url":"https://api.github.com/users/dongilbert/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-20T13:03:56Z","updated_at":"2016-08-24T11:40:09Z","closed_at":"2016-08-24T11:40:09Z","body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | Y\r\n| Feature request? | N\r\n| Enhancement? | N\r\n\r\n## Description:\r\nOn the page that list your dynamic contents, there are toggles to quickly publish / unpublish them. Using them causes the spinner to show forever. The JS console indicates that the server responded with an error 500. The error in question is provided in the appropriate section below. \r\n\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | 2.0.1\r\n| PHP version | 5.6.23\r\n\r\n### Steps to reproduce:\r\n1. Create a dynamic content\r\n2. Go to the page that lists your dynamic contents (yourmautic/s/dwc)\r\n3. Click on the switch to toggle the published state of your content\r\n4. You should see the spinner showing forever\r\n \r\n### Log errors: \r\n\r\n- In the JS console: \r\n`mymautic//s/ajax?action=commandList&model=dwc&_=1469019551668&mauticUserLastActive=1&mauticLastNotificationId=414 500 (Internal Server Error)`\r\n\r\n- In the PHP Error logs: \r\n`[2016-07-20 12:57:19] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: \"mautic.dwc.model.dwc is not a registered container key.\" at /var/www/html/app/bundles/CoreBundle/Controller/CommonController.php line 120 {\"exception\":\"[object] (InvalidArgumentException(code: 0): mautic.dwc.model.dwc is not a registered container key. at /var/www/html/app/bundles/CoreBundle/Controller/CommonController.php:120)\"} []`\r\n\r\n"}}
{"actor":{"display_login":"escopecz"}}