Gossamer Forum
Home : Products : DBMan : Installation :

O what O what does this debug error mean?

Quote Reply
O what O what does this debug error mean?
Hi Guys,

Having a bit of a problem with DBMan. Gives me the old error "DBman encountered an error....please enable debugging to view". Turned on Debugging and you can view what it spits out at http://fucktheus.org/cgi-bin/dbman/db.cgi (please ignore the name of the domain name, its a friendly site!)

Maybe someone can take a look and immediately recognize the error, though I know these debugging reports aresometimes less than helpful :)

Thanks
Quote Reply
Re: [votrechien] O what O what does this debug error mean? In reply to
I tried to view the db but I gave up waiting for it to load.

What exactly is the error you are getting?

It does help to move the debug line up in the .cfg file to the section above
# Files and URLs. Then it will catch any errors within the .cfg file itself.

There is also a trick I use to get more useful error messages. It works on most servers:

---------

To obtain useful error messages, add the following snippet to your script, just beneath the shebang line (the first line of the script;
usually !#/usr/local/bin/perl or !#/usr/bin/perl):

BEGIN {
open (STDERR, ">/path/to/somewhere/error.txt");
}

Now create an empty plain text file named "error.txt"
and upload it in ASCII mode to your somewhere/ directory.
Chmod it to 777.

Now run your script from your browser.

After it gives you its error message, call your error.txt from the browser
(for example, http://www.your_site.com/somewhere/error.txt;
you might make a bookmark for it because, if you're like me, you'll be using it a lot!).

The reason for your script's failure should be written there.

Note: If you call the error.txt file more than once, you may have to hit your browser's "reload" button.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] O what O what does this debug error mean? In reply to
Thanks for the reply.

I turned debugging off, and magically everything was ok...WEIRD!