php index.php test

gatspy

Joined: 2006-01-18
Posts: 32
Posted: Tue, 2009-06-16 04:33

Not sure how this happened but i installed the g3 beta and imported my photos and everything went perfect.

I noticed the command prompts for 'php index.php ...' and tried them, and they wiped out all my tables.

I used the same db and user but with different table prefixes and now i checked my db and it only has one table. So basically the test wiped out both my g2 tables along with my new imported g3 tables.

I can restore from a backup but wanted to see if this was a bug or a prob on my end.

I have g3 beta 1 installed with no problems start, I cannot access any of the diag stats in my previous g2 gal which now gives me a 500 error which I am assuming to be from the tables wiped out. I can post my phpinfo if u need tho it has not changed since the last 3 branches.

Does php index.php package in the gallery3 dir whipe the db?

Thanks for your help.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-16 20:45

Doh. Yes, "php index.php package" does wipe out your database. It's intended to be a developer-only option, not intended to be used by end users. I've created a ticket for this issue http://sourceforge.net/apps/trac/gallery/ticket/425 and put up a much sterner warning in the latest code. Sorry for your troubles!

---
Problems: Check gallery3/var/logs first!
file a bug or feature request | upgrade to the latest code | use git

 
gatspy

Joined: 2006-01-18
Posts: 32
Posted: Wed, 2009-06-17 08:53

Ouch, guess my curiosity got the best of me. Thanks for the info. Time for a good old restore :)