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: Problem with ugrading  (Read 3220 times)

0 Members and 1 Guest are viewing this topic.

cleo_33

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Problem with ugrading
« on: September 02, 2013, 07:09:29 pm »

I tried to ugrade my gallery but I ended with reinstalled gallery. http://weheartbella.com/photogallery/
I made a back up but I don't know how to use it to return it.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4726
    • Windsurf.me
Re: Problem with ugrading
« Reply #1 on: September 02, 2013, 07:40:43 pm »

If your database is in tact and your albums folder is still present with all its files then it should be a very simple task to restore your old gallery. If the albums folder is still there in the current install then you would probably just need to copy the old /include/config.inc.php file from your backup into the same location in the new install. The run update.php and hopefully things will be back.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

cleo_33

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Problem with ugrading
« Reply #2 on: September 03, 2013, 01:14:17 pm »

Yes the albums folder is still there. But the back up is .sql and I don't know how to use it..
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Problem with ugrading
« Reply #3 on: September 03, 2013, 02:14:17 pm »

From our docs:
Restore the database
Restore the mySQL table by running the queries of the dump files you created on the old server. To accomplish that, you will need the same tool on the new server (the target server) that you have used on the old server to create the backup; if you have used phpMyAdmin on the old server to create the backup you should use phpMyAdmin on the new server as well to restore the dump.

Edit the database settings
Your new webhost must have provided you with the mySQL access data (you already had to use that data to restore the dump on the new server). That mySQL data usually will differ from the mySQL data on the old webserver, so you will have to edit the file that contains those data. Use a plain text editor (notepad.exe is fine) and edit include/config.inc.php: inside that file, you will find the old mySQL data that you will need to overwrite with the mySQL data for the new server.

If you don't know how to use phpMyAdmin, please google for it.
Logged

cleo_33

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Problem with ugrading
« Reply #4 on: September 03, 2013, 05:15:58 pm »

I did what you told me and completed the update but the photos still don't appear.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Problem with ugrading
« Reply #5 on: September 04, 2013, 11:06:03 am »

Then you have done something wrong. Have a look at your restored database. The tables "albums" and "pictures" should contain the references to your albums and pictures. If it's empty, you're either browsing the wrong database or haven't imported anything.

If you verified your MySQL data has been restored successful, check if the values in include/config.inc.php match your restored MySQL database (carefully look at $CONFIG['dbname'] and $CONFIG['TABLE_PREFIX']).
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.