Upgraded and now it won't connect with database Upgraded and now it won't connect with database
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Upgraded and now it won't connect with database

Started by meers, October 02, 2006, 03:53:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

meers

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

kegobeer

Verify the database settings in config.inc.php are correct.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

Don't use cpanel/fantastico at all - they are buggy and outdated. Only support method is the one explained in our docs.

meers

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();

?>

meers

or how can I point a new installation to an old database?

kegobeer

Not config.php, config.inc.php.  Look in the /include directory.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

meers

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?

kegobeer

If you don't know the MySQL information, perhaps your host can give it to you.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

meers

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


Joachim Müller

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 (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.

meers

that setting is checked YES

Still no access for NON administrators


Joachim Müller

Please post a link and non-admin test user account.