Loading...
 
Architecture / Installation

Architecture / Installation


PHP error on new install - help please

posts: 2

This is my first install of TikiWiki; I'm running Ubuntu 9.04.

In tiki-install.php once I click on any theme to install (it doesn't matter which one; I've tried both Collaborative Community and bare bones), I get the following error:

Fatal error: Call to a member function fetchRow() on a non-object in /var/www/tikiwiki-3.1/installer/installlib.php on line 247

Line 247 appears to be in the function tableExists(). I've tried switching from PostgreSQL to MySQL and back, neither of those makes any difference, though.

Also:

root@localhost:/var/www/tikiwiki-3.1/installer# php --version
PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:37:14)

In case there's a versioning conflict.

I'd be happy to try whatever to get this fixed, but I'm a bit out of my depth here . . .

posts: 1001 Canada

Start with MySQL.
Make sure you have a good DB connection. You should have "Tiki found an existing database connection in your local.php file." in step 4 (or 3) "Set the Database Connection".
Your problem must come from line 244 "$result = $this->query( "show tables" );"


posts: 2

Okay, we can use MySQL.

The MySQL server is running on localhost. From command line I can connect to it via mysql -u twiki -p, and I can use database tikiwiki. Obviously there are no tables in the database yet.

I've tried using both mysqli and mysql (with the same database details), both give the same error.

Is there anything else you'd like me to check?

(For the record: mysql --version
mysql Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (x86_64) using readline 5.2)

Edited to add:
mysql> use tikiwiki;
Database changed
mysql> show tables;
Empty set (0.00 sec)

Nothing wrong with the command, just there are no tables yet as nothing has been populated from the installer . . .


posts: 1

Hello I'm new on wiki's. I am trying to get tikiwiki (single) on Ubuntu 9.04. I typed everything exactly as it says in the Ubuntu install step-by-step instructions. Everything seems to be fine. I can open mysql and say 'use tikiwiki;' as a database, it will still be empty. Then I run http://localhost/tikiwiki-3.1/tiki-install.php in Firefox (I also tried it with root priviliges on) and I get the message that it cannot connect to the database in step 4. What am I doing wrong? Do I need to create a user and password? This is not clear in the instructions.
Can someone please help?