Installation problems on Ubuntu 8.10 Intrepid

Having trouble installing serendipity?
Post Reply
sealie
Posts: 4
Joined: Mon Feb 02, 2009 12:40 am

Installation problems on Ubuntu 8.10 Intrepid

Post by sealie »

Hello,

I recently decided to pull my serendipity blog off my FreeBSD server and give it a go on my new Ubuntu server. The server is running the 32bit version of Ubuntu 8.10 Intrepid.

After running 'apt-get install serendipity" smoothly and setting up the database (using db-config, following with the ubuntu package) I copied /etc/serendipit/apache.conf to /etc/apache2/conf.d/serendipity and restarted apache2.

When I load my page in a browser, it says:

Warning: include(/usr/share/serendipity/www/bundled-libs/Smarty/libs/Smarty.class.php) [function.include]: failed to open stream: No such file or directory in /usr/share/serendipity/www/include/functions_smarty.inc.php on line 834

Warning: include() [function.include]: Failed opening '/usr/share/serendipity/www/bundled-libs/Smarty/libs/Smarty.class.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/usr/share/serendipity/www/bundled-libs/:/usr/share/serendipity/www/bundled-libs/Smarty/libs/:/usr/share/serendipity/www/:') in /usr/share/serendipity/www/include/functions_smarty.inc.php on line 834

Fatal error: Call to a member function assign_by_ref() on a non-object in /usr/share/serendipity/www/include/genpage.inc.php on line 36


I have checked line 834, and it turns out that its looking for Smarty.inc.php in some bogus path (/usr/share/serendipity/www/bundled-libs/Smarty/libs/Smarty.class.php, as in the error msg)

I can't really see me doing anything wrong here, could this be a change with a later Smarty package that broke the Serendipity package?

Any help appreciated!

-Vidar

EDIT: a minor typo fix
Last edited by sealie on Mon Feb 02, 2009 11:13 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by garvinhicking »

Hi!

Sadly I don't maintain that package. Where is your "bundled-libs" directory located, actually?

You might want to try the actuall serendipity release package from www.s9y.org ; it's quite easy to install if you simply upload it into your htdocs.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sealie
Posts: 4
Joined: Mon Feb 02, 2009 12:40 am

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by sealie »

garvinhicking wrote: Sadly I don't maintain that package. Where is your "bundled-libs" directory located, actually?
My bundled-libs dir is located in "/usr/share/serendipity/www/bundled-libs" where the Ubuntu package left it. I'm not really familiar with Ubuntu/Debian packaging (I'm a ports guy) otherwise I would take upon the job to fix the current package :(
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by judebert »

Is there anything in the bundled-libs/ dir? Perhaps the package maintainer forgot to include the necessary files. There should be a Smarty/ dir, with a libs/ dir beneath it. The Smarty.class.php should be in there.
sealie
Posts: 4
Joined: Mon Feb 02, 2009 12:40 am

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by sealie »

judebert wrote:Is there anything in the bundled-libs/ dir? Perhaps the package maintainer forgot to include the necessary files. There should be a Smarty/ dir, with a libs/ dir beneath it. The Smarty.class.php should be in there.
root@night:/usr/share/serendipity/www/bundled-libs# ls -alh
total 24K
drwxr-xr-x 6 root root 4.0K 2009-02-02 00:19 .
drwxr-xr-x 8 root root 4.0K 2009-02-02 00:19 ..
lrwxrwxrwx 1 root root 18 2009-02-02 00:19 Cache -> ../../../php/Cache
lrwxrwxrwx 1 root root 17 2009-02-02 00:19 HTTP -> ../../../php/HTTP
drwxr-xr-x 3 root root 4.0K 2009-02-02 00:19 Net
drwxr-xr-x 2 root root 4.0K 2009-02-02 00:19 Onyx
lrwxrwxrwx 1 root root 21 2009-02-02 00:19 PEAR.php -> ../../../php/PEAR.php
lrwxrwxrwx 1 root root 19 2009-02-02 00:19 Smarty -> ../../../php/smarty
drwxr-xr-x 3 root root 4.0K 2009-02-02 00:19 Text
drwxr-xr-x 3 root root 4.0K 2009-02-02 00:19 XML
root@night:/usr/share/serendipity/www/bundled-libs#

Everything apart from the Smarty.class.php is there :(
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by judebert »

It looks like they expect /usr/php/ to include the Smarty stuff. It's possible (almost required, in Debian installations) that the package would therefore depend on Smarty. Make sure that the smarty package is installed (synaptic or aptitude would show you).

Maybe I'm reading that link wrong, but if it's in /usr/share/serendipity/www/bundled-libs, then ../../../ would point to /usr. I just checked the Debian file list for the Smarty package, and all its files get installed in /usr/share/. From a terminal, type 'cd /usr/share/serendipity/www/bundled-libs/Smarty' and see where you wind up. I'm guessing it's a non-existent directory, which would be a package problem. The same problem would apply to the links for Cache, HTTP, and PEAR.php.
Judebert
---
Website | Wishlist | PayPal
sealie
Posts: 4
Joined: Mon Feb 02, 2009 12:40 am

Re: Installation problems on Ubuntu 8.10 Intrepid

Post by sealie »

Thanks for all help everyone, the "hack" to fix this was quite easy. I simply edited the SMARTY_DIR variable in functions_smarty.inc.php from 'Smarty/libs/' to 'Smarty/' so it would look in /usr/share/serendipity/www/bundled-libs/Smarty/Smarty.class.php instead of /usr/share/serendipity/www/bundled-libs/Smarty/libs/Smarty.class.php and everything was working fine :)
Post Reply