Was Having Problem with Safe Mode, Now Its Completely Broken Was Having Problem with Safe Mode, Now Its Completely Broken
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Was Having Problem with Safe Mode, Now Its Completely Broken

Started by troykristoffer, April 30, 2004, 03:18:07 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

troykristoffer

*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:

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

troykristoffer

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?

hyperion

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_";
?>

&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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

troykristoffer

#3
Thank you! Thank you! ALL is well and I can upload again

Joachim Müller


Casper

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.
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

Hi all, new user here.

problem disappeared when i installed 1.21 instead of 1.31b.

/Niklas