Advanced search  

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]

Pages: [1]   Go Down

Author Topic: CPG Reinstall With Database Failure  (Read 223 times)

0 Members and 1 Guest are viewing this topic.

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 165
CPG Reinstall With Database Failure
« on: October 11, 2019, 07:00:10 am »

Hello:

I'm not sure what to put here because I'm having an issue with a reinstallation. On the original gallery I was running the current stable version of 1.6.06 and the url is: http://treatwilliams.org/gallery.

So here's the issue. Due to a substantial hack, I had to completely delete all files after running the Check Files plugin to check the albums. I found some files that were hacked and or extra files put in by sql injection, including cleaning up the /includes/config.php file and the index. I also moved the site to another host because the new host is more secure and provides a cpanel that my previous host doesn't. So I deleted all extraneous files with the exclusion being my config file and the uploads folder since I'd run the Check Files.

After uploading a new copy of CPG 1.6.06, I then reuploaded the uploades folder with all the pictures, then set about to re-establish the database by creating new DB Name, User, and Password. The DB Host is localhost. After doing all that I get this error:

Code: [Select]
Fatal Error:

When read CONFIG from database

database error: 1146 : Table 'samskara_treatwilgal.cpg16x_config' doesn't exist

I'm not sure what to do right now because I don't understand why it says, "config doesn't exist". I've even tried deleting the 1.6.06 files and reuploading the 1.5.48 version, then running the installer stub, and then reuploading a copy of the database. This is the most frustrating thing because I've done this with all the sites that were hacked on that same server and never encountered an issue like this one. Any help would be most appreciated.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1306
Re: CPG Reinstall With Database Failure
« Reply #1 on: October 11, 2019, 11:17:24 pm »

Do as I directed here and I'll see if I can help you.
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 165
Re: CPG Reinstall With Database Failure
« Reply #2 on: October 11, 2019, 11:51:00 pm »

Ron:

I would love to but the link leads to the Coppermine main forum page.
Logged
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 165
Re: CPG Reinstall With Database Failure
« Reply #3 on: October 11, 2019, 11:51:46 pm »

Sorry. Ignore. The error came from my cellphone. I'm on my computer now.
Logged
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 165
Re: CPG Reinstall With Database Failure
« Reply #4 on: October 11, 2019, 11:54:12 pm »

Ron. Done!
Logged
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1306
Re: CPG Reinstall With Database Failure
« Reply #5 on: October 12, 2019, 01:02:00 am »

Should be okay now.
The prefix in your database was cpg15x_ but your config.inc.php had it recorded as cpg16_x.

[edit]
Removed the file manager before I noticed your issue with displaying full sized images. The problem is with your theme. You'll likely have to do something like this.
« Last Edit: October 12, 2019, 01:12:36 am by ron4mac »
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 165
Re: CPG Reinstall With Database Failure
« Reply #6 on: October 12, 2019, 01:26:39 am »

Ron:

Most appreciative. So the error was in the config file? I have fixed the errors in the theme and all is displaying as it should.

Thank you for your help. You're a lifesaver.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my head.
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 22 queries.