Hipchat Server displays Fatal error: Call to a member function when accessing the Web Interface
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
This is for an outdated version of Hipchat Server
This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.
You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.
Problem
When accessing the Hipchat Server Web Interface a fatal error is thrown similar to:
- Fatal error: Call to a member function get_group() on a non-object in /hipchat-scm/web/application/controllers/application.php on line 952
The following appears in the nginx.err.log:
2015-10-13T20:12:47.390040+00:00 hipchat nginx-error: 2015/10/13 20:12:43 [error] 7263#0: *81730 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function get_group() on a non-object in /hipchat-scm/web/application/controllers/application.php on line 952" while reading response header from upstream, client: 192.168.0.10, server: , request: "GET /server_admin/setup_welcome HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "hipchat.yourdomain.com"
Cause
This issue is caused when the setup wizard is not fully completed and a user drops connection.
Resolution
The fix requires you to log into the console and reset the owner user account back to defaults (admin@example.com). You then will be able to set-up the correct owner account during the startup wizard.
- SSH into your Hipchat Server
Issue the following command:
hipchat service --reset-owner=EMAIL
- Navigate back to the Hipchat Server instance in a web browser and follow the startup wizard to set the new owner account.
If using Hipchat Server v1.3.5 or older, please use
hipchat service --reset-login=EMAIL
for step 2 above