coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: desert_dave on March 06, 2005, 07:30:12 PM

Title: backup to new server error
Post by: desert_dave on March 06, 2005, 07:30:12 PM
Hi Guys,
I am changing servers and want the migration to go smooth so I backed up and installed the copy on the new server before changing over. But when I tried to open cpg132 I got a fatal error. So I tried a fresh copy of cpg132 and it worked fine. But the minute I reload the backed-up include file from the original site I get a

Notice: Undefined index: debug_mode in /home/creating/public_html/gallery/include/functions.inc.php on line 96
Fatal error :

??
Thanks,
dave

Title: Re: backup to new server error
Post by: Nibbler on March 06, 2005, 09:27:17 PM
You need to change the details in include/config.inc.php if you move server.
Title: Re: backup to new server error
Post by: desert_dave on March 06, 2005, 10:16:21 PM
Same details on both. same db name, password ect.
double checked it and still same error.
??
Title: Re: backup to new server error
Post by: donnoman on March 06, 2005, 10:33:57 PM
what does the old functions.inc.php contain that you wan't back? Why not just run with the current functions.inc.php?

I suggest doing a winmerge between the working functions.inc.php and the non working.
Title: Re: backup to new server error
Post by: desert_dave on March 06, 2005, 11:09:46 PM
Everything was ftp'd to the new server including "old functions' I didn't touch or take out anything.
I ftp'd my phpbb2 board also and it runs fine on the same db on the new server. So it's a problem w/ coppermine.

got me totally stumped.
Title: Re: backup to new server error
Post by: donnoman on March 06, 2005, 11:24:02 PM
do a winmerge between those two files, obviously something has been introduced into your new copy.
Title: Re: backup to new server error
Post by: desert_dave on March 06, 2005, 11:42:51 PM
Well, after screwing around with it for 4 hrs, I'm not sure what I finally did but it will come up now but only with the full address /gallery/index.php
why would that be?
Title: Re: backup to new server error
Post by: donnoman on March 07, 2005, 12:03:28 AM
If you won't bother to take the advice your given, why are you asking for help?
Title: Re: backup to new server error
Post by: desert_dave on March 07, 2005, 12:20:13 AM
Quote from: donnoman on March 07, 2005, 12:03:28 AM
If you won't bother to take the advice your given, why are you asking for help?

Probably because your advice is bad. Where do you see I have two copies to merge in the first place. I have one copy and it's pretty damn hard to merge one copy of anything. I suggest YOU understand the problem before giving advice.
-dd
Title: Re: backup to new server error
Post by: donnoman on March 07, 2005, 12:40:37 AM
Quote
So I tried a fresh copy of cpg132 and it worked fine.

So by my count you have two copies, the one that doesn't work, and the fresh one that does.

I can only go by what you say... and you haven't given a whole lot of information to go on... not even a link to your site.

Title: Re: backup to new server error
Post by: Tranz on March 07, 2005, 01:21:37 AM
Quote from: desert_dave on March 06, 2005, 11:42:51 PM
Well, after screwing around with it for 4 hrs, I'm not sure what I finally did but it will come up now but only with the full address /gallery/index.php
why would that be?
It's probably a server setting where index.php isn't being recognized as a legit index file.


To make index.php your index page, you can edit the .htaccess file located in your root directory (depending on your web host). If you do not have this file, you can create it.

To change the default page, either edit the existing DirectoryIndex line or add the following:

    DirectoryIndex index.php

This will make index.php the default page.

By using a .htaccess file in a subdirectory, you can specify a different default page for that one directory without affecting the rest of your site.

If you can't do this you need to contact your web host.