Gossamer Forum
Home : Products : DBMan : Installation :

Problem...

Quote Reply
Problem...
I'm having a problem with my DB. I edited my default.cfg so it says

ID => [0, 'numer', 1, 8, 1, '', ''],
Hack Name => [1, 'alpha', 40, 255, 1, '', ''],
URL => [3, 'alpha', 40, 255, 1, 'http://', '^http://'],
Author => [4, 'alpha', 0, 60, 1, '', ''],
Demo => [5, 'alpha', 40, 255, 1, 'http://', 'http://'],
Date Added => [6, 'date', 12, 15, 1, &get_date, ''],
Category => [7, 'alpha', 0, 255, 1, '', ''],
Description => [2, 'alpha', '40x3', 500, 0, '', ''],
Versions => [8, 'alpha', 0, 15, 0, '', ''],
Userid => [9, 'alpha', -2, 15, 0, '', '']

Now, when I go to my db.cgi and every other page, I get an error that says "DBMan encountered an internal error. Please enable debugging to view." Can someone help me out.

BTW: I do have the debug thing set.

Quote Reply
Re: Problem... In reply to
The message, "DBMan encountered an internal error. Please enable debugging to view." is a default when debugging is activated. If you are not encountering problems with the database, you can disable the debug function and the message will go away.

Quote Reply
Re: Problem... In reply to
It may be a good idea to keep your field number in consecutive order.

Also for the fields:

Hack Name and Date Added

You may want to use

'Hack Name' => [1, 'alpha', 40, 255, 1, '', ''],
'Date Added' => [6, 'date', 12, 15, 1, &get_date, ''],

As a general rule for myself even if I use one word fields i usually surround them with the apostrophe, but it's necessary for two word fields.

Hope this helps Smile


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Problem... In reply to
It's probobly best to keep all your field names one word anyway, as some browsers (particuarly the older ones) tend to have problems passing the spaces into query strings. (ie: they don't convert spaces to % 20)

If you really have to use spaces, I'd suggest using an underscore instead. Eg: instead of Hack Name use Hack_Name

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/