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: Was Having Problem with Safe Mode, Now Its Completely Broken  (Read 3014 times)

0 Members and 1 Guest are viewing this topic.

troykristoffer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Was Having Problem with Safe Mode, Now Its Completely Broken
« 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, 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:

Code: [Select]
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:
Code: [Select]
<?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
« Last Edit: April 30, 2004, 03:24:09 am by troykristoffer »
Logged

troykristoffer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #1 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:
Code: [Select]
$CONFIG&#91;'TABLE_PREFIX'&#93; = "???";
but what do I replace the "???" with?
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #2 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:
Code: [Select]
<?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_";
?>

Logged
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

troykristoffer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #3 on: April 30, 2004, 06:48:53 am »

Thank you! Thank you! ALL is well and I can upload again
« Last Edit: April 30, 2004, 07:07:56 am by troykristoffer »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #4 on: April 30, 2004, 07:56:09 am »

 :-[ :'(
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #5 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Niklas

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Was Having Problem with Safe Mode, Now Its Completely Broken
« Reply #6 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
« Last Edit: May 13, 2004, 01:34:16 pm by Niklas »
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 15 queries.