[freeside-users] Apache will not start after upgrading from 3.4 to 3.6 because of FCC_477.pm

Robert Terpe robert.terpe at hotmail.com
Wed Apr 1 21:28:02 PDT 2015


Here is the error in my apache log:
[Wed Apr 01 21:14:51 2015] [error] Type of arg 1 to push must be array (not private variable) at /usr/local/share/perl5/FS/Report/FCC_477.pm line 326, near "$eh\n    }"\nCompilation failed in require at /usr/local/share/perl5/FS/Mason.pm line 147.\nBEGIN failed--compilation aborted at /usr/local/share/perl5/FS/Mason.pm line 147.\nCompilation failed in require at /usr/local/etc/freeside/handler.pl line 7.\nBEGIN failed--compilation aborted at /usr/local/etc/freeside/handler.pl line 7.\nCompilation failed in require at (eval 2) line 1.\n[Wed Apr 01 21:14:51 2015] [error] Can't load Perl file: /usr/local/etc/freeside/handler.pl for server myisp.***REMOVED***:80, exiting...
Here is a section of FCC_477.pm, you will see my notes below I have added. If I comment out the section Apache starts up just fine.
sub report {  my $class = shift;  my $section = shift;  my %opt = @_;  $opt{detail} = 1;
  # add the error column  my $data = $class->report_data($section, %opt);  my $error = [];  my $detail = [];  my $check_method = $section.'_check';  my $num_errors = 0; #### THIS SECTION BELOW IS COMMENTED OUT SO APACHE STARTS ##### #foreach my $row (@$data) { #   if ( $class->can($check_method) ) { # they don't all have these #    my $eh = $class->$check_method( $row ); #     $num_errors++ if keys(%$eh); #     push $error, $eh #   } #   push @$detail, pop @$row; # this comes from the query # }  <--- THIS IS LINE 326### END OF COMMENTS ###  return +{    data => $data,    error => $error,    detail => $detail,    num_errors => $num_errors,  };}
Please help.
Robert Terpe 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freeside.biz/pipermail/freeside-users/attachments/20150401/3997f139/attachment.html>


More information about the freeside-users mailing list