coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: troykristoffer on April 30, 2004, 03:18:07 AM

Title: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: troykristoffer on April 30, 2004, 03:18:07 AM
*sigh*

This is a awesome piece of software, but I broke it. :(

At first I was getting a Safe Mode error when i tried to upload pictures. I searched around on the forums, and found this thread (http://forum.coppermine-gallery.net/index.php?topic=5364.msg23376#msg23376), and thought it was a solution to my problem, so I did it. Now the gallery is completely messed up and I get this error when I try to view the gallery:

Parse error: parse error in /home/virtual/site10/fst/var/www/html/gallery/include/config.inc.php on line 15

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 138

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 139

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 140

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 141

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 142

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 143

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 144

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 145

Warning: Undefined index: TABLE_PREFIX in /home/virtual/site10/fst/var/www/html/gallery/include/init.inc.php on line 146

Warning: Undefined index: dbname in /home/virtual/site10/fst/var/www/html/gallery/include/functions.inc.php on line 65
Coppermine critical error:
Unable to connect to database !

MySQL said: No Database Selected



My config.inc.php file reads like this:
<?php 
// Coppermine configuration file

define&#40;'SILLY_SAFE_MODE', 1&#41;;

// MySQL configuration
$CONFIG&#91;'dbserver'&#93; = "localhost"; // Your database server
$CONFIG&#91;'dbuser'&#93; = "pinkpower"; // Your mysql username
$CONFIG&#91;'dbpass'&#93; = "password omitted but correct in file"; // Your mysql password
$CONFIG&#91;'dbname'&#93; = "pinkpower_net"; // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG&#91;'TABLE_PREFIX'&#93; = "???";
?>

All information pertaining to my database is correct.
What did I do wrong? You can try and view the gallery at: http://www.pinkpower.net/gallery
Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: troykristoffer on April 30, 2004, 03:29:44 AM
Okay... I've figured out...that I need to define somehting in this line which I missed:
$CONFIG&#91;'TABLE_PREFIX'&#93; = "???";

but what do I replace the "???" with?
Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: hyperion on April 30, 2004, 04:00:30 AM
Ackk! We have our first casualty of the board conversion! Important glyphs in that thread have been replaced by their HTML equivalents.

This is how config.inc.php should appear:

<?php
// Coppermine configuration file

define('SILLY_SAFE_MODE'1);

// MySQL configuration

// Your databaseserver
$CONFIG['dbserver'] = "localhost";

// Your mysql username
$CONFIG['dbuser'] = "pinkpower";

// Your mysql password
$CONFIG['dbpass'] = "password omitted but correct in file";

// Your mysql database name
$CONFIG['dbname'] = "pinkpower_net";


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = "cpg11d_";
?>

Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: troykristoffer on April 30, 2004, 06:48:53 AM
Thank you! Thank you! ALL is well and I can upload again
Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: Joachim Müller on April 30, 2004, 07:56:09 AM
 :-[ :'(
Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: Casper on April 30, 2004, 10:37:54 AM
I have changed the offending post to read correctly.
All I did was click on 'modify', then preview, it looked fine, so then save. That did it.
Title: Re: Was Having Problem with Safe Mode, Now Its Completely Broken
Post by: Niklas on May 13, 2004, 10:53:45 AM
Hi all, new user here.

problem disappeared when i installed 1.21 instead of 1.31b.

/Niklas