coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: tjubb on July 30, 2007, 06:23:20 PM

Title: index.php problem - gallery page doesn't load
Post by: tjubb on July 30, 2007, 06:23:20 PM
I have a gallery that had been working great for a number of years.  I wanted to upload some new photos today and I was unable to access my gallery (www.scannerbytes.com/photos).  I then ftp'd into that directory and noticed the index.php was accidentally overwritten with the index.php from my root directory for the main site.  I had a backup of the photo directory so I re uploaded the version I had.  Now I just get a blank page.  All the photo gallery directories are still intact, it's just the main photo gallery page is not loading.  Can someone give me a hand?  I'm at a loss.  Thanks,
Tom
Title: Re: index.php problem - gallery page doesn't load
Post by: Nibbler on July 30, 2007, 06:31:47 PM
Update your gallery.
Title: Re: index.php problem - gallery page doesn't load
Post by: tjubb on July 30, 2007, 06:42:51 PM
I did the update and got this message when trying to load the gallery page:
Fatal error: Call to undefined function: db_query() in /homepages/0/d91631435/htdocs/photos/index.php on line 52
Title: Re: index.php problem - gallery page doesn't load
Post by: Nibbler on July 30, 2007, 06:57:21 PM
Then you didn't update properly. Replace all the files with the updated versions from the package, especially index.php.
Title: Re: index.php problem - gallery page doesn't load
Post by: tjubb on July 30, 2007, 08:48:16 PM
thanks, that did the trick.  Uploaded the new files, ran the update again and the gallery page was then accessible again.