{"action":"created","issue":{"url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/545","repository_url":"https://api.github.com/repos/userfrosting/UserFrosting","labels_url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/545/comments","events_url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/545/events","html_url":"https://github.com/userfrosting/UserFrosting/issues/545","id":155439489,"number":545,"title":"New User Registration Error ","user":{"login":"baberuth22","id":2997424,"avatar_url":"https://avatars.githubusercontent.com/u/2997424?v=3","gravatar_id":"","url":"https://api.github.com/users/baberuth22","html_url":"https://github.com/baberuth22","followers_url":"https://api.github.com/users/baberuth22/followers","following_url":"https://api.github.com/users/baberuth22/following{/other_user}","gists_url":"https://api.github.com/users/baberuth22/gists{/gist_id}","starred_url":"https://api.github.com/users/baberuth22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baberuth22/subscriptions","organizations_url":"https://api.github.com/users/baberuth22/orgs","repos_url":"https://api.github.com/users/baberuth22/repos","events_url":"https://api.github.com/users/baberuth22/events{/privacy}","received_events_url":"https://api.github.com/users/baberuth22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/userfrosting/UserFrosting/labels/troubleshooting","name":"troubleshooting","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T08:03:39Z","updated_at":"2016-05-19T14:22:19Z","closed_at":null,"body":"I can create the master user with no problem, but when I try to create another user, I get the following error.\r\n\r\nSlim Application Error\r\nThe application could not run because of the following error:\r\n\r\nDetails\r\nType: ErrorException\r\nCode: 8\r\nMessage: Trying to get property of non-object\r\nFile: /Users/bryansaltzman/Sites/api.direct/userfrosting/models/notify/Notification.php\r\nLine: 71\r\nTrace\r\n#0 /Users/bryansaltzman/Sites/api.direct/userfrosting/models/notify/Notification.php(71): Slim\\Slim::handleErrors(8, 'Trying to get p...', '/Users/bryansal...', 71, Array)\r\n#1 /Users/bryansaltzman/Sites/api.direct/userfrosting/controllers/AccountController.php(434): UserFrosting\\Notification->fromWebsite()\r\n#2 /Users/bryansaltzman/Sites/api.direct/public/index.php(112): UserFrosting\\AccountController->register()\r\n#3 [internal function]: {closure}('register')\r\n#4 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)\r\n#5 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Slim.php(1357): Slim\\Route->dispatch()\r\n#6 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\\Slim->call()\r\n#7 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\\Middleware\\Flash->call()\r\n#8 /Users/bryansaltzman/Sites/api.direct/userfrosting/middleware/CsrfGuard.php(51): Slim\\Middleware\\MethodOverride->call()\r\n#9 /Users/bryansaltzman/Sites/api.direct/userfrosting/middleware/usersession/UserSession.php(27): Slim\\Extras\\Middleware\\CsrfGuard->call()\r\n#10 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): UserFrosting\\UserSession->call()\r\n#11 /Users/bryansaltzman/Sites/api.direct/userfrosting/vendor/slim/slim/Slim/Slim.php(1302): Slim\\Middleware\\PrettyExceptions->call()\r\n#12 /Users/bryansaltzman/Sites/api.direct/public/index.php(424): Slim\\Slim->run()\r\n#13 {main}\r\n\r\nI've tried two fresh installs running PHP7 MAMP.  Any insights?\r\n\r\nThe error indicates  static::$app is undefined on the line:\r\n$this->from_email = static::$app->site->admin_email;\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/comments/220339308","html_url":"https://github.com/userfrosting/UserFrosting/issues/545#issuecomment-220339308","issue_url":"https://api.github.com/repos/userfrosting/UserFrosting/issues/545","id":220339308,"user":{"login":"alexweissman","id":5004534,"avatar_url":"https://avatars.githubusercontent.com/u/5004534?v=3","gravatar_id":"","url":"https://api.github.com/users/alexweissman","html_url":"https://github.com/alexweissman","followers_url":"https://api.github.com/users/alexweissman/followers","following_url":"https://api.github.com/users/alexweissman/following{/other_user}","gists_url":"https://api.github.com/users/alexweissman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexweissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexweissman/subscriptions","organizations_url":"https://api.github.com/users/alexweissman/orgs","repos_url":"https://api.github.com/users/alexweissman/repos","events_url":"https://api.github.com/users/alexweissman/events{/privacy}","received_events_url":"https://api.github.com/users/alexweissman/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T14:22:19Z","updated_at":"2016-05-19T14:22:19Z","body":"Is it that `$app` is undefined, or `$app->site`?  I haven't actually played with PHP7 yet, so it is possible that this is some compatibility issue."}}