EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05918


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] apache fails to start eprints


On Wed, 7 Sep 2016 16:45:05 +0200
Yuri <yurj@alfa.it> wrote:

> can you check the syntax on line 252 of 
> /opt/eprints3/perl_lib/EPrints/MetaField.pm ? can you paste it here
> in the email?

Line 252:

 $p_default = $repository->config( "field_defaults" )->{ $p_id };

Context:


sub field_defaults
{
        my( $self ) = @_;

        my $repository = $self->{repository};

        my $field_defaults =
        $repository->get_field_defaults( $self->{type} ); return
        $field_defaults if defined $field_defaults;

        $field_defaults = {$self->get_property_defaults};
        while(my( $p_id, $p_default ) = each %$field_defaults)
        {
                next if !defined $p_default;
                next if $p_default ne EP_PROPERTY_FROM_CONFIG;
                $p_default = $repository->config( "field_defaults"
        )->{ $p_id }; $p_default = EP_PROPERTY_UNDEF if !defined
        $p_default; $field_defaults->{$p_id} = $p_default;
        }
        $repository->set_field_defaults( $self->{type}, $field_defaults
        );

        return $field_defaults;
}


Best,

h.h.

 
> 
> Il 07/09/2016 15:56, Herbert Hrachovec ha scritto:
> >
> > at /opt/eprints3/perl_lib/EPrints/MetaField.pm line
> > 252.\nCompilation failed in require at (eval 2) line 1.\n [Wed Sep
> > 07 14:46:46 2016]  
> 
> *** Options:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech ***
> Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki:
> http://wiki.eprints.org/ *** EPrints developers Forum:
> http://forum.eprints.org/



----
Hochschullehrer, Philosophie, Wien