Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Upgraded and now it won't connect with database  (Read 5303 times)

0 Members and 1 Guest are viewing this topic.

meers

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Upgraded and now it won't connect with database
« 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Upgraded and now it won't connect with database
« Reply #1 on: October 02, 2006, 05:17:50 pm »

Verify the database settings in config.inc.php are correct.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upgraded and now it won't connect with database
« Reply #2 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.
Logged

meers

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upgraded and now it won't connect with database
« Reply #3 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();

?>
Logged

meers

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upgraded and now it won't connect with database
« Reply #4 on: October 02, 2006, 07:19:35 pm »

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

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Upgraded and now it won't connect with database
« Reply #5 on: October 02, 2006, 07:59:54 pm »

Not config.php, config.inc.php.  Look in the /include directory.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upgraded and now it won't connect with database
« Reply #6 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?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Upgraded and now it won't connect with database
« Reply #7 on: October 02, 2006, 11:24:28 pm »

If you don't know the MySQL information, perhaps your host can give it to you.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upgraded and now it won't connect with database
« Reply #8 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

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upgraded and now it won't connect with database
« Reply #9 on: October 06, 2006, 08:21:16 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.
Logged

meers

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Upgraded and now it won't connect with database
« Reply #10 on: October 06, 2006, 02:36:56 pm »

that setting is checked YES

Still no access for NON administrators

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upgraded and now it won't connect with database
« Reply #11 on: October 10, 2006, 08:42:35 am »

Please post a link and non-admin test user account.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.