coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: meers on October 02, 2006, 03:53:01 PM

Title: Upgraded and now it won't connect with database
Post by: meers on October 02, 2006, 03:53:01 PM
I upgraded and now it can't connect to database

I don't know where to begin to fix the problem

used cpanel for installation and upgrade

THANKS
Title: Re: Upgraded and now it won't connect with database
Post by: kegobeer on October 02, 2006, 05:17:50 PM
Verify the database settings in config.inc.php are correct.
Title: Re: Upgraded and now it won't connect with database
Post by: Joachim Müller on October 02, 2006, 06:10:10 PM
Don't use cpanel/fantastico at all - they are buggy and outdated. Only support method is the one explained in our docs.
Title: Re: Upgraded and now it won't connect with database
Post by: meers on October 02, 2006, 07:16:24 PM
well the config file says this

define('IN_COPPERMINE', true);

require('include/init.inc.php');

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);





$redirect = "admin.php";

$message = <<< EOT

You are trying to access Coppermine's <a href="admin.php">config page</a> using an outdated link - the file config.php has been renamed to admin.php. You probably updated your site and haven't changed your theme as suggested in the <a href="docs/theme/">theme upgrade guide</a>.<br />

You are now being redirected to the actual page you were looking for.

EOT;

pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"100;url=$redirect\" />");

msg_box($lang_info, $message, $lang_continue, $redirect);

pagefooter();

ob_end_flush();

?>
Title: Re: Upgraded and now it won't connect with database
Post by: meers on October 02, 2006, 07:19:35 PM
or how can I point a new installation to an old database?
Title: Re: Upgraded and now it won't connect with database
Post by: kegobeer on October 02, 2006, 07:59:54 PM
Not config.php, config.inc.php.  Look in the /include directory.
Title: Re: Upgraded and now it won't connect with database
Post by: meers on October 02, 2006, 10:14:47 PM
well that would make more sense now wouldn't it!!!

lol duh
sorry

anyway
OK its not configured properly
is there away to retrieve mysql password or is it hopeless?
Title: Re: Upgraded and now it won't connect with database
Post by: kegobeer on October 02, 2006, 11:24:28 PM
If you don't know the MySQL information, perhaps your host can give it to you.
Title: Re: Upgraded and now it won't connect with database
Post by: meers on October 06, 2006, 03:23:58 AM
ok i'm stumped

I can get it to connect to the database

which shows that all the files are there

but only 19 of the 136 photos are showing up

+ you have to be logged in in order to see those files  (which I remember changing, but I can't remember how to change back)

So I guess first I need to know how to make the files viewable to all visitors

then I need to figure out how to make ALL of the photos show up

please help

Title: Re: Upgraded and now it won't connect with database
Post by: Joachim Müller on October 06, 2006, 08:21:16 AM
Quote from: meers on October 06, 2006, 03:23:58 AM
(which I remember changing, but I can't remember how to change back)

So I guess first I need to know how to make the files viewable to all visitors
Allow unlogged users (guest or anonymous) access (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_allow_unlogged_access) (config -> User settings -> Allow unlogged users (guest or anonymous) access -> yes).
We have a strict "one question per thread" policy that you agreed to respect when signing up.
Title: Re: Upgraded and now it won't connect with database
Post by: meers on October 06, 2006, 02:36:56 PM
that setting is checked YES

Still no access for NON administrators

Title: Re: Upgraded and now it won't connect with database
Post by: Joachim Müller on October 10, 2006, 08:42:35 AM
Please post a link and non-admin test user account.