Page 1 of 1

solution attempt...failed

Posted: Wed Dec 09, 2009 10:26 pm
by deepspace
Hello, I decided that I needed to completely re-install and start from scratch. The set up is:
shared hosting plan with separate domains in their respective folder.
One serendipity blog installed no problems there. While attempting to install for a separate domain (not the same data base) after I attempt to finish I get this error:
Fatal error: Cannot redeclare serendipity_db_update() (previously declared in /home/content/l/e/e/leeofsted/html/include/db/db.inc.php:27) in /home/content/l/e/e/leeofsted/html/blog/include/db/db.inc.php on line 56.
It says (to me at least) something with the main site is conflicting here. Can one not do this?
This is not a sub domain.
Thanks

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 9:55 am
by garvinhicking
Hi!

Is the path that is given in the error message the proper path to where you second installation is? Or does it refer to the first installation? Where you able to install s9y to the end, or do you get this error message during installation? Which database version are you using?

Regards,
Garvin

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 4:06 pm
by deepspace
Hi, its the path to the second install. I got to the complete install end. This error came up upon finishing the initial configuration (it came up if I used basic or advanced). Data base is mysql 5.0.
Thanks-

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 5:46 pm
by garvinhicking
Hi!

That's strange. Can you check to upload all the fresh files of the include/ directory and subdirectories and check the FTP tool if there are any errors? Usually this error only happens when either wrong files get included, the selected database type does not exist or there are garbaged files...

Regards,
Garvin

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 6:25 pm
by deepspace
I just re-downloaded from Serendipity site a fresh copy. uploaded entire includes folder (no ftp errors) same error:
Fatal error: Cannot redeclare serendipity_db_update() (previously declared in /home/content/l/e/e/leeofsted/html/include/db/db.inc.php:27) in /home/content/l/e/e/leeofsted/html/blog/include/db/db.inc.php on line 56
Thanks-

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 8:35 pm
by garvinhicking
Hi!

Which s9y version did you download? 1.5-beta, 1.4.2?

Are you able to view the installation page for advanced/beginner installation, where you select the database type and version - or do you get the error there already, I didn't understand that?

Regards,
Garvin

Re: solution attempt...failed

Posted: Thu Dec 10, 2009 8:54 pm
by deepspace
v1.4.2 is correct. I get the error after I complete the installation page for advanced/beginner no matter which choice I make (advanced or beginner) I tried them both.
Thanks-

Re: solution attempt...failed

Posted: Fri Dec 11, 2009 9:24 am
by garvinhicking
Hi!

Okay, so you do get to see that advanced/beginner page. What do you select in the database type dropdown exactly? mysql?

Regards,
Garvin

Re: solution attempt...failed

Posted: Fri Dec 11, 2009 4:01 pm
by deepspace
yes Mysql. same as previous install
Thanks-

Re: solution attempt...failed

Posted: Fri Dec 11, 2009 4:53 pm
by garvinhicking
Hi!

Phew. This is really weird. I'd love to solve the issue, would it be possible to give me temporary access (FTP) to your installation, and we could try to reproduce the issue so that I can have a look? If that's fine for you, please send me a PM!

Regards,
Garvin

Re: solution attempt...failed

Posted: Fri Dec 11, 2009 5:10 pm
by deepspace
pm sent, Thanks!

Re: solution attempt...failed

Posted: Sat Dec 12, 2009 12:10 pm
by garvinhicking
Hi!

I found the error, thanks for giving me access! :)

It was a bit tricky, I didn'T spot it at first while I should have. The error message mentioned /home/content/l/e/e/leeofsted/html/blog as the directory where the current db.inc.php resides in, but /home/content/l/e/e/leeofsted/html/ (WITHOUT *blog*) as the main directory.

Serendipity includes its files based on a "DOCUMENT_ROOT" directive that is specified by the webserver. In your case, your system does not set the DOCUMENT_ROOT to the actual directory of your domain, but to a directory one higher, but there is already a serendipity installation, that serendipity will then use.

I fixed your installation with a line in serendipity_config.inc.php:

Code: Select all

// FIX
$_SERVER['DOCUMENT_ROOT'] = dirname(__FILE__);
at the top of the file. This will adjust that variable. However, the proper fix would be to get in touch with your server provider and ask them, if they can make sure that your domains all get the appropriate DOCUMENT-Root, else you might get some other troubles with other software or maybe some specific serendipity plugins...

HTH,
Garvin