|
From: Nathan V. <na...@th...> - 2001-03-19 18:05:54
|
I upgraded from bender 1.1.4 to 1.1.6, and I think I did everything correctly, but I'm getting these errors on every request: [Fri Mar 16 20:44:50 2001] [error] Can't locate object method "sqlConnect" via package "Slash::DB" at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/User.pm line 75. [Fri Mar 16 20:44:50 2001] [error] Can't locate object method "createAccessLog" via package "Slash::DB" at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/Log.pm line 33. If I write a little command line script to use Slash::DB and those methods it seems to locate them just fine. Any clues? I'm stumped. -n -- Nathan Vonnahme na...@th... senior web developer third sector technologies http://enteuxis.org/nathan http://thethirdsector.com |
|
From: Eric D. <eri...@ja...> - 2001-03-19 18:10:43
|
Ooo, perl 5.6? Perhaps slash is looking in the old perl directories for the User.pm and other files? Nathan Vonnahme wrote: > I upgraded from bender 1.1.4 to 1.1.6, and I think I did everything > correctly, but I'm getting these errors on every request: > > [Fri Mar 16 20:44:50 2001] [error] Can't locate object method > "sqlConnect" via package "Slash::DB" at > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/User.pm line 75. > > [Fri Mar 16 20:44:50 2001] [error] Can't locate object method > "createAccessLog" via package "Slash::DB" at > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/Log.pm line 33. > > If I write a little command line script to use Slash::DB and those methods > it seems to locate them just fine. > > Any clues? I'm stumped. > > -n > > -- > Nathan Vonnahme na...@th... > senior web developer third sector technologies > http://enteuxis.org/nathan http://thethirdsector.com > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development -- Back up my hard disk? I can't find the reverse switch! Eric Dannewitz - Adventurer, saxophonist, good-timer (crook? quite possibly), clarinetist, manic self-publicist, part-time flautist(flutist?), macintosher, and often thought to be completely out to lunch. http://www.jazz-sax.com |
|
From: Nathan V. <na...@th...> - 2001-03-19 18:20:17
|
No, I've only got perl 5.6 on this machine, and the modules are being found, but not some of the methods. It's an inheritance problem of some sort I think-- Slash::DB is supposed to inherit those methods from Slash::DB::MySQL and Slash::DB::Utility... On Mon, 19 Mar 2001, Eric Dannewitz wrote: > Ooo, perl 5.6? > > Perhaps slash is looking in the old perl directories for the User.pm and other > files? > > Nathan Vonnahme wrote: > > > I upgraded from bender 1.1.4 to 1.1.6, and I think I did everything > > correctly, but I'm getting these errors on every request: > > > > [Fri Mar 16 20:44:50 2001] [error] Can't locate object method > > "sqlConnect" via package "Slash::DB" at > > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/User.pm line 75. > > > > [Fri Mar 16 20:44:50 2001] [error] Can't locate object method > > "createAccessLog" via package "Slash::DB" at > > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/Log.pm line 33. > > > > If I write a little command line script to use Slash::DB and those methods > > it seems to locate them just fine. > > > > Any clues? I'm stumped. > > > > -n > > > > -- > > Nathan Vonnahme na...@th... > > senior web developer third sector technologies > > http://enteuxis.org/nathan http://thethirdsector.com > > > > _______________________________________________ > > Slashcode-development mailing list > > Sla...@li... > > http://lists.sourceforge.net/lists/listinfo/slashcode-development > > -- > Back up my hard disk? I can't find the reverse switch! > > Eric Dannewitz - Adventurer, saxophonist, good-timer (crook? quite possibly), > clarinetist, manic self-publicist, part-time flautist(flutist?), macintosher, > and often thought to be completely out to lunch. http://www.jazz-sax.com > > > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development > |
|
From: Chris N. <pu...@po...> - 2001-03-19 19:02:56
|
At 09:16 -0900 2001.03.19, Nathan Vonnahme wrote: >No, I've only got perl 5.6 on this machine, and the modules are being >found, but not some of the methods. It's an inheritance problem of some >sort I think-- Slash::DB is supposed to inherit those methods from >Slash::DB::MySQL and Slash::DB::Utility... Please doublecheck the installed versions of all the modules of concern here, and make sure the ones in your path match the ones from the distribution. Also, are you using MySQL? -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
|
From: Nathan V. <na...@th...> - 2001-03-19 19:25:00
|
On Mon, 19 Mar 2001, Chris Nandor wrote: > At 09:16 -0900 2001.03.19, Nathan Vonnahme wrote: > >No, I've only got perl 5.6 on this machine, and the modules are being > >found, but not some of the methods. It's an inheritance problem of some > >sort I think-- Slash::DB is supposed to inherit those methods from > >Slash::DB::MySQL and Slash::DB::Utility... > > Please doublecheck the installed versions of all the modules of concern > here, and make sure the ones in your path match the ones from the > distribution. Also, are you using MySQL? I did that and the VERSION numbers are the same... at least in Slash::DB::MySQL , Slash::DB, Slash::DB::Utility, Slash::Apache::User and Slash::Apache::Log. I am using MySQL. Hrm, perhaps the problem could be that I am trying to go from 1.1.4 to 1.1.6? I don't see why that would matter but I will try going to 1.1.5 next. -n |
|
From: Chris N. <pu...@po...> - 2001-03-19 19:31:08
|
At 10:20 -0900 2001.03.19, Nathan Vonnahme wrote: >Hrm, perhaps the problem could be that I am trying to go from 1.1.4 to >1.1.6? I don't see why that would matter but I will try going to 1.1.5 >next. No, that won't matter. I don't know what the problem is, is there any debugging you can do? -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
|
From: Nathan V. <na...@th...> - 2001-03-21 00:31:44
|
On Mon, 19 Mar 2001, Chris Nandor wrote:
> At 10:20 -0900 2001.03.19, Nathan Vonnahme wrote:
> >Hrm, perhaps the problem could be that I am trying to go from 1.1.4 to
> >1.1.6? I don't see why that would matter but I will try going to 1.1.5
> >next.
>
> No, that won't matter. I don't know what the problem is, is there any
> debugging you can do?
I wrote a simple script that calls the methods that are supposedly "not
found" according to the error log, and it finds them (though it has other
problems because it hasn't set the user up first)
Basically my script is
use Slash::DB;
my $d = new Slash::DB("virtualuser");
$d->sqlConnect();
$d->createAccessLog();
The first call works fine and the second complains "DBD::mysql::db do
failed: Column 'uid' cannot be null ... called
by:Slash::DB::MySQL:/usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/DB/MySQL.pm:458:INSERT
INTO accesslog..."
But my site's error log keeps complaining
[Wed Mar 21 00:31:06 2001] [error] Can't locate object method
"getTemplateByName" via package "Slash::DB" at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Display.pm line 192.
[Wed Mar 21 00:31:06 2001] [error] Can't locate object method
"createAccessLog" via package "Slash::DB" at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/Log.pm line 29.
Hrm, that's odd, the other day it couldn't locate sqlConnect instead of
getTemplateByName...
It seems to me that the DB module is having trouble inheriting the right
stuff.
I think all my perl modules are proper, but I will try removing all the
Slash modules and installing them again. Things were kind of weird with
the last installation.
-n
|
|
From: Nathan V. <na...@th...> - 2001-03-21 01:03:57
|
On Tue, 20 Mar 2001, Nathan Vonnahme wrote: > But my site's error log keeps complaining > > [Wed Mar 21 00:31:06 2001] [error] Can't locate object method > "getTemplateByName" via package "Slash::DB" at > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Display.pm line 192. > > [Wed Mar 21 00:31:06 2001] [error] Can't locate object method > "createAccessLog" via package "Slash::DB" at > /usr/lib/perl5/site_perl/5.6.0/i386-linux/Slash/Apache/Log.pm line 29. Nevermind, it's my fault, something I did wrong with my httpd.conf. When I simply Include the one bender builds it works fine. -n |
|
From: Chris N. <pu...@po...> - 2001-03-21 02:18:17
|
At 16:00 -0900 2001.03.20, Nathan Vonnahme wrote: >Nevermind, it's my fault, something I did wrong with my httpd.conf. When >I simply Include the one bender builds it works fine. Oh, the Include /usr/local/slash/httpd/slash.conf was not in the httpd.conf (I am curious for future use, in case someone else has a similar problem)? -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
|
From: Nathan V. <na...@th...> - 2001-03-22 04:47:22
|
On Tue, 20 Mar 2001, Chris Nandor wrote: > At 16:00 -0900 2001.03.20, Nathan Vonnahme wrote: > >Nevermind, it's my fault, something I did wrong with my httpd.conf. When > >I simply Include the one bender builds it works fine. > > Oh, the Include /usr/local/slash/httpd/slash.conf was not in the httpd.conf > (I am curious for future use, in case someone else has a similar problem)? No, I had pasted everything in my httpd.conf, and had customized several things. Including the one slash built was to test if it was my problem. I think I had not updated the section that doesn't go in VirtualHost sections, and was missing something. I haven't had time to figure out quite what yet. Speaking of the configurations, shouldn't the AddType XML stuff go outside the VirtualHost sections, not repeated in each? And it seems like some things in the main section could screw up other virtual hosts on the same machine that don't use slash, e.g. DirectoryIndex index.pl index.shtml which could break hosts that use index.html Thanks a lot for the help, though! You guys are doing a great job. -n -- Nathan Vonnahme na...@th... senior web developer third sector technologies http://enteuxis.org/nathan http://thethirdsector.com |
|
From: Chris N. <pu...@po...> - 2001-03-23 14:01:17
|
At 19:04 -0900 2001.03.21, Nathan Vonnahme wrote: >Speaking of the configurations, shouldn't the AddType XML stuff go outside >the VirtualHost sections, not repeated in each? And it seems like some Well, my opinion is that we make it the most compatible from the start, and then people can move things around as they please. So that means, in this case, that you could feel free to move some of this stuff out to slash.conf yourself, if you know it won't bork up anything in the rest of your site. >things in the main section could screw up other virtual hosts on the same >machine that don't use slash, e.g. > DirectoryIndex index.pl index.shtml >which could break hosts that use index.html Looks like you're behind the times. :) Those are in the site.conf now, now slash.conf. When you do a make install over your existing install, it will not replace slash.conf, but the latest slash.conf will be placed in $SLASH_PREFIX/httpd/slash.conf.def. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
|
From: Nathan V. <na...@th...> - 2001-03-23 18:05:37
|
On Fri, 23 Mar 2001, Chris Nandor wrote: > Looks like you're behind the times. :) Those are in the site.conf now, > now slash.conf. When you do a make install over your existing install, it > will not replace slash.conf, but the latest slash.conf will be placed in > $SLASH_PREFIX/httpd/slash.conf.def. Oh, ahah. I didn't catch that, but it is a very valuable piece of information. Thanks! |