Loading...
 
Skip to main content

Architecture / Installation


Installation failure 5.0

I have looked all over trying to find a reference to this issue; found some close, but none are right on the money, and none provide a solution that resolves my issue 😊

A new installation of Tiki 5.0 on non-shared, dedicated FreeBSD 8.0 box with unlimited available memory, running Apache 2.2.15, PHP 5.3.2 (with PDO for MySQL). Memory set to 128 in PHP.

While running the install script, I get to the database information page and enter ALL valid information (db name which does exist, db user and password which are correct). It immediately bombs out with the following error:

Copy to clipboard
PHP Fatal error: Call to a member function queryError() on a non-object in /usr/local/apache2/vhosts/site.com/htdocs/tiki/lib/core/lib/TikiDb/Bridge.php on line 39


I would really appreciate any information you could provide to assist me in resolving this issue.

Regards,


Jake

Jacob Whatley

Hi Jake,

I had this error myself. The problem was that I hadn't entered a valid hostname. I'm using dreamhost and when you create a db you also get to choose a hostname, eg tiki.domain.com. If you leave localhost in there it won't work.

You have to replace the file db/local.php I think if you just remove it from the ftp you can use the installer again, or you can edit the file by hand and upload a copy.

Thank you, Majken.

While your suggestion did not solve my problem, it did move me toward a greater understanding of the issue and confirmation that there is a real and very SERIOUS bug in the installation procedure for v5.0.

Hopefully, one of the developers will see this and confirm. Here is what I know to be true:

On a clean install, as I described in the initial post, the tiki-install.php script bombs out with the stated error when you submit the page requesting database information. Here is some further information. For some reason, there is a default value of "admin" for the database user. When I change this to a valid MySQL user "root" the script bombs. Looking at the db/local.php file after the crash, this is what I find:


Hey, looks like part of your post was stripped.

When I use dreamhost I have to assign a user to the database. I don't think "root" is right, unless you created a user and named it that. When I made my db I made a specific user for that database, with its own password.

I did do a search on the error before I solved it myself and it looks like all instances are people using the wrong information, like I did.

Even if you want to use "root" try creating a new user for your db and see if those credentials work?