Weird error on logging

2002-12-06 Thread Viljo Marrandi
Hello list, I have following configuration: Apache 1.3.26, Perl 5.6.1 and mod_perl 1.26. And I get one very absurd error (for me at least). I have following line in my code that prints out one data structure: $self->{log}->notice( "DEBUG: permissions: " . Dumper( $all_permissions ) ); $self->{l

Weird error on logging

2002-12-06 Thread Viljo Marrandi
Hello list, I have following configuration: Apache 1.3.26, Perl 5.6.1 and mod_perl 1.26. And I get one very absurd error (for me at least). I have following line in my code that prints out one data structure: $self->{log}->notice( "DEBUG: permissions: " . Dumper( $all_permissions ) ); $self->{l

Server returns nothing

2003-02-12 Thread Viljo Marrandi
Hello, I have a mod_perl + Template-Toolkit driven web-site with some 20+ perl modules. Apache is 1.3.26, mod_perl is 1.26 and TT is 2.08. Problem is, sometimes happens that I get absolutely no response from server, browser just says that 'Document contains no data' and even server accesslog does

Re: Server returns nothing (solved)

2003-02-13 Thread Viljo Marrandi
ions, which throws an > error (plugin failed), so nothing being sent at all. > > On Wed, 12 Feb 2003 16:58:14 +0200 (EET), Viljo Marrandi wrote: > >Hello, > > - -- > cheers, > <[EMAIL PROTECTED]> - wa1800z@DALnet&CAiRC - #32741432 > KeyID 0xDE9EB50B - D0D

Re: Server returns nothing (solved)

2003-02-13 Thread Viljo Marrandi
Hello, Yes, use strict; was in all modules, this makes it even more interesting, doesn't it? Viljo On Thu, 13 Feb 2003, Ged Haywood wrote: > Hi there, > > On Thu, 13 Feb 2003, Viljo Marrandi wrote: > > > My code checks $tt->error() and it didn't show anything.

Re: Server returns nothing (solved)

2003-02-13 Thread Viljo Marrandi
Yes, even warnings was used. Viljo On Fri, 14 Feb 2003, Stas Bekman wrote: > Viljo Marrandi wrote: > > Hello, > > > > Yes, use strict; was in all modules, this makes it even more interesting, > > d

form upload limit

2001-12-13 Thread Viljo Marrandi
Hello, I didn't find anywhere in Net how much is browser form upload limit (with POST) and how much is Apache's default form data access(input) limit. If anyone knows where I can find this data i'd be grateful. I tested this form upload with large text and in my case only 64K went thru (ended up

Tips & tricks needed :)

2001-12-19 Thread Viljo Marrandi
Hello, We're going to make a web-site for insurance company (err, more like portal for several companies) and the problem is that ( I think ) it's going to be our biggest and most complex site we've ever done AND we're going to use some new stuff we've never used. So I'd be very happy if you can

Ticket systems

2002-01-14 Thread Viljo Marrandi
Hello, I'm on a mission ta make a web-site that uses cookies for user log-in and log-out. First I'd like to know which one you suggest - Ticket system from Eagle book or Apache::AuthTicket. I know that Apache::AuthTicket is based on Eagle book's version, but it seems little more advanced. And no

Apache::AuthTicket problem

2002-01-15 Thread Viljo Marrandi
Hello, I'm trying to get this AuthTicket stuff to work, but somehow I can't manage it. Problem it, that when I try to access a site that has this stuff defined: AuthType Apache::AuthTicket AuthName Foo PerlAuthenHandler Apache::AuthTicket->authenticate PerlAuthzHandler Apac

Weird (unwanted) text on page

2002-02-25 Thread Viljo Marrandi
Hello, I've made one site using Embperl (but I think it's not Embperl problem) for image selling agency. Some time ago their HDD crashed and I had to restore whole site from older code, which I had. Before it worked just fine, but now it's not. If I look the page with IE it's OK, but if I use Net

Many requests per page

2002-05-02 Thread Viljo Marrandi
Hello, I'm using Apache 1.3.22, mod_perl 1.25 and Template-Toolkit 2.06. How can I make my system so, that my perl handler is not called for each image, css and script the page has? Apache conf has following lines: SetHandler perl-script PerlHandler My::Site P

Re: Many requests per page

2002-05-02 Thread Viljo Marrandi
Hello again, > * Viljo Marrandi <[EMAIL PROTECTED]> [2002-05-02 08:57]: > > How can I make my system so, that my perl handler is not called for > > each image, css and script the page has? [-- snip --] > return DECLINED if $r->content_type && $r->con

Re: Many requests per page

2002-05-02 Thread Viljo Marrandi
> Can you not limit your perl-script to a single folder, so that you can set: > > Alias /scripts/ "/path/to/scripts/" > > > SetHandler perl-script > PerlHandler My::Site > PerlSendHeader On > Unfortunately I can't do this, my handler must handle all "/" reques

[OT] Refs don't work, like I want

2002-05-17 Thread Viljo Marrandi
Hello, Sorry about non mod_perl question, but as I'm subscribed to this list and I know I can get help from here, I ask my question here. Can anyone tell me, what's wrong with this piece of code: $vars->{'key2'} = "value of second key"; $vars = { xxx => "AAA", yyy => "BBB", zzz => "

Exporter variables get lost

2002-06-07 Thread Viljo Marrandi
Hello, I'm working on mod_perl project which has many different modules. One is so-called 'main' modules which loads other when needed. Until now everything worked just fine, but now one module just says that he doesn't know the variable I've exported. And interesting is, that when I comment out

$r->path_info()

2001-07-02 Thread Viljo Marrandi
Hello, I hope this is the right place to ask this question. I'm using Template-Toolkit under Apache/mod_perl and created my own handler for it. There is such line in this handler: my $temp_file = $r->path_info(); When i send this $temp_file to log it works fine: my $log = $r->log();

handler question

2001-07-03 Thread Viljo Marrandi
Hello, Is it possible, if yes then how, to set handler recursively for one directory? Now my handler is defined: SetHandler perl-script PerlHandler MyServ::MyHandler But if i try to access /my_server/some/other/dir then apache gives error because this directory doesn't exist, which

Re: handler question

2001-07-03 Thread Viljo Marrandi
> Use a Location rather than Directory directive. Use the absolute > URI relative to the server as the second part (e.g., > http://www.foo.bar/baz would look like ). Hey, that's what i needed. Thanks :) > If sounds like you want to use r->path_info in your application, > so you *can't* create t

Re: handler question

2001-07-04 Thread Viljo Marrandi
> It depends on what you are trying to accomplish, of course, but > for most purposes, yeah, splitting r->uri on '/' will give a > useful list of directories. If you are using these as actual > filenames, and ignoring r->filaname, however, beware of requests > like: > > http://foo.bar.baz/my_ha

array problem

2001-09-20 Thread Viljo Marrandi
->[$counter2][1]) { &print_it($info->[$counter3][0]); } } } } } my $temp_id = pop @maks_id; return $temp_id; } - - Viljo Marrandi- - programmer/admin - - Inspiral Network - - www.inspiral.net - -

CGI.pm problem

2001-10-30 Thread Viljo Marrandi
Hello, When I try to make a CGI object in my Apache/mod_perl handler a la $q = CGI->new(); The server just don't reply. Actually it works just fine until I try to submit a form, then it just hangs and Apache doesn't send anything back. If I remove this object creation line, then I can submit my f

weird update problem

2001-11-13 Thread Viljo Marrandi
Hello, I have one website which is running on Apache/mod_perl and Template-Toolkit. There is one piece of code which moves categories up'n'down. Now the problem is, that when I submit page with parametres it doesn't show that category has moved, but actually it has. I can see the change only afte

Re: weird update problem

2001-11-13 Thread Viljo Marrandi
Ahh... like usually, problem is solved after the mail is sent. Problem was, that code that moved things was after the code which told which file to include... so thats why i saw it next time. Thnx anyway :) Viljo Marrandi wrote: > > Hello, > > I have one website which is runni

array's first element is empty

2001-11-26 Thread Viljo Marrandi
Hello, Not sure if this is mod_perl related, but i hope someone can help me anyway. When i do DBI queries from mod_perl handler and put all returned results in array then array's first element is empty, I wonder why? I don't like to shift off first element every time i return the result. Has anyo