[freeside] ASP error

Jesse Estevez jestevez at cvalley.net
Tue Feb 5 13:52:00 PST 2002


Ivan,

I think the problem is that I ran fs-setup and passed it the user name of
a real-world user ( 'jestevez' ) rather than the freeside user 'freeside',
could that have been the problem?  At any rate, I did that, and then I ran
dbdef-create and everything started to work.  I couldn't find reference to
dbdef-create in the install doc, is that done by make?


~Jesse


---------

Jesse Estevez
Internet Systems Administrator

Phone 660-277-7736
Cell  660-670-6122
Page  800-622-1332 8991

Chariton Valley Internet Services
PO Box 144
Huntsville, Missouri 65259
USA

On Tue, 5 Feb 2002, ivan wrote:

> What version of DBIx::DBSchema?
>
> Please send the output of
>   ls -al /usr/local/etc/freeside
>
> Apply the following patch, restart Apache, and report the results:
>
> ivan at rootwood:~/freeside_current/FS/FS$ cvs diff -u -D 'yesterday'
> Record.pm
> Index: Record.pm
> ===================================================================
> RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
> retrieving revision 1.41
> retrieving revision 1.42
> diff -u -r1.41 -r1.42
> --- Record.pm   2002/01/29 16:33:15     1.41
> +++ Record.pm   2002/02/05 20:25:32     1.42
> @@ -1014,7 +1014,8 @@
>
>  sub reload_dbdef {
>    my $file = shift || $dbdef_file;
> -  $dbdef = load DBIx::DBSchema $file;
> +  $dbdef = load DBIx::DBSchema $file
> +    or die "can't load database schema from $file";
>  }
>
>  =item dbdef
>
>
> On Tue, Feb 05, 2002 at 02:47:02PM -0600, Jesse Estevez wrote:
> > > Does the file
> > > /usr/local/etc/freeside/dbdef.DBI:Pg:host=localhost;dbname=freeside
> > > exist?
> >
> > Yes.
> >
> > > First guess haven't run fs-setup, as per httemplate/docs/install.html:
> > >
> > >   As the freeside UNIX user, run bin/fs-setup username to create the
> > >   database tables, passing the username of a Freeside user you created
> > >   above:
> > >       $ su freeside
> > >       $ bin/fs-setup username
> >
> > No, I did do this step.  I tried it again, and I got an error that tables
> > were already in place.
> >
> > > If that's the case, please make sure you follow *ALL STEPS* in the
> > > installation instructions before attempting to use the web interface or
> > > posting to the mailing list for assistance.
> > >
> > > Second guess, maybe something wrong with the permissions on
> > > /usr/local/etc/freeside/ ?  Perhaps you ran fs-setup, and it reported an
> > > error rather than "Freeside database initialized sucessfully"?
> >
> > I believe I did all the steps, though clearly I messed one of them up or
> > don't have all the required Perl installed, or have permissions wrong.
> >
> > ~Jesse
> >
> > > On Tue, Feb 05, 2002 at 01:41:39PM -0600, Jesse Estevez wrote:
> > > > Ivan,
> > > >
> > > > With the help from your last email I got /config/config-view.cgi to work.
> > > > I can go their make changes and those changes get saved to the
> > > > configuration.
> > > >
> > > > However, when I try just about any of the other links, say, the "New
> > > > Customer" link:
> > > >
> > > > [Tue Feb  5 13:40:27 2002] [error] [asp] [22617] [error] Can't call method
> > > > "table" on an undefined value at
> > > > /usr/local/lib/perl5/site_perl/5.6.1/FS/Record.pm line 988. <--> ,
> > > > /usr/local/lib/perl5/site_perl/5.6.1/Apache/ASP.pm line 1556
> > > >
> > > > Thanks for any pointers to my mistake.
> > > >
> > > > ~Jesse
> > > >
> > > >
> > > > freeside-1.4.0pre7
> > > > Apache::ASP 2.31
> > > > Perl 5.6.1
> > > > SuSE Linux 7.2
> > > > Postgres 7.0.3 (freeside user installed, verified, tables created)
> > > > DBI1.201
> > > > DBD-Pg-1.01
> > > > mod perl 1.26
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > _ivan
> > >
> >
>
> --
> _ivan
>




More information about the freeside-users mailing list