Page 1 of 1
Error Statements after upgrade to 1.1
Posted: Mon Feb 12, 2007 2:47 pm
by sabato
Hey guys, i just updated my serendipidy installation to 1.1 and i get my beloved error messages.
I think it has something to do with the chmod settiongs on specific files or folders but dont know exactly.
This error message appears first
Code: Select all
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown: Failed opening '/homewww/sabato/index.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
After i set the chmod properties of the index.php to 775 i get the following error message
Code: Select all
Warning: include(serendipity_config.inc.php) [function.include]: failed to open stream: Permission denied in /homewww/sabato/index.php on line 23
Warning: include() [function.include]: Failed opening 'serendipity_config.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /homewww/sabato/index.php on line 23
Fatal error: Call to undefined function serendipity_getUriArguments() in /homewww/sabato/index.php on line 42
Most (probably all) of my directories and files are chmod 770, which directories and or files need to be changed or does these error messages have nothing to do with the chmod?
Thx in advanced
sabato
Posted: Mon Feb 12, 2007 3:18 pm
by sabato
After i chmodded everything to 775 i get the installation screen, but when i click the installation link i get the following error
Code: Select all
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/share/php/PEAR.php:765) in /homewww/sabato/bundled-libs/PEAR.php on line 775
Any ideas?
Posted: Mon Feb 12, 2007 4:10 pm
by garvinhicking
Hi!
If you get the INSTALLATIOn screen, serendipity thinks it is not installed.
Check if serendipity_config_local.inc.php is read and writable! That file needs to exist so that s9y knows it is installed.
The PEAR-error can happen if any application you inserted yourself is calling the PEAR files from your webprovider instead of the s9y bundled ones. Are you using any auto_prepend PHP scripts?
Regards,
Garvin
Posted: Mon Feb 12, 2007 4:20 pm
by sabato
I think the installation screen is fine (because i just uploaded the new serendipity version), but when i call the installation function (click on the link) i get the pear error message.
The pear error message is pointing to the following function within the pear.php
Code: Select all
// {{{ _PEAR_call_destructors()
function _PEAR_call_destructors()
{
global $_PEAR_destructor_object_list;
if (is_array($_PEAR_destructor_object_list) &&
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
if (@PEAR::getStaticProperty('PEAR', 'destructlifo')) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}
while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
if (method_exists($objref, $destructor)) {
$objref->$destructor();
break;
} else {
$classname = get_parent_class($classname);
}
}
}
// Empty the object list to ensure that destructors are
// not called more than once.
$_PEAR_destructor_object_list = array();
}
// Now call the shutdown functions
if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) {
foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) {
call_user_func_array($value[0], $value[1]);
}
}
}
My guess is (because it was running just fine before) the the folder where s9y is installed in is chmod 770 should be changed to 775.
Bad thing about this, i'm cant change the chmod of this foler cause i'm not the owner, therefore i have to wait a little to contact my friend =)
Posted: Tue Feb 13, 2007 9:37 am
by sabato
ok it had nothing to do with the chmod!
Any other ideas? I would really appreciate it.
Before the update everything worked fine, i have installed some plugins, but thats all, nothing else wich could interfere with the pear!
Thx in advance
Posted: Tue Feb 13, 2007 9:40 am
by garvinhicking
Hi!
So you are absolutely sure that all file in 'bundled-libs' directory exist as delivered in the release ZIP? And ALL the files in there and all subdirectories are readable?
A quick fix for the behaviour might be for you to edit the serendipity_config.inc.php file and set the $serendipity['use_PEAR'] variable to 'false'. This will then make sure not to include an external PEAR library.
But, actually, the library in bundled-libs should not be included in first place, if your server has a local PEAR; so it might be that your server's PEAR is not properly installed, but s9y tries to use it...
HTH,
Garvin
Posted: Tue Feb 13, 2007 10:32 am
by sabato
ok problem solved!
My $serendipity['use_PEAR'] was set to "false". I dont know why and i'm 100% sure i never changed this variable to false and i guess its preset to "true". sounds like sabotage =)
Well thanks for all the help
Greetings
sabato