Page 1 of 1
Problems with Install/Update of Plugins
Posted: Mon Jan 22, 2007 4:36 pm
by T.Sonnenschein
Hi!
I have a problem with my s9y installation. I'm currently running s9y version 1.1.
If I try to update an existing plugin or install an new one I only get following message:
Versuche URL package_event_de.xml zu öffnen...
217391 bytes von bereits bestehender Datei geladen. Speichere Inhalt als foo/templates_c/package_event_de.xml...
...nothing happens.
I noticed this problem when I had version 1.0.1 installed. Since i couln'd fix it, I waited and upgraded to 1.1, but the problem is still there.
I've already deleted all files in the templates_c directory, but nothing happend.
The only thing I could think of that changed during the last weeks is the version of php my provider uses. But I'm not sure wether it is importand or not. Currently my provider uses 5.2.0
For sure it worked back when I used s9y 0.9 and my provider was running an older version of php.
Re: Problems with Install/Update of Plugins
Posted: Tue Jan 23, 2007 9:14 am
by garvinhicking
Hi!
If nothing else happens on that page it usually means a fatal PHP error happens and your provider has disabled the display of PHP errors.
Fatal PHP errors at that place usually mean "out of memory". Can you ask your provider to enable display_Errors for PHP or look into a PHP error log to find the error message that is displayed?
Best regards,
Garvin
Posted: Tue Jan 23, 2007 12:53 pm
by T.Sonnenschein
Ok, I tried that.
My provider already answered my mail.
He just said to put ini_set('display_errors', 1); into the index.php, but i think it must be in the serendipity_admin.php.
Both didn't bring any result.
The xml file itself is written correctly to the templates_c dir. Every other function in s9y works fine. All plugins do their work and changing any setting works too.
Posted: Tue Jan 23, 2007 1:11 pm
by garvinhicking
Hi!
ini_set() might not help when Fatal Parse errors are produced, thus you'll need to set it either in .htaccess or the global vhost configuration.
HTH,
Garvin
Posted: Tue Jan 23, 2007 1:24 pm
by T.Sonnenschein
After reading an article about error handling in php 4 and 5 I already thought that this wouldn't help. That's why I tried something else:
I've changed the 'admin_footer' passage in the serendipity_admin.php and included echo "<br /><b>php_errormsg:</b> $php_errormsg"; at the end.
After trying to install an plugin, the admin main page now shows a message saying:
php_errormsg: Non-static method serendipity_plugin_api::hook_event() should not be called statically
Is this the reason for the problem?
Posted: Tue Jan 23, 2007 1:31 pm
by garvinhicking
Hi!
Good try

So it seems as if PHP actually does fetch the list and interates it, and does not fatally bail out, if it gets to the bottom of the footer.
The message there should only be a E_NOTICE and not have any real implications.
I could offer to have a look at your installation, if you could give me temporary FTP access to that blog? Else I'm afraid I can't exactly tell what's happening. My best bet is that your provider uses mod_security or maybe features of a suhosin patch that use content-filtering for rejecting plugin downloads...?!
Best regards,
Garvin
Posted: Tue Jan 23, 2007 2:16 pm
by T.Sonnenschein
Nope, the errormessage only appears back on the main page.
After pressing the button to install a plugin only the text for the downloading of the xml file appears.
Therefor i also placed the errormessage code snippet into the head of the admin page, directly under the headline h1. The errormessage is of course the same.
Obviously my provider uses a suhosin plugin. But I can't say which 'feature' kill my update-process.
@Garvin: sent you a PM.