Error after Update: weblogping

Having trouble installing serendipity?
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Error after Update: weblogping

Post by mike »

Hi,

I updated my 1.0.3 Blog to 1.1. Everything seems to be OK.
But if I want to save an entry I got the following error messages.
(The entry is saved an visible.)

Code: Select all

Warning: event_hook() [function.event-hook]: open_basedir restriction in effect. File(/usr/share/php/XML/RPC.php) is not within the allowed path(s): (/home/www/webxxx/html/:/home/www/webxxx/phptmp/:/home/www/webxxx/files/:/home/www/webxxx/atd/) in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook(XML/RPC.php) [function.event-hook]: failed to open stream: Operation not permitted in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook() [function.include]: Failed opening 'XML/RPC.php' for inclusion (include_path='.:/usr/share/php:/home/www/web858/html/blog/bundled-libs/:/home/www/web858/html/blog/bundled-libs/Smarty/libs/:/home/www/web858/html/blog/:') in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150
Sende XML-RPC ping zu rpc.pingomatic.com...
Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /home/www/webxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 172
A second FTP - Upload doesn't change anything.

Ciao,
Mike
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

Next Error:

If I open "Plugins verwalten" (?plugin admin) and then
"Hier klicken, um Ereignis-Plugin zu installieren" (? install event plugins)
I got this error:

Code: Select all

Warning: Invalid argument supplied for foreach() in /home/www/web858/html/blog/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php on line 154

Warning: Invalid argument supplied for foreach() in /home/www/web858/html/blog/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php on line 154
But only once ???
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

I searched a little bit:

serendipity_event_weblogping.php on line 150

Code: Select all

include_once(S9Y_PEAR_PATH . "XML/RPC.php");
S9Y_PEAR_PATH is empty!

HTH,

Mike
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

I've got such errors, and the problem was the bundled-libs directory. Try to completely upload it again.
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

That did not help, the error is still there :(

I did the FTP-transfer (FileZilla) with "automatic" selection (binary/ascii). Are there any special suffix which I can check?

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

Post by garvinhicking »

Hi mike!

Your provider misconfigured your web presence in this case.

He set an basedir restriction, but advocates the server-installed "PEAR" libraries via include_path on his server.

Either he must include the PEAR path in your basedir-restriction, or he must remove PEAR frmo the include_path setting in PHP.ini.

You on your end can do the following thing:

Edit your serendipity_config_local.inc.php file (check the FAQ about 'fixperm' if you have no write access to that file) and insert:

Code: Select all

$serendipity['use_PEAR'] = false;
This will instruct s9y to NOT use the advocated PEAR libraries on the server, but the ones provider with serendipity.

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/
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

hi garvin,

thanks for your information. After some days in "the Eifel" ;-) I read your answer now.
I asked my provider for the configuration ... (waiting for the answer)

I tried your "add-on" for the serendipity_config_local.inc.php, but nothing happens.
I download, edit and upload the file. After that I tried to write a new entry, but the same error occurred again.

Code: Select all

Warning: event_hook() [function.event-hook]: open_basedir restriction in effect. File(/usr/share/php/XML/RPC.php) is not within the allowed path(s): (/home/www/webxxx/html/:/home/www/webxxx/phptmp/:/home/www/webxxx/files/:/home/www/webxxx/atd/) in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook(XML/RPC.php) [function.event-hook]: failed to open stream: Operation not permitted in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook() [function.include]: Failed opening 'XML/RPC.php' for inclusion (include_path='.:/usr/share/php:/home/www/webxxx/html/blog/bundled-libs/:/home/www/webxxx/html/blog/bundled-libs/Smarty/libs/:/home/www/webxxx/html/blog/:') in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150
Sende XML-RPC ping zu rpc.pingomatic.com...
Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 172
Ciao,
Mike
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, still your local PEAR is included. This might be because your provider blocks the setting of the 'include_path' string.

Sadly in this case the only option you have is that your provides fixes his PEAR installation :(

Best 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/
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

Hi Garvin,

next round :(

Question from my provider:
welche Änderungen wurden durch das Update durchgeführt?
Bitte erfragen Sie dies beim Support von Serendipity.
Could you help again, pease?

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

Post by garvinhicking »

Hi!

Neue Serendipity versionen benutzen nun den vom Webserver beworbenen "include_path", damit lokal vorhandene PEAR-Versionen eingebunden werden.

Dein Webserver gibt einen include_path vor, der effektiv wegen open_basedir-Settings nicht genutzt werden kann. Da Serendipity aber in aktuellen Versionen lokalem PEAR höhere Priorität einräumt, kollidiert das.

Sprich, dein Webhoster soll entweder die lokale PEAR-Version löschen, oder er sollen open_basedir so setzen dass das lokale PEAR genutzt werden kann oder er soll include_path so setzen, dass das lokale PEAR nicht gesetzt wird.

(For english speakers: This is the same text that I already posted on Januar 2nd, 2007)

Viele Grüße,
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/
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

Thanks!
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

The provider:
Der Pfad zu open_basedir wurde gesetzt.
But:
Warning: event_hook() [function.event-hook]: open_basedir restriction in effect. File(/usr/share/php/XML/RPC.php) is not within the allowed path(s): (.:/home/www/webxxx) in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook(XML/RPC.php) [function.event-hook]: failed to open stream: Operation not permitted in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150

Warning: event_hook() [function.include]: Failed opening 'XML/RPC.php' for inclusion (include_path='.:/usr/share/php:/home/www/webxxx/html/blog/bundled-libs/:/home/www/webxxx/html/blog/bundled-libs/Smarty/libs/:/home/www/webxxx/html/blog/:') in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 150
Sende XML-RPC ping zu rpc.pingomatic.com...
Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /home/www/webxxx/html/blog/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 172
Can I check the path?

Anything else I can do? Upload again and start the update again?

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

Post by garvinhicking »

Hi!

Sadly what your provider said obviously can't be true, since it doesn't work yet ;)

Maybe he didn't restart the webserver for the changes to take effect?

Best 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/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

mike wrote:The provider:
Der Pfad zu open_basedir wurde gesetzt.
Did you have the output of php-info?
Ciao, Stephan
mike
Regular
Posts: 25
Joined: Sun Nov 12, 2006 9:13 pm
Location: Düsseldorf
Contact:

Post by mike »

stm999999999 wrote:Did you have the output of php-info?
Yes:
include_path .:/usr/share/php (local and master value)
open_basedir .:/home/www/webxxx (local value, master = no value)

Are the dot and the colon ok in front of the path?

Ciao,
Mike
Post Reply