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: update failed  (Read 2725 times)

0 Members and 1 Guest are viewing this topic.

yohooo8

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
update failed
« on: July 23, 2004, 02:07:23 am »

Hi, i have 1.21 before and i updated it to the current version 1.31.  I ran the update.php  and this is the message after the updating on the updated page:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/photos/public_html/update.php on line 38

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/photos/public_html/update.php on line 41


and this is the message when i run the index.php
Notice: Undefined index: debug_mode in /home/photos/public_html/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query

what should i do? thanks.
« Last Edit: July 23, 2004, 02:12:36 am by yohooo8 »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: update failed
« Reply #1 on: July 23, 2004, 10:02:36 am »

make sure you have uploaded all files from the cpg1.3.1 package to your server. Make sure you're not trying to use a cpg1.2.1 theme. Do you have include/config.inc.php on your server? Sounds like you deleted it.

Enable debug_mode, using a tool like phpMyAdmin to manipulate your database directly. Browse to the cpg_config table and turn on debug_mode by setting it to "1".

Post a link to your gallery as well.

GauGau
Logged

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: update failed
« Reply #2 on: July 24, 2004, 12:50:20 am »

That error means that you deleted your config.inc.php, i got this error while helping someone yesterday. Here is the config.inc.php sample if you want.

Code: [Select]
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =  "localhost"; // Your databaseserver
$CONFIG['dbuser'] =  "root"; // Your mysql username
$CONFIG['dbpass'] =  ""; // Your mysql password
$CONFIG['dbname'] =  "coppermine11"; // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = "cpg11d_";
?>
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.