[WebGUI] preload.perl error

Ken Johnson ken at greatlodge.com
Wed Mar 1 10:54:53 EST 2006


It looks like the only difference between this and the existing file is
my $parenthesis; instead of our $parenthesis
I did a wget and put the 6.2.11 file into place, but when I run
preload.perl again it gives a single error msg "GATEWAY_INTERFACE not
Perl!"

All in all I'm not sure what is going on with Perl here.  I can make the
file index.pl appear in the browser... it just lists the file as text.
So it doesn't appear that mod_perl is running correctly. 
When I do apachectl stop or restart (as in after changing the Macro.pl
file) I get the message "[warn] module perl_module is already loaded,
skipping"

So it sounds like mod_perl is running, but somehow it's not really in
step with apache (apache2 specifically).  We noticed that mod_perl
wasn't in the httpd.conf file!  This seemed odd given the above msg.

I did this Red Hat install for WebGUI, so all the basic needs should be
installed.


On Tue, 2006-02-28 at 18:28 -0500, Gerald Young wrote:
> Yes, this is a known issue with 5.5.8 Sorry it's not (?) in my FAQ. I 
> just posted this in http://www.plainblack.com/discuss aha... here 'tis: 
> http://www.plainblack.com/install/upgrade_help/problem-with-parenthesis-no-importing#g4xGN99Bss5IWanmn3zUIw
> 
> Update your Macro.pm 
> <http://www.plainblack.com/downloads/builds/6.2.11-gamma/WebGUI/lib/WebGUI/Macro.pm> 
> about where you see this (stop, restart apache):
> 
> my $parenthesis;
> $parenthesis = qr /\(                      # Start with '(',
>                      (?:                     # Followed by
>                      (?>[^()]+)              # Non-parenthesis
>                      |(??{ $parenthesis })   # Or a balanced parenthesis block
>                      )*                      # zero or more times
>                      \)/x;                  # Ending with ')'
> 
> my $nestedMacro;
> $nestedMacro = qr /(\^                     # Start with carat
>                      ([^\^;()]+)            # And one or more none-macro characters -tagged-
>                      ((?:                   # Followed by
>                      (??{ $parenthesis })   # a balanced parenthesis block
>                      |(?>[^\^;])            # Or not a carat or semicolon
> #                    |(??{ $nestedMacro }) # Or a balanced carat-semicolon block
>                      )*)                    # zero or more times -tagged-
>                      ;)/x;                   # End with  a semicolon.
> 
> 
> 
> 
> Ken Johnson wrote:
> > System Info:
> > Redhat Enterprise 2.6.9-5
> > WebGUI 5.5.8
> > All Perl modules installed, mysql is running, and /data/WebGUI has been
> > changed to /var/www/WebGUI in all the appropriate files. But when 
> > the browser is pointed http://10.1.9.10/WebGUI/www/index.pl to it only
> > gets the message "The requested URL /WebGUI/www/index.pl was not found
> > on this server."
> >
> > When i run sbin/perl preload.perl it spews out:
> >
> >         [root at herb sbin]# perl preload.perl
> >         [Tue Feb 28 16:00:56 2006] (re_eval 14): Variable "$parenthesis"
> >         is not imported at (re_eval 14) line 2.
> >         Global symbol "$parenthesis" requires explicit package name at
> >         (re_eval 14) line 2.
> >         Compilation failed in regexp
> >         at /var/www/WebGUI/lib/WebGUI/Macro.pm line 53.
> >         Compilation failed in require
> >         at /var/www/WebGUI/lib/WebGUI/Privilege.pm line 24.
> >         BEGIN failed--compilation aborted
> >         at /var/www/WebGUI/lib/WebGUI/Privilege.pm line 24.
> >         Compilation failed in require
> >         at /var/www/WebGUI/lib/WebGUI/HTMLForm.pm line 22.
> >         BEGIN failed--compilation aborted
> >         at /var/www/WebGUI/lib/WebGUI/HTMLForm.pm line 22.
> >         Compilation failed in require
> >         at /var/www/WebGUI/lib/WebGUI/User.pm line 20.
> >         BEGIN failed--compilation aborted
> >         at /var/www/WebGUI/lib/WebGUI/User.pm line 20.
> >         Compilation failed in require
> >         at /var/www/WebGUI/lib/WebGUI/Affiliate.pm line 19.
> >         BEGIN failed--compilation aborted
> >         at /var/www/WebGUI/lib/WebGUI/Affiliate.pm line 19.
> >         Compilation failed in require at /var/www/WebGUI/lib/WebGUI.pm
> >         line 16.
> >         BEGIN failed--compilation aborted
> >         at /var/www/WebGUI/lib/WebGUI.pm line 16.
> >         Compilation failed in require at preload.perl line 63.
> >         BEGIN failed--compilation aborted at preload.perl line 63.
> >
> >
> > appears that $parenthesis is a circular reference according one of our
> > programmers, what would be the best way to correct this?
> >
> > tia,
> > ken
> >
> > _______________________________________________
> > WebGUI mailing list
> > WebGUI at gwy2.org
> > http://www.gwy2.org/mailman/listinfo/webgui
> >
> >
> >
> >   
> 
> _______________________________________________
> WebGUI mailing list
> WebGUI at gwy2.org
> http://www.gwy2.org/mailman/listinfo/webgui
> 



More information about the WebGUI mailing list