Page 1 of 1

Install Event-Plugins: Warnings and Error

Posted: Wed Feb 28, 2007 10:09 am
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!

Re: Install Event-Plugins: Warnings and Error

Posted: Wed Feb 28, 2007 12:34 pm
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

Re: Install Event-Plugins: Warnings and Error

Posted: Wed Feb 28, 2007 1:13 pm
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!

Re: Install Event-Plugins: Warnings and Error

Posted: Wed Feb 28, 2007 2:14 pm
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