G2 Shindigs (how to restore gallery from itchy fingers)

spadger

Joined: 2005-04-22
Posts: 3
Posted: Fri, 2005-04-22 10:47

Hi

I just installed gallery 2 and am dead impressed :) However, i was stupid with my webserver (i ran 'remove frontpage extensions in cpanel') and broke gallery2. I noticed that ir just appended a unixtime value to the names of all .htaccess files, but upon renaming them, gallery2 still did not work (loaded min.php, but said 'no albums') - [url]gallery.spadger.org[/url]

I backed up the non-working gallery, and reinstalled a fresh copy, but got a little stuck with ideas about what to do next. The gallery i backed up still has all its jpegs intact, and i am now wondering if anyone knows what i should do to make gallery2 working again?

Regards

Jon Bates
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):gallery.spadger.org
Gallery version:2.0b2
Webserver (with version):apache something
Datatabase (with version):mysql4.1
PHP version (eg 4.2.1):4.3.9
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-22 11:17

does the freshly installed G2 not work? what's the problem?
before you install G2, remove/empty the .htaccess file in the G2 directory, empty g2data and empty the database.

 
spadger

Joined: 2005-04-22
Posts: 3
Posted: Fri, 2005-04-22 11:38

the fresh install works fine, as i moved the old instance to a new directory, but of course, the new one has no albums

I deleted the old db when i installed a fresh copy (but they had the same name), so i am wondering if i can just copy files form the old gallery to the new one to get my albums back?

take a look at this http://gallery.spadger.org/main.php - i moved back the old gallery, and i noticed that it knows about the albums it should have, but when i jump to one (from a combo box on the left), i get an error:

Quote:
On 4/22/05,

Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 117 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 1686 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 63 (gallerycoreapi::fetchchildidbypathcomponent)
* in modules/core/classes/GalleryCoreApi.class at line 1637 (galleryfilesystementityhelper_simple::fetchitemidbypath)
* in modules/core/ShowItem.inc at line 84 (gallerycoreapi::fetchitemidbypath)
* in modules/core/classes/GalleryView.class at line 214 (showitemview::loadtemplate)
* in main.php at line 293 (showitemview::doloadtemplate)
* in main.php at line 79
* in main.php at line 70

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-04-22 13:49

to restore your data you need to get everything from g2data and the db in place (and intact) and make sure your config.php points to them.

 
spadger

Joined: 2005-04-22
Posts: 3
Posted: Fri, 2005-04-22 14:32

haha, well i dropped it when in re-installed:D

oh well, yet another amazing gallery shindig:D

I have a colleciotn as long as my arm :D, all due to fingers that won't quit :D

its worth it though for such a great product!!

Cheers

Jon