{"action":"created","issue":{"url":"https://api.github.com/repos/tripal/tripal/issues/524","repository_url":"https://api.github.com/repos/tripal/tripal","labels_url":"https://api.github.com/repos/tripal/tripal/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/tripal/tripal/issues/524/comments","events_url":"https://api.github.com/repos/tripal/tripal/issues/524/events","html_url":"https://github.com/tripal/tripal/issues/524","id":346204378,"node_id":"MDU6SXNzdWUzNDYyMDQzNzg=","number":524,"title":"tripal_get_active_jobs() throws error","user":{"login":"par12005","id":38262122,"node_id":"MDQ6VXNlcjM4MjYyMTIy","avatar_url":"https://avatars0.githubusercontent.com/u/38262122?v=4","gravatar_id":"","url":"https://api.github.com/users/par12005","html_url":"https://github.com/par12005","followers_url":"https://api.github.com/users/par12005/followers","following_url":"https://api.github.com/users/par12005/following{/other_user}","gists_url":"https://api.github.com/users/par12005/gists{/gist_id}","starred_url":"https://api.github.com/users/par12005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/par12005/subscriptions","organizations_url":"https://api.github.com/users/par12005/orgs","repos_url":"https://api.github.com/users/par12005/repos","events_url":"https://api.github.com/users/par12005/events{/privacy}","received_events_url":"https://api.github.com/users/par12005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T14:08:07Z","updated_at":"2018-08-10T20:58:55Z","closed_at":null,"author_association":"NONE","body":"## BUG/ERROR report\r\n<!---\r\nINSTRUCTIONS: The following template is meant to provide the information that will help other Tripal\r\n developers diagnose and reproduce your issue. Follow the directions below to complete the template.\r\n  Feel free to delete sections that are not applicable.\r\n--->\r\n\r\n\r\n\r\n### System information\r\n<!--Please enter the following information (if able). All information is available in your site's administrator report area (Administration Toolbar > Reports > Status Report) -->\r\n\r\n* Tripal Version: 3.x\r\n* Drupal Version: 7.56\r\n* PostgreSQL Version: 9.5.7\r\n* PHP Version: 7.0.30\r\n\r\n### Issue description\r\n<!-- Please describe your issue here \r\nSome information you might want to include: the page you're seeing the issue on,  what behavior \r\nyou're experiencing versus what you expect, really anything you think might best help us help you! -->\r\n\r\nWhen I call `tripal_get_active_jobs()` from anywhere I get the error seen below. I believe this is because in the [`tripal.jobs.api.inc`](http://api.tripal.info/api/tripal/tripal%21api%21tripal.jobs.api.inc/3.x) file on line 536 the `$jobs` variable is an array, and tripal is attempting to assign the `$jobs->arguments` property. There is an object in this context, the `$job` variable. Line 536 reads:\r\n```$jobs->arguments = unserialize($job->arguments);```\r\nI believe it should read:\r\n```$job->arguments = unserialize($job->arguments);```\r\nWhen I made this change I was not seeing the error anymore, and `tripal_get_active_jobs()` was working correctly.\r\n\r\n#### Steps to reproduce\r\nCall `tripal_get_active_jobs()`\r\n\r\n<!-- What steps are necessary to recreate the bug/error?  Clear instructions here will make it easier for\r\n us to fix the problem! -->\r\n#### Error messages and screenshots\r\n<!-- Please include any error messages you find.  Including them in ``` as below will make the issue\r\n more readable. -->\r\n<!-- Screenshots can be really helpful to describe the problem! -->\r\n\r\n```\r\nPHP Warning: Attempt to assign property of non-object in /var/www/html/Drupal/sites/all/modules/tripal/tripal/api/tripal.jobs.api.inc on line 536 pid 30056\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tripal/tripal/issues/comments/412204664","html_url":"https://github.com/tripal/tripal/issues/524#issuecomment-412204664","issue_url":"https://api.github.com/repos/tripal/tripal/issues/524","id":412204664,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjIwNDY2NA==","user":{"login":"almasaeed2010","id":1512664,"node_id":"MDQ6VXNlcjE1MTI2NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1512664?v=4","gravatar_id":"","url":"https://api.github.com/users/almasaeed2010","html_url":"https://github.com/almasaeed2010","followers_url":"https://api.github.com/users/almasaeed2010/followers","following_url":"https://api.github.com/users/almasaeed2010/following{/other_user}","gists_url":"https://api.github.com/users/almasaeed2010/gists{/gist_id}","starred_url":"https://api.github.com/users/almasaeed2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almasaeed2010/subscriptions","organizations_url":"https://api.github.com/users/almasaeed2010/orgs","repos_url":"https://api.github.com/users/almasaeed2010/repos","events_url":"https://api.github.com/users/almasaeed2010/events{/privacy}","received_events_url":"https://api.github.com/users/almasaeed2010/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T20:58:55Z","updated_at":"2018-08-10T20:58:55Z","author_association":"CONTRIBUTOR","body":"PR submitted #539 "}}
{"actor":{"display_login":"almasaeed2010"}}