Installing tikiwiki under Ubuntu 7.10

I naively tried to install tikiwiki (1.9.7+dfsg-2ubuntu1.1) on an Ubuntu box with synaptic.

After install, tikiwiki wasn't working. I got only blank pages on tikiwiki. After searching the web and tracing the code (you know, those echo "here I am" in the PHP code), it appears there are small discrepancies between the path installed by the tikiwiki package and the actual position of the files. Here's what I found:

  • in file setup_smarty.php at line 32, the original code reads as:


dirname(dirname(SMARTY_DIR))."/smarty_tiki",

This part defines an include path for smarty (tikiwiki template engine)
with SMARTY_DIR defined as '/usr/share/php/smarty/' while the tikiwiki part really is in '/usr/share/tikiwiki/lib/smarty_tiki', so I replaced dirname(dirname(SMARTY_DIR))."/smarty_tiki" with '/usr/share/tikiwiki/lib/smarty_tiki'

  • In tiki-browse_categories.php, around line 129, replace '/usr/share/php/libphp-phplayersmenu/images/' with ' /usr/share/php/libphp-phplayersmenu/menuimages/'
  • Same thing in /usr/share/tikiwiki/lib/smarty_tiki/function.phplayers.php !

You can download the diff [I naively tried to install tikiwiki (1.9.7+dfsg-2ubuntu1.1) on an Ubuntu box with synaptic.

After install, tikiwiki wasn't working. I got only blank pages on tikiwiki. After searching the web and tracing the code (you know, those echo "here I am" in the PHP code), it appears there are small discrepancies between the path installed by the tikiwiki package and the actual position of the files. Here's what I found:

  • in file setup_smarty.php at line 32, the original code reads as:


dirname(dirname(SMARTY_DIR))."/smarty_tiki",

This part defines an include path for smarty (tikiwiki template engine)
with SMARTY_DIR defined as '/usr/share/php/smarty/' while the tikiwiki part really is in '/usr/share/tikiwiki/lib/smarty_tiki', so I replaced dirname(dirname(SMARTY_DIR))."/smarty_tiki" with '/usr/share/tikiwiki/lib/smarty_tiki'

  • In tiki-browse_categories.php, around line 129, replace '/usr/share/php/libphp-phplayersmenu/images/' with ' /usr/share/php/libphp-phplayersmenu/menuimages/'
  • Same thing in /usr/share/tikiwiki/lib/smarty_tiki/function.phplayers.php !

You can download the diff at the end of this page.

That's it, Enjoy tikiwiki.

Trackback URL for this post:

http://v3.tronche.com/trackback/17
AttachmentSize
diff.2.3 KB

Comments

Added Line

I did the changes posted by admin and found that i needed to change 1 more line. If someone could verify this change is good that would be nice.
First i made all the changes listed by admin and all i got an error unable to find file.
I changed line 17 from
define('SMARTY_DIR', 'smarty/libs')
to
define('SMARTY_DIR', '/usr/share/php/smarty/')
with all the changes from prevoius post and this, the HOME page fires right up. i have not tried to configure anything yet.
Thanks and hope this helps
RRG

Blog Error

If you click on the BLOG link and get a screen with failed "required once" statements you might be missing a file.
I was missing a complete file.
I downloaded the TAR file, unzipped the file, and copied the missing file and sub files to the location the link was looking for (see below).
i copied the "webmail" folder from extracted file
to
usr/share/tikiwiki/lib
Hope this helps
RRG

This was on a previous,

This was on a previous, tikiwiki-hosted version of this blog. "Fixed" in some sense by switching to drupal.