Installation via CVS

Having trouble installing serendipity?
Post Reply
jromeyn
Posts: 4
Joined: Thu May 20, 2004 5:32 pm

Installation via CVS

Post by jromeyn »

I installed the program via CVS and everything work great :D . I can now add users very easy. I'm planning to use this for my students. However, I get a warning on top of the blog page:
Warning: Failed opening 'serendipity_config.inc.php' for inclusion (include_path='/home/www//serendipity/PATH_SEPARATOR/home/www//serendipity/bundled-libs/PATH_SEPARATOR.:/usr/share/pear') in /home/www/serendipity/templates/default/layout.php on line 11

Can you help?
By Design
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Installation via CVS

Post by garvinhicking »

jromeyn wrote:I installed the program via CVS and everything work great :D . I can now add users very easy. I'm planning to use this for my students. However, I get a warning on top of the blog page:
Warning: Failed opening 'serendipity_config.inc.php' for inclusion (include_path='/home/www//serendipity/PATH_SEPARATOR/home/www//serendipity/bundled-libs/PATH_SEPARATOR.:/usr/share/pear') in /home/www/serendipity/templates/default/layout.php on line 11

Can you help?
That looks very strange. PATH_SEPARATOR is a PHP internal constant but seems to not be used in your installation. Which PHP and webserver version do you use?

Did you modify your layout.php file in the templates/default/ directory?

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/
jromeyn
Posts: 4
Joined: Thu May 20, 2004 5:32 pm

Install problem

Post by jromeyn »

No, I did not make any changes. I installed the latest stable version first and it did not have these errors. But when I installed it via CVS on two different servers with Redhat 9.0 installed on it, I got the same errors on both. The reason for the later install is to make the instllation of new users easy.
By Design
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Install problem

Post by garvinhicking »

jromeyn wrote:No, I did not make any changes. I installed the latest stable version first and it did not have these errors. But when I installed it via CVS on two different servers with Redhat 9.0 installed on it, I got the same errors on both. The reason for the later install is to make the instllation of new users easy.
Again, which PHP/Webserver version are you running? Could you please provide a phpinfo(); output of that install?

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/
dakira
Regular
Posts: 20
Joined: Tue May 25, 2004 4:21 am

Post by dakira »

Hi,

I have the exact same problem at blog.yumdap.net. phpinfo() is at www.yumdap.net/info.php. It is a clean install. Nothing modified. Another strange thing is that the navigation on the right repeats itself 5 times?!
The layout.php in templates/default contains

Code: Select all

include_once('serendipity_config.inc.php');
just as it should be. If I give it the complete path the error goes away but the navigation on the right still repeats itself.

Hope you know what to do

dakira
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I found out that PATH_SEPARATOR is not available before PHP 4.3.0 versions.

Please open your compat.php file and insert this at the top of the file:

Code: Select all

if (!defined('PATH_SEPARATOR')) {
    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
        define('PATH_SEPARATOR', ';');
    } else {
        define('PATH_SEPARATOR', ':');
    }
}

if (!defined('DIRECTORY_SEPARATOR')) {
    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
        define('DIRECTORY_SEPARATOR', '\\');
    } else {
        define('DIRECTORY_SEPARATOR', '/');
    }
}
and tell me if it works out for you.

Dakira, about your other problem: Look in your plugin configuration, I guess that all plugins are installed 5 times there? Maybe you installed s9y multiple times to the same database?

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/
dakira
Regular
Posts: 20
Joined: Tue May 25, 2004 4:21 am

Post by dakira »

Thank you! Your code solved the problem!
And yes, the plugins where installed 5 times ;)

Cheers
dakira
jromeyn
Posts: 4
Joined: Thu May 20, 2004 5:32 pm

compat.php

Post by jromeyn »

Yes, thank you that solved the problem
By Design
Post Reply