Fatal Error 'redeclare serendipity_db_update() '

Having trouble installing serendipity?
Post Reply
Math

Fatal Error 'redeclare serendipity_db_update() '

Post by Math »

hello,

I run into this error..
Fatal error: Cannot redeclare serendipity_db_update() (previously declared in c:\program files\easyphp1-7\www\hardloopgroepNieuwstadt\weblog\include\db\db.inc.php:9) in c:\program files\easyphp1-7\www\hardloopgroepnieuwstadt\weblog\include\db\db.inc.php on line 9

Anybody knows what to do to fix this?

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

Re: Fatal Error 'redeclare serendipity_db_update() '

Post by garvinhicking »

This sounds like an error in your PHP installation (easyphp?), which is not able to properly resolve and distinct multiple PHP files.

We use a include_once call to include the file, and if the error of yours appears it means your PHP installation was not able to include a file only once.

Please try to use XAMPP as distribution, s9y is known to work in that environment.

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/
Snoopy
Posts: 1
Joined: Fri Apr 07, 2006 7:18 pm

Re: Fatal Error 'redeclare serendipity_db_update() '

Post by Snoopy »

I hade the same error on a windows system !
- you can do the following:

edit the file functions_installer.inc.php at line 723

before:

Code: Select all

$serendipity['dbType'] = $_POST['dbType'];
    // Probe database
    // (do it after the dir stuff, as we need to be able to create the sqlite database)
    @include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
    // For shared installations, probe the file on include path
    include_once(S9Y_INCLUDE_PATH . 'include/db/db.inc.php');
after:

Code: Select all

$serendipity['dbType'] = $_POST['dbType'];
    // Probe database
    // (do it after the dir stuff, as we need to be able to create the sqlite database)
    //@require_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
    // For shared installations, probe the file on include path
    require_once(S9Y_INCLUDE_PATH . 'include/db/db.inc.php');
after this i could test it on my windows system

greetings from Hamburg :wink:
b-707
Posts: 3
Joined: Fri Aug 18, 2006 12:04 pm

Re: Fatal Error 'redeclare serendipity_db_update() '

Post by b-707 »

Thx, Snoopy.
You helped me.

Josef
(Munich)
Post Reply