Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Unable to install


#1

Hi,

When trying to install, I get the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Installer::$db

Filename: base/base_controller.php

Line Number: 232

Fatal error: Call to a member function initialize() on a non-object in /var/www/testrail/application/base/base_controller.php on line 232

Any ideas what might be causing this?


#2

Hello,

Thanks for your post. I’ve tried to contact you by email about the installation issue earlier today. Did you receive my email (from dg@gurock.com)? If not, please check your spam filter/spam folder and whitelist emails from the gurock.com domain, if possible. Here’s my original reply:

Thanks for the bug report and sorry for the inconvenience. Could you
answer a few questions so we can hopefully reproduce and fix the issue:

  • What operating system and database are you using on the server?

  • On which page of the installation wizard did the error occur (e.g.,
    directly after you entered the database details or when completing the
    wizard)?

  • Would it be possible to provide us with the output of phpinfo() from
    your server (just save the page in your web browser)? Please see this
    guide on how to generate the output:

http://www.gurock.com/support/docs/testrail/admin/howto-running-phpinfo.html

Alternatively, it would be great to at least know your PHP version and
loaded modules (by executing ‘php -v’ and ‘php -m’ on your server).

  • Did you upload the uncompressed installation files via FTP to your
    server, or did you uncompress the TestRail archive directly on your web
    server?

You can also contact me directly by email (dg@gurock.com).

Thanks a lot!

Regards,
Dennis


#3

I have not yet gotten your email, but that is due to issues we are having with our mail servers at the office.

Here is the info you requested…

  • What operating system and database are you using on the server?
    *I am running Ubuntu Server 9.04 and MySQL5

  • On which page of the installation wizard did the error occur (e.g.,
    directly after you entered the database details or when completing the
    wizard)?
    *It happened on the page where you fill in your database details. Once I fill everything in, I hit the NEXT button, and that error occurs.

  • Would it be possible to provide us with the output of phpinfo() from
    your server
    *http://robincon.com/test.htm

  • Did you upload the uncompressed installation files via FTP to your
    server, or did you uncompress the TestRail archive directly on your web
    server?
    *I copied them onto my server via a SAMBA share. I unzipped them on my laptop, then copied them over directly.

Thanks! If there is anything else you need to know, please just let me know!


#4

Hello,

we are currently setting up an Ubuntu 9.04 server to try to reproduce the bug. Just to make sure that it’s not an encoding/permission problem, could you try to uncompress the ZIP file directly on your server? E.g.:

$ cd /tmp
$ wget <link-to-trial>
$ cd /var/www
$ sudo unzip /tmp/testrail-1.0.2.9536-ion51.zip

If you don’t have the unzip command installed (I believe it isn’t by default), you can install it with apt-get like this:

$ sudo apt-get install zip

(You probably already know how to do all the things above, I just wanted to make sure to mention the cmd lines).

Thanks and I will post again once we found out more.

Regards,
Dennis


#5

Hello,

we have just succesfully installed TestRail on a Ubuntu Server 9.04 system, so it cannot be a general problem with this platform. I would like to wait for your result with uncompressing the files directly on the server before trying other things, as this has been a cause of problems in the past.

I think we might need to add a checksum verification routine or something similar to the setup in order to make sure that all files have been transferred to the server correctly.

Regards,
Dennis


#6

I followed all of the steps listed above, and am getting the same error. Any other thoughts?


#7

Hello,

I’ve just sent you an email with a few more things that we could try. If you don’t receive this email, please let me know and I will repost it here. Many thanks.

Regards,
Dennis


#8

Hi,

I was able to successfully install!

Jon


#9

Jon, that’s definitely great to hear that the installation worked now. Do you know what the issue was? What did you change in order to install TestRail?

Regards,
Dennis


#10

It had to do with my SQL server configuration. Once I got that sorted out, the Installer was able to see the DB.