Page 1 of 1

Cannot redeclare serendipity_ini_bool()

Posted: Sat Jan 17, 2009 9:16 pm
by roti
Hi!

I get this error calling serendipity_admin.php after upgrade (xdebug enabled) :

Fatal error: Cannot redeclare serendipity_ini_bool() (previously declared in ./include/functions_installer.inc.php:21) in /home/roti/public_html/serendipity/include/functions_installer.inc.php on line 23
Call Stack
# Time Memory Function Location
1 0.0026 211880 {main}( ) ../serendipity_admin.php:0
2 0.2939 8733628 require( './include/admin/upgrader.inc.php' ) ../serendipity_admin.php:340

Where is the problem?

Info:
php5.2.4
apache2.2.8
sqlite db
old serendipity 1.2.1
same problem upgrading to 1.3 or 1.4.1


Roti

Re: Cannot redeclare serendipity_ini_bool()

Posted: Mon Jan 19, 2009 10:51 am
by garvinhicking
Hi!

Seems somehow on your system include_once/require_once is broken and tries to re-include the same file.

Try to disable xdebug.

Regards,
Garvin

Posted: Mon Jan 19, 2009 1:18 pm
by roti
When I change from
include('serendipity_config.inc.php');
to
include_once('serendipity_config.inc.php');
in
serendipity_admin.php line 9, I don't get the error, but get this on the upgrade screen:

serendipity_admin.php corrupt or modified: failed verification

But the upgrade finishes successfull.

Posted: Tue Jan 20, 2009 4:20 pm
by judebert
That's a warning, telling you that your serendipity_admin.php has been corrupted (like through a bad upload) or modified (like changing an include to an include_once). Since you're the one who modified it, you can safely ignore the warning.