coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: KPalicz on June 26, 2007, 01:04:20 AM

Title: Moved Folder, Now Gallery is messed Up
Post by: KPalicz on June 26, 2007, 01:04:20 AM
Somehow someone accidentally moved the gallery to some other folder.  Moving the folder back where it is supposed to be didn't fix it.  It just says "Fatal error :" if you go to the page.  In the cpanel it isn't registered as installed either. 

I reinstalled, but how do I restore all the pics and users and ratings and themes from our install?
Title: Re: Moved Folder, Now Gallery is messed Up
Post by: Hein Traag on June 26, 2007, 07:35:25 AM
If the folder is in it's correct position, as before the unwanted move, and you backup your mysql database on a regular basis you should be ok by restoring the db backup. Should work, it did for me once when i had a similair situation.

[offtopic]
And try not to curse when you are posting a request for help  ;)
[/offtopic]
Title: Re: Moved Folder, Now Gallery is messed Up
Post by: KPalicz on June 26, 2007, 05:02:31 PM
How do I restore the dp backup?

I currently have three databases associated with this gallery.  copp1, copp2, and copper.  I think copper is from when I just tried reinstalling the gallery.  I'm not sure what copp2 is, and I think copp1 is what I want.  I don't think the databases were affected by the folder move, but are the files just not recognizing the right db now? 

I'm not much of a computer guy, heh. 
Title: Re: Moved Folder, Now Gallery is messed Up
Post by: Sami on June 26, 2007, 05:29:58 PM
First of all
- Do not use Auto installer Crap like Fantastico

Here what you can do

- Make a backup from old gallery specially albums folder

- Check your old gallery , by downloading {old gallery root}/include/config.inc.php to your local PC or viewing with Cpanel's file manager , and find out your old DB configuration

- Then go back to your old gallery and try to fix it , let's try to upgrade it , do as suggested on upgrading (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) documentation said

- Now if you get error again enable debug manually (http://coppermine-gallery.net/tutorial/debug_mode.php) and post actual error here
Title: Re: Moved Folder, Now Gallery is messed Up
Post by: Joachim Müller on June 26, 2007, 05:58:07 PM
Quote from: KPalicz on June 26, 2007, 01:04:20 AM
Somehow someone accidentally moved the gallery to some other folder.  Moving the folder back where it is supposed to be didn't fix it.
Moving the entire coppermine folder around on the server definitely won't break the gallery, as all links within it are relative to the gallery root. You must have moved stuff around only partly.

Quote from: KPalicz on June 26, 2007, 01:04:20 AM
I reinstalled, but how do I restore all the pics and users and ratings and themes from our install?
Re-installing was not a bright move. You should have tried fixing the gallery that displayed the error message instead. Coppermine is not just a desktop app like solitaire that you install, uninstall and move around.
If you don't have a database backup from your initial install, you're lost - you can't restore deleted stuff that you haven't backed up before. It's your responsibility to do frequent backups.
That's one of the reasons why we don't like auto-installers like Fantastico: they lure users into thinking that there's such a thing as single-click install. Web-driven apps just aren't that trivial to maintain.


Title: Re: Moved Folder, Now Gallery is messed Up
Post by: KPalicz on June 26, 2007, 07:36:35 PM
Quote from: Sami on June 26, 2007, 05:29:58 PM
First of all
- Do not use Auto installer Crap like Fantastico

Here what you can do

- Make a backup from old gallery specially albums folder

- Check your old gallery , by downloading {old gallery root}/include/config.inc.php to your local PC or viewing with Cpanel's file manager , and find out your old DB configuration

- Then go back to your old gallery and try to fix it , let's try to upgrade it , do as suggested on upgrading (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14) documentation said

- Now if you get error again enable debug manually (http://coppermine-gallery.net/tutorial/debug_mode.php) and post actual error here

Awesome thank you!

Upgrading and such didn't work, but putting it into debug mode said that some database thing needed to be repaired.  So I did that and it took care of the problem.  :)