I'm sure that nobody is really trying this, but the doc claims that an upgrade from 1.9 to 4.1 should work. When running the DB upgrade, I've hit four errors:
PHP Fatal error: Call to a member function fetchRow() on a non-object
in /var/www/tiki/installer/schema/20090923_mod_change_category_defaults_tiki.php on line 11, referer: http://dc-dev/spwiki/tiki-install.php
PHP Fatal error: Call to a member function fetchRow() on a non-object
in /var/www/tiki/installer/schema/20091004_last_tracker_items_modules_merge_tiki.php on line 11, referer: http://dc-dev/spwiki/tiki-install.php
PHP Fatal error: Call to a member function fetchRow() on a non-object
in /var/www/tiki/installer/schema/20091019_article_by_rating_modules_merge_tiki.php on line 11, referer: http://dc-dev/spwiki/tiki-install.php
Call to a member function fetchRow() on a non-object
in /var/www/tiki/installer/schema/20091019_last_articles_modules_merge_tiki.php on line 11, referer: http://dc-dev/spwiki/tiki
-install.php
Oops, didn't have alter privs on DB. Not sure if that's why this failed.
The solution (or at least workaround) is to check if the query returned anything. I have no idea if these functions should return any rows, but they're not with my DB. Here's a hacky fix for the first one. I tried while ($result && $result->fetchRow()), but I guess php doesn't do partial eval?? (I'm more of a perl guy...)
*** /var/www/tiki/installer/schema/20090923_mod_change_category_defaults_tiki.php.orig 2010-01-13 18:33:36.000000000 -0800 --- /var/www/tiki/installer/schema/20090923_mod_change_category_defaults_tiki.php 2010-01-13 18:35:09.000000000 -0800 *************** *** 8,19 **** function upgrade_20090923_mod_change_category_defaults_tiki( $installer ) { $result = $installer->query( "select moduleId, params from tiki_modules where name='change_category'; " ); ! while( $row = $result->fetchRow() ) { ! $params = $row['params']; ! if (strpos($params, "multiple=") === false) { ! if ($params) $params .= "&"; ! $params .= "multiple=n"; ! $installer->query( "update tiki_modules set params='" . $params . "' where moduleId=" . $row['moduleId'] . "; " ); } } } --- 8,21 ---- function upgrade_20090923_mod_change_category_defaults_tiki( $installer ) { $result = $installer->query( "select moduleId, params from tiki_modules where name='change_category'; " ); ! if ($result) { ! while($row = $result->fetchRow() ) { ! $params = $row['params']; ! if (strpos($params, "multiple=") === false) { ! if ($params) $params .= "&"; ! $params .= "multiple=n"; ! $installer->query( "update tiki_modules set params='" . $params . "' where moduleId=" . $row['moduleId'] . "; " ); ! } } } }
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |