Install Event-Plugins: Warnings and Error

Having trouble installing serendipity?
Post Reply
Ramoney
Regular
Posts: 9
Joined: Wed Feb 28, 2007 10:00 am

Install Event-Plugins: Warnings and Error

Post by Ramoney »

Hi all, an new installation of Serendipity 1.1.1 with PHP 4.3.2 shows the following errors when trying to install new "event-plugins":

Code: Select all

Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/HTTP/Request.php) is not within the allowed path(s): (/home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs:/tmp) in /home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 3

Warning: main(HTTP/Request.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 3

Fatal error: main(): Failed opening required 'HTTP/Request.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/bundled-libs/:/home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/bundled-libs/Smarty/libs/:/home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/:') in /home/httpd/vhosts/xxx.de/subdomains/s9y/httpdocs/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 3
[/size]

I never had this problem before - not even with other s9y-installations on the same server. Can someone help please!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Install Event-Plugins: Warnings and Error

Post by garvinhicking »

Hi!

Could you try to edit your serendipity_config.inc.php and search this:

Code: Select all

if ($use_include) {
    @define('S9Y_PEAR',      true);
    @define('S9Y_PEAR_PATH', '');
} else {
    @define('S9Y_PEAR', false);
    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
}
replace it with:

Code: Select all

if ($use_include !== $false && $use_include == $new_include) {
    @define('S9Y_PEAR',      true);
    @define('S9Y_PEAR_PATH', '');
} else {
    @define('S9Y_PEAR', false);
    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
}
If that doesn't help, you could try setting $serendipity['use_PEAR'] = false in the same file.

For an explanation of this, see this thread:

http://board.s9y.org/viewtopic.php?t=82 ... penbasedir

HTH,
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/
Ramoney
Regular
Posts: 9
Joined: Wed Feb 28, 2007 10:00 am

Re: Install Event-Plugins: Warnings and Error

Post by Ramoney »

garvinhicking wrote:Could you try to edit your serendipity_config.inc.php and search this:

Code: Select all

if ($use_include) {
    @define('S9Y_PEAR',      true);
    @define('S9Y_PEAR_PATH', '');
} else {
    @define('S9Y_PEAR', false);
    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
}
replace it with:

Code: Select all

if ($use_include !== $false && $use_include == $new_include) {
    @define('S9Y_PEAR',      true);
    @define('S9Y_PEAR_PATH', '');
} else {
    @define('S9Y_PEAR', false);
    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
}
Replaced the code, now everything works perfectly.
Thank you Garvin, you're a hero!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Install Event-Plugins: Warnings and Error

Post by garvinhicking »

Hi Ramoney!

Great, thanks for telling me. This fix is containde in Serendipity 1.2, so you don't have to do that the next time when you update :)

Have fun,
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/
Post Reply