[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LedgerSMB rpm spec



Ok.  I think I know what the problem is.  I can't validate where I am
at the moment, but I will try to correct it.

The admin.pl must not like the new db connection architecture (so I
will probably have to manually create the $form->{dbh} when saving a
user.  No biggie.  I will have it fixed tonight.

On 10/18/06, Mads Kiilerich <..hidden..> wrote:

Testing in trunk user creation dies with
[Wed Oct 18 23:32:15 2006] [error] [client 127.0.0.1] Can't connect to
data source , no database driver specified and DBI_DSN env var not set
at LedgerSMB/Form.pm line 1432, referer:
http://localhost/ledger-smb/admin.pl

Ok.  This occurs when the db_init is called with bad parameters.  I
will look into this and post a fix shortly.

[Wed Oct 18 23:32:15 2006] [error] [client 127.0.0.1] Compilation failed
in require at /usr/share/ledger-smb/admin.pl line 103, <HASHFILE> line
1., referer: http://localhost/ledger-smb/admin.pl
[Wed Oct 18 23:32:15 2006] [error] [client 127.0.0.1] Premature end of
script headers: admin.pl, referer: http://localhost/ledger-smb/admin.pl

Is there any way to provide better debug information?

In this case, that is enough for me to solve the problem.  In other
cases, you can add $form->debug to areas you want to debug
($self->debug in Form.pm).


Another problem: Isn't menu.ini readonly data? Or is it written to from
cgi (and when)? If it written to: Can it be a symlink to somewhere else?
(In order to use the word "secure" I would like to have a read-only cgi
folder...)

Yes.  It is only written to by an administrator with a text editor.
The built-in editor won't even work now that we whitelist its access
:-)

Thanks,
Chris Travers