<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hold on, let's focus on your first
      error ie "Attempt to get value...":<br>
      <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      You get (according to the stack trace you copied/pasted to
      github):<br>
      <br>
      &gt;
      EPrints::DataObj::get_value('EPrints::DataObj::EPrint=HASH(0x6d11098)',
      undef)<br>
      <br>
      in the context of the code it's running:<br>
      <br>
      &gt; $eprint-&gt;get_value( undef );<br>
      <br>
      "undef" is returned by the line above (Plugin/Stats/Sets.pm L243):<br>
      <br>
      &gt; my $fieldname = $self-&gt;get_fieldname( $set ); # where $set
      == 'type'<br>
      <br>
      So $fieldname is undef so $self-&gt;get_fieldname( $set ) returned
      undef.<br>
      <br>
      On L242 could you add the following code and tell me what gets
      printed please?<br>
      <br>
      &lt;code&gt;<br>
      if( $set eq 'type' )<br>
      {<br>
      &nbsp;&nbsp;&nbsp; use Data::Dumper;<br>
      &nbsp;&nbsp;&nbsp; print STDERR Dumper( $self-&gt;{sets} )."\n\n";<br>
      }<br>
      &lt;/code&gt;<br>
      <br>
      Then it should abort anyway.<br>
      <br>
      Thank you,<br>
      Seb.<br>
      <br>
      <br>
      On 13/11/13 11:25, raffaele messuti wrote:<br>
    </div>
    <blockquote cite="mid:528361A1.5010002@gmail.com" type="cite">
      <pre wrap="">Sebastien Francois wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Where did you get irstats2 from? If it's the current version which is on 
github you don't need to apply any patches.
</pre>
      </blockquote>
      <pre wrap="">
i cloned the git repository and installed the files manually (without epm).

using the default Handler.pm::create_table()[1] i got:

Can't call method "clone" on an undefined value at
/almadl/campus/eprints/archives/campus/bin/stats/../../../../perl_lib/EPrints/Database.pm
line 874, &lt;DATA&gt; line 960.

commenting out 1211-1214[2] instead creates irstats_* tables
but stops at:

------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
Attempt to get value from not existent field: archive/
------------------------------------------------------------------


</pre>
      <blockquote type="cite">
        <pre wrap="">Can you copy/paste your config here please (cfg.d/z_irstats2.pl)?
</pre>
      </blockquote>
      <pre wrap="">
i'm testing using the vanilla cfg.d/z_irstats2.pl without any modification

thank you.

--
raffaele


[1]
<a class="moz-txt-link-freetext" href="https://github.com/eprints/irstats2/blob/master/cfg/plugins/EPrints/Plugin/Stats/Handler.pm#L1199">https://github.com/eprints/irstats2/blob/master/cfg/plugins/EPrints/Plugin/Stats/Handler.pm#L1199</a>

[2]
<a class="moz-txt-link-freetext" href="https://github.com/eprints/irstats2/blob/master/cfg/plugins/EPrints/Plugin/Stats/Handler.pm#L1211-L1214">https://github.com/eprints/irstats2/blob/master/cfg/plugins/EPrints/Plugin/Stats/Handler.pm#L1211-L1214</a>
*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>