Loading...
 
Skip to main content

Architecture / Installation


PDO error (blank page) after an upgrade from 3.0 to 4.1

Hi,

I've recently upgraded my working tiki intranet site from 3.0 to 4.1. Everything seemed perfect, but after the database upgrade I got a blank page.

I checked the apache's error_log and found the following error:
PHP error: Call to undefined method TikiDb_Pdo::SetAttribute() in /var/www/html/tikiwiki/lib/tikisession-pdo.php on line 18.

The PDO and PDO_Mysql extension installed and loaded. (pdo_mysql version from phpinfo(): 5.0.77)

If I use the adodb connection, everything is working perfectly, so the problem should be with pdo.

System: CentOS 5.4, PHP:5.1.6, MySQL:5.0.77

Tamas

I just upgraded from 3.3 to 4.1 and I get the same error message as you.
I don't have the technical background to get this fixed without help.

Please Help


same thing happenned to my but i've upgrade from 3.2 to 3.3 any ideas?

I've got the same problem as this one, after an upgrade from 3.3 to 4.3

For me, adding the $api_tiki='adodb';
at the end of the db/local.php file did the trick.
I read it here:


Installation
When installing Tiki 4.0 with PHP 5.1.0 (or higher), you may encounter a System error: could not find driver message. This indicates that PDO driver for your database has not been enabled on your server.

To enable the driver:

* For Unix:
Refer to http://us.php.net/manual/en/book.pdo.php(externalQuestion link) for information on installing PDO support.
As an alternative, add the following statement to the end of your ../db/local.php file, before the ?>:
$api_tiki='adodb';


* For Windows:
Add the following statement to your php.ini file:
extension=php_pdo_mysql.dll

This information found at the following link:

http://tikiwiki.org/ReleaseNotes40Question